From 7cc4f065fa85d78ea64cde74d92af60919cabd5d Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Sat, 6 Dec 2003 14:33:52 +0000 Subject: [PATCH] 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 --- ext/openssl/ossl_ssl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index d84c92498f..3bb209ce27 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); } } }