summaryrefslogtreecommitdiff
path: root/vio
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-10-24 12:53:47 +0200
committerunknown <msvensson@neptunus.(none)>2006-10-24 12:53:47 +0200
commit8247821b387bdff641e2060381bd2b8dfd26362f (patch)
treef49940b1731e72b01cbe18792f3d50b5e749da6b /vio
parentdd7dbb39aa723b438cdb11558b703876e369fd82 (diff)
parent375b04b9fe8826bd666b49421b5176a9316039e8 (diff)
downloadmariadb-git-8247821b387bdff641e2060381bd2b8dfd26362f.tar.gz
Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
into neptunus.(none):/home/msvensson/mysql/mysql-5.1-new-maint include/mysql.h: Auto merged libmysqld/lib_sql.cc: Auto merged mysql-test/mysql-test-run.pl: Auto merged netware/BUILD/compile-netware-END: Auto merged scripts/make_binary_distribution.sh: Auto merged vio/viossl.c: Auto merged vio/viosslfactories.c: Auto merged netware/BUILD/mwenv: Merge
Diffstat (limited to 'vio')
-rw-r--r--vio/viossl.c5
-rw-r--r--vio/viosslfactories.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/vio/viossl.c b/vio/viossl.c
index 9cc4523d32e..b5fd0e11c02 100644
--- a/vio/viossl.c
+++ b/vio/viossl.c
@@ -26,6 +26,10 @@
#ifdef HAVE_OPENSSL
#ifdef __NETWARE__
+
+/* yaSSL already uses BSD sockets */
+#ifndef HAVE_YASSL
+
/*
The default OpenSSL implementation on NetWare uses WinSock.
This code allows us to use the BSD sockets.
@@ -47,6 +51,7 @@ static int SSL_set_fd_bsd(SSL *s, int fd)
#define SSL_set_fd(A, B) SSL_set_fd_bsd((A), (B))
+#endif /* HAVE_YASSL */
#endif /* __NETWARE__ */
diff --git a/vio/viosslfactories.c b/vio/viosslfactories.c
index ca7a96d5801..bce70078b3e 100644
--- a/vio/viosslfactories.c
+++ b/vio/viosslfactories.c
@@ -180,11 +180,15 @@ void netware_ssl_cleanup()
/* free memory from SSL_library_init() */
EVP_cleanup();
+/* OpenSSL NetWare port specific functions */
+#ifndef HAVE_YASSL
+
/* free global X509 method */
X509_STORE_method_cleanup();
/* free the thread_hash error table */
ERR_free_state_table();
+#endif
}