summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-06 14:33:52 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-06 14:33:52 +0000
commitb29e6f00e29150b774f81095c40c4fab343597b8 (patch)
tree9e220abfad4cab6308003c80b19227042112e28b /ext
parent7b33e8edf4c4ef8610e7d768140a01608b8ce752 (diff)
downloadruby-b29e6f00e29150b774f81095c40c4fab343597b8.tar.gz
ruby-b29e6f00e29150b774f81095c40c4fab343597b8.tar.xz
ruby-b29e6f00e29150b774f81095c40c4fab343597b8.zip
no need to care SSL_ERROR_NONE and SSL_ERROR_WANT_X509_LOOKUP.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/ossl_ssl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
index d84c92498..3bb209ce2 100644
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
@@ -443,15 +443,12 @@ ossl_start_ssl(SSL *ssl, int (*func)())
for(;;){
if((ret = func(ssl)) > 0) break;
switch(SSL_get_error(ssl, ret)){
- case SSL_ERROR_NONE:
- break;
case SSL_ERROR_WANT_WRITE:
case SSL_ERROR_WANT_READ:
- case SSL_ERROR_WANT_X509_LOOKUP:
rb_thread_schedule();
continue;
default:
- ossl_raise(eSSLError, "SSL_accept:");
+ ossl_raise(eSSLError, NULL);
}
}
}