We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3b596e commit dc5bbbcCopy full SHA for dc5bbbc
ext/openssl/ossl_ssl.c
@@ -996,12 +996,7 @@ ossl_sslctx_get_ciphers(VALUE self)
996
int i, num;
997
998
GetSSLCTX(self, ctx);
999
- if(!ctx){
1000
- rb_warning("SSL_CTX is not initialized.");
1001
- return Qnil;
1002
- }
1003
ciphers = SSL_CTX_get_ciphers(ctx);
1004
-
1005
if (!ciphers)
1006
return rb_ary_new();
1007
@@ -1049,10 +1044,6 @@ ossl_sslctx_set_ciphers(VALUE self, VALUE v)
1049
1044
}
1050
1045
1051
1046
1052
1053
- ossl_raise(eSSLError, "SSL_CTX is not initialized.");
1054
1055
1056
1047
if (!SSL_CTX_set_cipher_list(ctx, StringValueCStr(str))) {
1057
1048
ossl_raise(eSSLError, "SSL_CTX_set_cipher_list");
1058
0 commit comments