diff options
author | monty@mysql.com <> | 2004-05-25 22:00:14 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2004-05-25 22:00:14 +0300 |
commit | f2e1e3ce4c72d383f16fd8c525b28c4912e8f2de (patch) | |
tree | 2c56473da947b9807f0d1668171870a8e3dbc736 /vio/viossl.c | |
parent | d14e4eb57c92b987152b255ec961b1e9103d8f66 (diff) | |
download | mariadb-git-f2e1e3ce4c72d383f16fd8c525b28c4912e8f2de.tar.gz |
Added patches from Novell
Diffstat (limited to 'vio/viossl.c')
-rw-r--r-- | vio/viossl.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vio/viossl.c b/vio/viossl.c index fafe48b7a84..a489cb98f98 100644 --- a/vio/viossl.c +++ b/vio/viossl.c @@ -25,6 +25,31 @@ #ifdef HAVE_OPENSSL +#ifdef __NETWARE__ +/* + The default OpenSSL implementation on NetWare uses WinSock. + This code allows us to use the BSD sockets. +*/ + +static int SSL_set_fd_bsd(SSL *s, int fd) +{ + int result= -1; + BIO_METHOD *BIO_s_bsdsocket(); + BIO *bio; + + if ((bio= BIO_new(BIO_s_bsdsocket()))) + { + result= BIO_set_fd(bio, fd, BIO_NOCLOSE); + SSL_set_bio(s, bio, bio); + } + return result; +} + +#define SSL_set_fd(A, B) SSL_set_fd_bsd((A), (B)) + +#endif /* __NETWARE__ */ + + static void report_errors() { |