mirror of
https://github.com/openssl/openssl.git
synced 2024-11-28 04:25:31 +08:00
c739222b5a
Make OPENSSL_fork_prepare() et al always available even in a no-threads build. These functions are no-ops anyway so this shouldn't make any difference. This fixes an issue where the symbol_presence test fails in a no-threads build. This is because these functions have not been marked in libcrypto.num as being dependent on thread support. Enclosing the declarations of the functions in the header with an appropriate guard does not help because we never define OPENSSL_NO_THREADS (we define the opposite OPENSSL_THREADS). This confuses the scripts which only consider OPENSSL_NO_* guards. The simplest solution is to just make them always available. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13647)
26 lines
510 B
C
26 lines
510 B
C
/*
|
|
* Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
|
|
*
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
* in the file LICENSE in the source distribution or at
|
|
* https://www.openssl.org/source/license.html
|
|
*/
|
|
#include <openssl/crypto.h>
|
|
|
|
#ifndef OPENSSL_NO_DEPRECATED_3_0
|
|
|
|
void OPENSSL_fork_prepare(void)
|
|
{
|
|
}
|
|
|
|
void OPENSSL_fork_parent(void)
|
|
{
|
|
}
|
|
|
|
void OPENSSL_fork_child(void)
|
|
{
|
|
}
|
|
|
|
#endif
|