mirror of
https://github.com/brunoos/luasec.git
synced 2024-12-28 13:28:21 +01:00
add TLS_method(). for now, keep SSLv23_method() for compatibility.
This commit is contained in:
parent
64faf6322e
commit
ef28f7d20d
@ -93,6 +93,9 @@ static int set_option_flag(const char *opt, unsigned long *flag)
|
|||||||
*/
|
*/
|
||||||
static LSEC_SSL_METHOD* str2method(const char *method)
|
static LSEC_SSL_METHOD* str2method(const char *method)
|
||||||
{
|
{
|
||||||
|
#if OPENSSL_VERSION_NUMBER>=0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
||||||
|
#define SSLv23_method TLS_method
|
||||||
|
#endif
|
||||||
if (!strcmp(method, "sslv23")) return SSLv23_method();
|
if (!strcmp(method, "sslv23")) return SSLv23_method();
|
||||||
#ifndef OPENSSL_NO_SSL3
|
#ifndef OPENSSL_NO_SSL3
|
||||||
if (!strcmp(method, "sslv3")) return SSLv3_method();
|
if (!strcmp(method, "sslv3")) return SSLv3_method();
|
||||||
|
Loading…
Reference in New Issue
Block a user