eliminated deprecated function

This commit is contained in:
orignal 2017-01-23 16:22:48 -05:00
parent 14d74d3230
commit 188987a8ff
3 changed files with 7 additions and 3 deletions

View file

@ -362,7 +362,7 @@ namespace data
void Reseeder::LoadCertificate (const std::string& filename)
{
SSL_CTX * ctx = SSL_CTX_new (TLSv1_method ());
SSL_CTX * ctx = SSL_CTX_new (TLS_method ());
int ret = SSL_CTX_use_certificate_file (ctx, filename.c_str (), SSL_FILETYPE_PEM);
if (ret)
{