diff options
author | unknown <msvensson@pilot.blaudden> | 2007-03-28 15:57:27 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.blaudden> | 2007-03-28 15:57:27 +0200 |
commit | 70ae657cc20b2901a28e58521b427570865a30c2 (patch) | |
tree | dca7aaa21e51f58a292650fe93a49debb052746b /extra | |
parent | f86a489f76ffd5dcbbf3b8a66c55e48c7e68ae95 (diff) | |
parent | 1778d177be6363c88c58cb8eafaa0f530a97d593 (diff) | |
download | mariadb-git-70ae657cc20b2901a28e58521b427570865a30c2.tar.gz |
Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
into pilot.blaudden:/home/msvensson/mysql/mysql-5.1-maint
extra/yassl/include/openssl/ssl.h:
Auto merged
extra/yassl/src/ssl.cpp:
Auto merged
include/violite.h:
Auto merged
mysql-test/mysql-test-run.pl:
Auto merged
Diffstat (limited to 'extra')
-rw-r--r-- | extra/yassl/include/openssl/ssl.h | 10 | ||||
-rw-r--r-- | extra/yassl/src/ssl.cpp | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/extra/yassl/include/openssl/ssl.h b/extra/yassl/include/openssl/ssl.h index def7803b725..c7cd103841c 100644 --- a/extra/yassl/include/openssl/ssl.h +++ b/extra/yassl/include/openssl/ssl.h @@ -189,11 +189,17 @@ enum { /* ERR Constants */ ERR_TXT_STRING = 1, EVP_R_BAD_DECRYPT = 2 }; - +/* + Allow type used by SSL_set_fd to be changed, default to int + in order to be compatible with OpenSSL + */ +#ifndef YASSL_SOCKET_T_DEFINED +typedef int YASSL_SOCKET_T; +#endif SSL_CTX* SSL_CTX_new(SSL_METHOD*); SSL* SSL_new(SSL_CTX*); -int SSL_set_fd (SSL*, int); +int SSL_set_fd (SSL*, YASSL_SOCKET_T); int SSL_connect(SSL*); int SSL_write(SSL*, const void*, int); int SSL_read(SSL*, void*, int); diff --git a/extra/yassl/src/ssl.cpp b/extra/yassl/src/ssl.cpp index 860c05a1d25..cbd84efcdba 100644 --- a/extra/yassl/src/ssl.cpp +++ b/extra/yassl/src/ssl.cpp @@ -233,7 +233,7 @@ void SSL_free(SSL* ssl) } -int SSL_set_fd(SSL* ssl, int fd) +int SSL_set_fd(SSL* ssl, YASSL_SOCKET_T fd) { ssl->useSocket().set_fd(fd); return SSL_SUCCESS; |