Commit 0b381c94 authored by unknown's avatar unknown

When using yaSSL on NetWare some of the OpenSSL specifix hacks can be skipped


vio/viossl.c:
  No need for special code to switch from WinSock to BSD sockets when using yaSSL
vio/viosslfactories.c:
  The OpenSSL port to NetWare has added some extra functions to free up memory, no need
  to call them when using yaSSL
parent 394b27b6
...@@ -26,6 +26,10 @@ ...@@ -26,6 +26,10 @@
#ifdef HAVE_OPENSSL #ifdef HAVE_OPENSSL
#ifdef __NETWARE__ #ifdef __NETWARE__
/* yaSSL already uses BSD sockets */
#ifndef HAVE_YASSL
/* /*
The default OpenSSL implementation on NetWare uses WinSock. The default OpenSSL implementation on NetWare uses WinSock.
This code allows us to use the BSD sockets. This code allows us to use the BSD sockets.
...@@ -47,6 +51,7 @@ static int SSL_set_fd_bsd(SSL *s, int fd) ...@@ -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)) #define SSL_set_fd(A, B) SSL_set_fd_bsd((A), (B))
#endif /* HAVE_YASSL */
#endif /* __NETWARE__ */ #endif /* __NETWARE__ */
......
...@@ -180,11 +180,15 @@ void netware_ssl_cleanup() ...@@ -180,11 +180,15 @@ void netware_ssl_cleanup()
/* free memory from SSL_library_init() */ /* free memory from SSL_library_init() */
EVP_cleanup(); EVP_cleanup();
/* OpenSSL NetWare port specific functions */
#ifndef HAVE_YASSL
/* free global X509 method */ /* free global X509 method */
X509_STORE_method_cleanup(); X509_STORE_method_cleanup();
/* free the thread_hash error table */ /* free the thread_hash error table */
ERR_free_state_table(); ERR_free_state_table();
#endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment