From 9750b4d39c610bac89fde009c3b22147eee0249c Mon Sep 17 00:00:00 2001 From: "Randall S. Becker" Date: Thu, 29 Oct 2020 10:17:25 -0500 Subject: Moved OPENSSL_fork_prepare,_parent,_child from init.c to threads_pthread.c. These methods should ultimately be deprecated. The move is to insulate non-UNIX platforms from these undefined symbols. CLA: Permission is granted by the author to the OpenSSL team to use these modifications. Fixes #13273 Signed-off-by: Randall S. Becker Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/13276) --- crypto/init.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'crypto/init.c') diff --git a/crypto/init.c b/crypto/init.c index cfd4eab9ed..f7c7d59f55 100644 --- a/crypto/init.c +++ b/crypto/init.c @@ -666,28 +666,3 @@ int OPENSSL_atexit(void (*handler)(void)) return 1; } -#ifdef OPENSSL_SYS_UNIX -/* - * The following three functions are for OpenSSL developers. This is - * where we set/reset state across fork (called via pthread_atfork when - * it exists, or manually by the application when it doesn't). - * - * WARNING! If you put code in either OPENSSL_fork_parent or - * OPENSSL_fork_child, you MUST MAKE SURE that they are async-signal- - * safe. See this link, for example: - * http://man7.org/linux/man-pages/man7/signal-safety.7.html - */ - -void OPENSSL_fork_prepare(void) -{ -} - -void OPENSSL_fork_parent(void) -{ -} - -void OPENSSL_fork_child(void) -{ - /* TODO(3.0): Inform all providers about a fork event */ -} -#endif -- cgit v1.2.3