Make auditdistd(8) buildable.

This commit is contained in:
Jung-uk Kim 2018-09-19 06:45:13 +00:00
parent cdc5b7da02
commit 4a189b08ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/openssl111/; revision=338772

View File

@ -379,7 +379,7 @@ tls_exec_client(const char *user, int startfd, const char *srcaddr,
* libcrypto use sysctl kern.arandom to obtain random data
* instead of /dev/urandom and friends.
*/
sslctx = SSL_CTX_new(TLSv1_client_method());
sslctx = SSL_CTX_new(TLS_client_method());
if (sslctx == NULL)
pjdlog_exitx(EX_TEMPFAIL, "SSL_CTX_new() failed.");
@ -666,7 +666,7 @@ tls_exec_server(const char *user, int startfd, const char *privkey,
SSL_load_error_strings();
SSL_library_init();
sslctx = SSL_CTX_new(TLSv1_server_method());
sslctx = SSL_CTX_new(TLS_server_method());
if (sslctx == NULL)
pjdlog_exitx(EX_TEMPFAIL, "SSL_CTX_new() failed.");