summaryrefslogtreecommitdiff
path: root/include/violite.h
diff options
context:
space:
mode:
authorgluh@gluh.mysql.r18.ru <>2004-06-09 20:02:08 +0400
committergluh@gluh.mysql.r18.ru <>2004-06-09 20:02:08 +0400
commitd9d0fe7a1acdce8d47fc1b36155d537d4a669002 (patch)
tree0c56f4b925fbdfaafb82c82f59060c16df8f22bf /include/violite.h
parent27f269c868ee3f69f1c75464a94e4980b112c38f (diff)
downloadmariadb-git-d9d0fe7a1acdce8d47fc1b36155d537d4a669002.tar.gz
Fixed issue with compilation MySQL with OpenSSL
if OpenSSL is installed in non-statndart directory ('openssl/opensslv.h: No such file or directory')
Diffstat (limited to 'include/violite.h')
-rw-r--r--include/violite.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/violite.h b/include/violite.h
index 18f862d4b77..8464a6b8654 100644
--- a/include/violite.h
+++ b/include/violite.h
@@ -78,6 +78,14 @@ my_bool vio_poll_read(Vio *vio,uint timeout);
void vio_timeout(Vio *vio,uint timeout);
#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),(
+#endif
+
#define HEADER_DES_LOCL_H dummy_something
#include <openssl/ssl.h>
#include <openssl/err.h>