diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/Makefile | 3 | ||||
| -rw-r--r-- | src/lib/libssl/ssl_algs.c | 17 |
2 files changed, 6 insertions, 14 deletions
diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile index 7656e88cea..12a4b4c2fa 100644 --- a/src/lib/libssl/Makefile +++ b/src/lib/libssl/Makefile | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.33 2017/04/29 22:22:24 beck Exp $ | 1 | # $OpenBSD: Makefile,v 1.34 2017/04/29 22:31:42 beck Exp $ |
| 2 | 2 | ||
| 3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
| 4 | .ifndef NOMAN | 4 | .ifndef NOMAN |
| @@ -19,7 +19,6 @@ CFLAGS+= -DLIBRESSL_INTERNAL | |||
| 19 | CFLAGS+= -I${.CURDIR} | 19 | CFLAGS+= -I${.CURDIR} |
| 20 | 20 | ||
| 21 | LDADD+= -L${BSDOBJDIR}/lib/libcrypto -lcrypto | 21 | LDADD+= -L${BSDOBJDIR}/lib/libcrypto -lcrypto |
| 22 | LDADD+= -L${BSDOBJDIR}/lib/libpthread -lpthread | ||
| 23 | 22 | ||
| 24 | VERSION_SCRIPT= Symbols.map | 23 | VERSION_SCRIPT= Symbols.map |
| 25 | SYMBOL_LIST= ${.CURDIR}/Symbols.list | 24 | SYMBOL_LIST= ${.CURDIR}/Symbols.list |
diff --git a/src/lib/libssl/ssl_algs.c b/src/lib/libssl/ssl_algs.c index ab88b29cc1..ca84891e72 100644 --- a/src/lib/libssl/ssl_algs.c +++ b/src/lib/libssl/ssl_algs.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ssl_algs.c,v 1.25 2017/04/29 21:54:54 beck Exp $ */ | 1 | /* $OpenBSD: ssl_algs.c,v 1.26 2017/04/29 22:31:42 beck Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -60,15 +60,13 @@ | |||
| 60 | 60 | ||
| 61 | #include <openssl/lhash.h> | 61 | #include <openssl/lhash.h> |
| 62 | #include <openssl/objects.h> | 62 | #include <openssl/objects.h> |
| 63 | #include <pthread.h> | ||
| 64 | 63 | ||
| 65 | #include "ssl_locl.h" | 64 | #include "ssl_locl.h" |
| 66 | 65 | ||
| 67 | pthread_once_t SSL_library_init_once = PTHREAD_ONCE_INIT; | 66 | int |
| 68 | 67 | SSL_library_init(void) | |
| 69 | static void | ||
| 70 | SSL_library_init_internal(void) | ||
| 71 | { | 68 | { |
| 69 | |||
| 72 | #ifndef OPENSSL_NO_DES | 70 | #ifndef OPENSSL_NO_DES |
| 73 | EVP_add_cipher(EVP_des_cbc()); | 71 | EVP_add_cipher(EVP_des_cbc()); |
| 74 | EVP_add_cipher(EVP_des_ede3_cbc()); | 72 | EVP_add_cipher(EVP_des_ede3_cbc()); |
| @@ -127,11 +125,6 @@ SSL_library_init_internal(void) | |||
| 127 | #endif | 125 | #endif |
| 128 | /* initialize cipher/digest methods table */ | 126 | /* initialize cipher/digest methods table */ |
| 129 | ssl_load_ciphers(); | 127 | ssl_load_ciphers(); |
| 128 | return (1); | ||
| 130 | } | 129 | } |
| 131 | 130 | ||
| 132 | int | ||
| 133 | SSL_library_init(void) | ||
| 134 | { | ||
| 135 | pthread_once(&SSL_library_init_once, SSL_library_init_internal); | ||
| 136 | return 1; | ||
| 137 | } | ||
