Make auditdistd(8) buildable.

This commit is contained in:
jkim 2018-09-19 06:45:13 +00:00
parent 9c688a4e57
commit cd4343bf9e

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.");