lib/fetch: also call SSL_load_error_strings() once (#167).

Close #168
This commit is contained in:
Juan RP 2016-04-22 11:38:01 +02:00
parent 228a89d51e
commit e2e8eea490

View File

@ -946,6 +946,7 @@ ssl_init(void)
fprintf(stderr, "SSL library init failed\n");
exit(-1);
}
SSL_load_error_strings();
}
#endif
@ -964,8 +965,6 @@ fetch_ssl(conn_t *conn, const struct url *URL, int verbose)
(void)pthread_once(&ssl_init_once, ssl_init);
SSL_load_error_strings();
conn->ssl_meth = SSLv23_client_method();
conn->ssl_ctx = SSL_CTX_new(conn->ssl_meth);
SSL_CTX_set_mode(conn->ssl_ctx, SSL_MODE_AUTO_RETRY);