summaryrefslogtreecommitdiff
path: root/vio/viossl.c
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-10-16 17:08:16 +0200
committerunknown <msvensson@neptunus.(none)>2006-10-16 17:08:16 +0200
commit3a95961fb5195d02056bbb139b68d95cd9e5c49b (patch)
tree0af74269cfddaf4c3c33e600557ae556bf4e3b1e /vio/viossl.c
parentb2bf4843c71d90f698f431ff4de0e4cf2bc9fdca (diff)
parentb557eca2cadb1ff0ff98ed0bca701974a8f7f5f7 (diff)
downloadmariadb-git-3a95961fb5195d02056bbb139b68d95cd9e5c49b.tar.gz
Merge bk-internal:/home/bk/mysql-5.0-maint
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint vio/viossl.c: Auto merged
Diffstat (limited to 'vio/viossl.c')
-rw-r--r--vio/viossl.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/vio/viossl.c b/vio/viossl.c
index 090b837b972..9cc4523d32e 100644
--- a/vio/viossl.c
+++ b/vio/viossl.c
@@ -167,10 +167,9 @@ int sslaccept(struct st_VioSSLFd *ptr, Vio *vio, long timeout)
SSL_clear(ssl);
SSL_SESSION_set_timeout(SSL_get_session(ssl), timeout);
SSL_set_fd(ssl, vio->sd);
- SSL_set_accept_state(ssl);
- if (SSL_do_handshake(ssl) < 1)
+ if (SSL_accept(ssl) < 1)
{
- DBUG_PRINT("error", ("SSL_do_handshake failure"));
+ DBUG_PRINT("error", ("SSL_accept failure"));
report_errors(ssl);
SSL_free(ssl);
vio->ssl_arg= 0;
@@ -242,10 +241,9 @@ int sslconnect(struct st_VioSSLFd *ptr, Vio *vio, long timeout)
SSL_clear(ssl);
SSL_SESSION_set_timeout(SSL_get_session(ssl), timeout);
SSL_set_fd(ssl, vio->sd);
- SSL_set_connect_state(ssl);
- if (SSL_do_handshake(ssl) < 1)
+ if (SSL_connect(ssl) < 1)
{
- DBUG_PRINT("error", ("SSL_do_handshake failure"));
+ DBUG_PRINT("error", ("SSL_connect failure"));
report_errors(ssl);
SSL_free(ssl);
vio->ssl_arg= 0;