1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
gotoyuzo 2003-12-06 14:33:52 +00:00
parent 70daacc533
commit 7cc4f065fa

View file

@ -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);
}
}
}