Tongsuo
Tongsuo copied to clipboard
SSL_set_ssl_method vs SSL_CTX_set_ssl_version ( NTLS_server_method())
i try to set method of SSL* object to NTLS. if I do SSL_set_ssl_method(con, NTLS_server_method()); connection by fails with error 140309886080768:error:1420909F:SSL routines:func(521):reason(159):ssl/statem_ntls/statem_srvr.c:1063:
- The connection was TLS Client Hello with supported versions ext inc. GMSSL
if I do
SSL_CTX_set_ssl_version(ctx, NTLS_server_method() );
con = SSL_new(ctx)) ,
then it works ok - the connection is established with NTLS method.
I think there is a problem with SSL_set_ssl_method() function... what is your opinion? thanks!