Add new function SSL_CTX_get_ssl_method().

Partial fix for PR#3183.
This commit is contained in:
Dr. Stephen Henson 2014-01-16 14:06:19 +00:00
parent d0b039d4a3
commit ba168244a1
2 changed files with 6 additions and 0 deletions

View File

@ -2357,6 +2357,7 @@ int SSL_renegotiate_abbreviated(SSL *s);
int SSL_renegotiate_pending(SSL *s);
int SSL_shutdown(SSL *s);
const SSL_METHOD *SSL_CTX_get_ssl_method(SSL_CTX *ctx);
const SSL_METHOD *SSL_get_ssl_method(SSL *s);
int SSL_set_ssl_method(SSL *s, const SSL_METHOD *method);
const char *SSL_alert_type_string_long(int value);

View File

@ -2750,6 +2750,11 @@ void ssl_update_cache(SSL *s,int mode)
}
}
const SSL_METHOD *SSL_CTX_get_ssl_method(SSL_CTX *ctx)
{
return ctx->method;
}
const SSL_METHOD *SSL_get_ssl_method(SSL *s)
{
return(s->method);