summaryrefslogtreecommitdiff
path: root/include/violite.h
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2004-06-09 20:02:08 +0400
committerunknown <gluh@gluh.mysql.r18.ru>2004-06-09 20:02:08 +0400
commit85803ddf86b7e86708f8d4b7c1c3494351bbdb3d (patch)
tree0c56f4b925fbdfaafb82c82f59060c16df8f22bf /include/violite.h
parent3e159f3fc9dfc652a5338e6b564226717560add1 (diff)
downloadmariadb-git-85803ddf86b7e86708f8d4b7c1c3494351bbdb3d.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') include/my_global.h: Fixed issue with compilation MySQL with OpenSSL if OpenSSL is installed in non-statndart directory include/violite.h: Fixed issue with compilation MySQL with OpenSSL if OpenSSL is installed in non-statndart 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>