diff options
author | msvensson@neptunus.(none) <> | 2005-09-01 11:46:43 +0200 |
---|---|---|
committer | msvensson@neptunus.(none) <> | 2005-09-01 11:46:43 +0200 |
commit | 8c0f7f82d92cbc345dcf8209c8b8bf47f010a590 (patch) | |
tree | 4daf5317650035bf1bbdfc42f168595d88bc9d54 /vio/viossl.c | |
parent | f34398ba65d41528b1f4b0c94187f968d1131926 (diff) | |
download | mariadb-git-8c0f7f82d92cbc345dcf8209c8b8bf47f010a590.tar.gz |
Bug #11286 yassl incompatible with "load data infile"
- Make sure that mysqltest always uses ssl when connecting to the server.
- Pass a i32-bit int variable as argument to FIONREAD ioctl.
Diffstat (limited to 'vio/viossl.c')
-rw-r--r-- | vio/viossl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vio/viossl.c b/vio/viossl.c index 7528e9071cf..fbbc545bb9b 100644 --- a/vio/viossl.c +++ b/vio/viossl.c @@ -283,9 +283,10 @@ int sslaccept(struct st_VioSSLAcceptorFd* ptr, Vio* vio, long timeout) X509* client_cert; my_bool unused; my_bool net_blocking; - enum enum_vio_type old_type; + enum enum_vio_type old_type; DBUG_ENTER("sslaccept"); - DBUG_PRINT("enter", ("sd: %d ptr: Ox%p", vio->sd,ptr)); + DBUG_PRINT("enter", ("sd: %d ptr: Ox%p, timeout: %d", + vio->sd, ptr, timeout)); old_type= vio->type; net_blocking = vio_is_blocking(vio); @@ -379,7 +380,7 @@ int sslconnect(struct st_VioSSLConnectorFd* ptr, Vio* vio, long timeout) (SSL*) vio->ssl_arg, timeout)); SSL_clear((SSL*) vio->ssl_arg); SSL_SESSION_set_timeout(SSL_get_session((SSL*) vio->ssl_arg), timeout); - SSL_set_fd ((SSL*) vio->ssl_arg, vio->sd); + SSL_set_fd ((SSL*) vio->ssl_arg, vio_ssl_fd(vio)); SSL_set_connect_state((SSL*) vio->ssl_arg); if (SSL_do_handshake((SSL*) vio->ssl_arg) < 1) { |