Support for TLS 1.3 from OpenSSL 1.1.1

Based on PR #97 from @wmark.
This commit is contained in:
Bruno Silvestre
2018-09-12 19:06:46 -03:00
parent 2ecf239cfe
commit 421c897dd3
3 changed files with 28 additions and 2 deletions

View File

@ -102,7 +102,13 @@ static const SSL_METHOD* str2method(const char *method, int *vmin, int *vmax)
*vmax = TLS1_2_VERSION;
return TLS_method();
}
#if defined(TLS1_3_VERSION)
else if (!strcmp(method, "tlsv1_3")) {
*vmin = TLS1_3_VERSION;
*vmax = TLS1_3_VERSION;
return TLS_method();
}
#endif
return NULL;
}
#endif