I am updating the OpenSSL libraries in my application to version 1.0.2c.
This version supports the TLS 1.0, TLS 1.1 and TLS 1.2 as well the SSL 3.0. I would like to configure my application to automatic negotiate the highest version possible.
I have read the documentation provided in https://www.openssl.org/docs/ssl/SSL_CTX_new.html which says that the TLS_method
, TLS_client_method
and TLS_server_method
methods can do this.
But in the Windows distribution (avaliable in https://www.openssl.org/related/binaries.html) the ssleay32.dll
does not export the methods TLS_method
, TLS_client_method
and TLS_server_method
. Other methods, like TLSv1_method
, TLSv1_1_method
and TLSv1_2_method
are exported. However those only accepts a specific version.
What method should I use in order to make the version negotiation automatic? Or should I choose the version at runtime?