Method: OpenSSL::SSL::SSLContext#options

Defined in:
ossl_ssl.c

#optionsInteger

Gets various OpenSSL options.

Returns:



754
755
756
757
758
759
760
761
762
763
764
# File 'ossl_ssl.c', line 754

static VALUE
ossl_sslctx_get_options(VALUE self)
{
    SSL_CTX *ctx;
    GetSSLCTX(self, ctx);
    /*
     * Do explicit cast because SSL_CTX_get_options() returned (signed) long in
     * OpenSSL before 1.1.0.
     */
    return ULONG2NUM((unsigned long)SSL_CTX_get_options(ctx));
}