Hi,

I am newbee to openssl stuff. My application just need to run only on
TLSv1.2 protocol. Which one is the correct way of implementing it:

First Way:

context = SSL_CTX_new(TLSv1_2_method());

Second way:

context = SSL_CTX_new( SSLv23_method() );
SSL_CTX_set_options( context, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 |
SSL_OP_NO_TLSv1 | SSL_OP_NO_TLSv1_1);

Any help would be really appreciated.

Thanks,
VS

Reply via email to