diff options
author | tb <> | 2024-03-19 19:27:33 +0000 |
---|---|---|
committer | tb <> | 2024-03-19 19:27:33 +0000 |
commit | bf5599144609e046ba98f40a58158132af34faeb (patch) | |
tree | 81b7735680c6a6452faad5a3f6ce3ca6ff103976 | |
parent | 4734800ad5efc622926cf983bd3b523bf72bc1b2 (diff) | |
download | openbsd-bf5599144609e046ba98f40a58158132af34faeb.tar.gz openbsd-bf5599144609e046ba98f40a58158132af34faeb.tar.bz2 openbsd-bf5599144609e046ba98f40a58158132af34faeb.zip |
Move the OPENSSL_init() stub from o_init.c to crypto_init.c
-rw-r--r-- | src/lib/libcrypto/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/crypto_init.c | 7 | ||||
-rw-r--r-- | src/lib/libcrypto/o_init.c | 10 |
3 files changed, 7 insertions, 13 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index 06bb1ec6bd..8c3d05bd48 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.174 2024/03/02 13:39:28 tb Exp $ | 1 | # $OpenBSD: Makefile,v 1.175 2024/03/19 19:27:33 tb Exp $ |
2 | 2 | ||
3 | LIB= crypto | 3 | LIB= crypto |
4 | LIBREBUILD=y | 4 | LIBREBUILD=y |
@@ -69,7 +69,6 @@ SRCS+= malloc-wrapper.c | |||
69 | SRCS+= mem_clr.c | 69 | SRCS+= mem_clr.c |
70 | SRCS+= mem_dbg.c | 70 | SRCS+= mem_dbg.c |
71 | SRCS+= o_fips.c | 71 | SRCS+= o_fips.c |
72 | SRCS+= o_init.c | ||
73 | SRCS+= o_str.c | 72 | SRCS+= o_str.c |
74 | 73 | ||
75 | # aes/ | 74 | # aes/ |
diff --git a/src/lib/libcrypto/crypto_init.c b/src/lib/libcrypto/crypto_init.c index 56f4460e65..ddd3ec19bc 100644 --- a/src/lib/libcrypto/crypto_init.c +++ b/src/lib/libcrypto/crypto_init.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypto_init.c,v 1.18 2024/01/25 12:22:31 tb Exp $ */ | 1 | /* $OpenBSD: crypto_init.c,v 1.19 2024/03/19 19:27:33 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2018 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -37,6 +37,11 @@ static pthread_once_t crypto_init_once = PTHREAD_ONCE_INIT; | |||
37 | static pthread_t crypto_init_thread; | 37 | static pthread_t crypto_init_thread; |
38 | static int crypto_init_cleaned_up; | 38 | static int crypto_init_cleaned_up; |
39 | 39 | ||
40 | void | ||
41 | OPENSSL_init(void) | ||
42 | { | ||
43 | } | ||
44 | |||
40 | static void | 45 | static void |
41 | OPENSSL_init_crypto_internal(void) | 46 | OPENSSL_init_crypto_internal(void) |
42 | { | 47 | { |
diff --git a/src/lib/libcrypto/o_init.c b/src/lib/libcrypto/o_init.c deleted file mode 100644 index 2f819eac95..0000000000 --- a/src/lib/libcrypto/o_init.c +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | /* $OpenBSD: o_init.c,v 1.8 2014/06/12 15:49:27 deraadt Exp $ */ | ||
2 | /* Ted Unangst places this file in the public domain. */ | ||
3 | |||
4 | #include <openssl/crypto.h> | ||
5 | |||
6 | void | ||
7 | OPENSSL_init(void) | ||
8 | { | ||
9 | |||
10 | } | ||