crypto: Don't limit to TLSv1 only
Approved by: re (rgrimes, gjb) Obtained from: upstream commit e94f50bbbe7318eec5b6b165ff73d94bbc9d20b0
This commit is contained in:
parent
2ba8b5b375
commit
3442e764f9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339246
@ -93,7 +93,12 @@ smtp_init_crypto(int fd, int feature)
|
||||
SSL_library_init();
|
||||
SSL_load_error_strings();
|
||||
|
||||
meth = TLSv1_client_method();
|
||||
// Allow any possible version
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
|
||||
meth = TLS_client_method();
|
||||
#else
|
||||
meth = SSLv23_client_method();
|
||||
#endif
|
||||
|
||||
ctx = SSL_CTX_new(meth);
|
||||
if (ctx == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user