summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_ssl.c
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
commit7cc4f065fa85d78ea64cde74d92af60919cabd5d (patch)
tree9e220abfad4cab6308003c80b19227042112e28b /ext/openssl/ossl_ssl.c
parent70daacc533268d4bdf99ebfcc9f8a877453ab731 (diff)
no need to care SSL_ERROR_NONE and SSL_ERROR_WANT_X509_LOOKUP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_ssl.c')
-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 d84c924..3bb209c 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);
}
}
}