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:
parent
70daacc533
commit
7cc4f065fa
1 changed files with 1 additions and 4 deletions
|
@ -443,15 +443,12 @@ ossl_start_ssl(SSL *ssl, int (*func)())
|
||||||
for(;;){
|
for(;;){
|
||||||
if((ret = func(ssl)) > 0) break;
|
if((ret = func(ssl)) > 0) break;
|
||||||
switch(SSL_get_error(ssl, ret)){
|
switch(SSL_get_error(ssl, ret)){
|
||||||
case SSL_ERROR_NONE:
|
|
||||||
break;
|
|
||||||
case SSL_ERROR_WANT_WRITE:
|
case SSL_ERROR_WANT_WRITE:
|
||||||
case SSL_ERROR_WANT_READ:
|
case SSL_ERROR_WANT_READ:
|
||||||
case SSL_ERROR_WANT_X509_LOOKUP:
|
|
||||||
rb_thread_schedule();
|
rb_thread_schedule();
|
||||||
continue;
|
continue;
|
||||||
default:
|
default:
|
||||||
ossl_raise(eSSLError, "SSL_accept:");
|
ossl_raise(eSSLError, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue