summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authortonu@x153.internalnet <>2001-07-24 15:00:36 +0800
committertonu@x153.internalnet <>2001-07-24 15:00:36 +0800
commite1fa72edef329ff18cd4cce31e15822b3a432d2c (patch)
treec83d351c310d448d629eb358d6f4f5c22f640651 /include
parent27caeeac7ffaedfa10178d4106518ff1227feefc (diff)
parent85c287a43937ecbafc67dde08b438c60ed1f659f (diff)
downloadmariadb-git-e1fa72edef329ff18cd4cce31e15822b3a432d2c.tar.gz
Merge work.mysql.com:/home/bk/mysql-4.0
into x153.internalnet:/home/tonu/mysql-x
Diffstat (limited to 'include')
-rw-r--r--include/global.h6
-rw-r--r--include/violite.h16
2 files changed, 13 insertions, 9 deletions
diff --git a/include/global.h b/include/global.h
index f41ac3ed184..c7a3498b76a 100644
--- a/include/global.h
+++ b/include/global.h
@@ -189,7 +189,13 @@
# endif
#endif /* TIME_WITH_SYS_TIME */
#ifdef HAVE_UNISTD_H
+#ifdef HAVE_OPENSSL
+#define crypt dummy
+#endif
#include <unistd.h>
+#ifdef HAVE_OPENSSL
+#undef crypt
+#endif
#endif
#if defined(__cplusplus) && defined(NO_CPLUSPLUS_ALLOCA)
#undef HAVE_ALLOCA
diff --git a/include/violite.h b/include/violite.h
index bc10a8f527c..49791c6b68a 100644
--- a/include/violite.h
+++ b/include/violite.h
@@ -137,11 +137,9 @@ my_bool vio_poll_read(Vio *vio,uint timeout);
#ifdef HAVE_OPENSSL
-#include <openssl/x509.h>
+#define HEADER_DES_LOCL_H dummy_something
#include <openssl/ssl.h>
#include <openssl/err.h>
-#include <openssl/pem.h>
-#include <openssl/asn1.h>
#include "my_net.h" /* needed because of struct in_addr */
@@ -184,10 +182,9 @@ struct st_VioSSLAcceptorFd
state_connect = 1,
state_accept = 2
};
- BIO* bio_;
- char *ssl_cip_;
- char desc_[100];
- Vio* sd_;
+// BIO* bio_;
+// char desc_[100];
+// Vio* sd_;
/* function pointers which are only once for SSL server
Vio*(*sslaccept)(struct st_VioSSLAcceptorFd*,Vio*); */
@@ -200,8 +197,8 @@ struct st_VioSSLConnectorFd
SSL_METHOD* ssl_method_;
/* function pointers which are only once for SSL client */
};
-Vio *sslaccept(struct st_VioSSLAcceptorFd*, Vio*);
-Vio *sslconnect(struct st_VioSSLConnectorFd*, Vio*);
+void sslaccept(struct st_VioSSLAcceptorFd*, Vio*);
+void sslconnect(struct st_VioSSLConnectorFd*, Vio*);
#else /* HAVE_OPENSSL */
/* This dummy is required to maintain proper size of st_mysql in mysql.h */
@@ -250,6 +247,7 @@ struct st_vio
BIO* bio_;
SSL* ssl_;
my_bool open_;
+ char *ssl_cip_;
#endif /* HAVE_OPENSSL */
#endif /* HAVE_VIO */
};