summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordlenev@mysql.com <>2003-09-12 22:33:43 +0400
committerdlenev@mysql.com <>2003-09-12 22:33:43 +0400
commit1c11077d60ed0d94bcc79968a96b58511c88cad7 (patch)
tree1d852e8ef118cc78b1b79f1d6afc97e881c0647e /include
parent4871a35e8a66c584e4cf87461929eb6c643026aa (diff)
downloadmariadb-git-1c11077d60ed0d94bcc79968a96b58511c88cad7.tar.gz
Replaced deprecated since OpenSSL 0.9.7 des_ calls and types with
their newer DES_ versions. Provided macros for backward compatibility.
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 9d08977a7cd..59e0c43f18d 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -1105,4 +1105,14 @@ typedef union {
#define statistic_add(V,C,L) (V)+=(C)
#endif
+#ifdef HAVE_OPENSSL
+#include <openssl/opensslv.h>
+#if OPENSSL_VERSION_NUMBER < 0x0090700f
+#define DES_cblock des_cblock
+#define DES_key_schedule des_key_schedule
+#define DES_set_key_unchecked(k,ks) des_set_key_unchecked((k),*(ks))
+#define DES_ede3_cbc_encrypt(i,o,l,k1,k2,k3,iv,e) des_ede3_cbc_encrypt((i),(o),(l),*(k1),*(k2),*(k3),(iv),(e))
+#endif
+#endif
+
#endif /* my_global_h */