From cf3de06a3346854d770ba147f081e3b22e93c1bc Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Thu, 24 Jan 2013 23:58:56 +0400 Subject: backport 1.7 * l2tp: Fix allocation checking when adding octets AVP * cli, tcp: Fix non-NULL terminated string reception * Fix va_end() missing calls * chap-secrets: implemented encryption * auth_pap: make messages like other auth modules * cli: check xmit_buf is not null at enter to write function * pppoe: implemented regular expression support * chap-secrets: implemented encryption * ippool: fixed initialization order * optional shaper compiling * ppp: dns/wins code cleanup --- accel-pppd/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'accel-pppd/main.c') diff --git a/accel-pppd/main.c b/accel-pppd/main.c index 491e07db..8a75d5d2 100644 --- a/accel-pppd/main.c +++ b/accel-pppd/main.c @@ -35,6 +35,8 @@ static char *conf_dump; static sigset_t orig_set; #ifdef CRYPTO_OPENSSL +#include + static pthread_mutex_t *ssl_lock_cs; static unsigned long ssl_thread_id(void) @@ -57,6 +59,7 @@ static void openssl_init(void) SSL_library_init(); SSL_load_error_strings(); OpenSSL_add_all_algorithms(); + OpenSSL_add_all_digests(); ssl_lock_cs = OPENSSL_malloc(CRYPTO_num_locks() * sizeof(pthread_mutex_t)); -- cgit v1.2.3