mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
AppleM1: Update openssl to v1.1.1l
This commit is contained in:
parent
1fe12b8e8c
commit
b787656eea
990 changed files with 13406 additions and 18710 deletions
37
trunk/3rdparty/openssl-1.1-fit/crypto/init.c
vendored
37
trunk/3rdparty/openssl-1.1-fit/crypto/init.c
vendored
|
@ -8,25 +8,25 @@
|
|||
*/
|
||||
|
||||
#include "e_os.h"
|
||||
#include "internal/cryptlib_int.h"
|
||||
#include "crypto/cryptlib.h"
|
||||
#include <openssl/err.h>
|
||||
#include "internal/rand_int.h"
|
||||
#include "crypto/rand.h"
|
||||
#include "internal/bio.h"
|
||||
#include <openssl/evp.h>
|
||||
#include "internal/evp_int.h"
|
||||
#include "crypto/evp.h"
|
||||
#include "internal/conf.h"
|
||||
#include "internal/async.h"
|
||||
#include "internal/engine.h"
|
||||
#include "crypto/async.h"
|
||||
#include "crypto/engine.h"
|
||||
#include "internal/comp.h"
|
||||
#include "internal/err.h"
|
||||
#include "internal/err_int.h"
|
||||
#include "internal/objects.h"
|
||||
#include "crypto/err.h"
|
||||
#include "crypto/objects.h"
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include "internal/thread_once.h"
|
||||
#include "internal/dso_conf.h"
|
||||
#include "crypto/dso_conf.h"
|
||||
#include "internal/dso.h"
|
||||
#include "internal/store.h"
|
||||
#include "crypto/store.h"
|
||||
|
||||
static int stopped = 0;
|
||||
|
||||
|
@ -40,7 +40,7 @@ static int stopped = 0;
|
|||
* destructor for threads terminating before libcrypto is initialized or
|
||||
* after it's de-initialized. Access to the key doesn't have to be
|
||||
* serialized for the said threads, because they didn't use libcrypto
|
||||
* and it doesn't matter if they pick "impossible" or derefernce real
|
||||
* and it doesn't matter if they pick "impossible" or dereference real
|
||||
* key value and pull NULL past initialization in the first thread that
|
||||
* intends to use libcrypto.
|
||||
*/
|
||||
|
@ -161,10 +161,9 @@ DEFINE_RUN_ONCE_STATIC(ossl_init_load_crypto_nodelete)
|
|||
#ifdef OPENSSL_INIT_DEBUG
|
||||
fprintf(stderr, "OPENSSL_INIT: ossl_init_load_crypto_nodelete()\n");
|
||||
#endif
|
||||
#if !defined(OPENSSL_NO_DSO) \
|
||||
&& !defined(OPENSSL_USE_NODELETE) \
|
||||
#if !defined(OPENSSL_USE_NODELETE) \
|
||||
&& !defined(OPENSSL_NO_PINSHARED)
|
||||
# ifdef DSO_WIN32
|
||||
# if defined(DSO_WIN32) && !defined(_WIN32_WCE)
|
||||
{
|
||||
HMODULE handle = NULL;
|
||||
BOOL ret;
|
||||
|
@ -180,7 +179,7 @@ DEFINE_RUN_ONCE_STATIC(ossl_init_load_crypto_nodelete)
|
|||
# endif
|
||||
return (ret == TRUE) ? 1 : 0;
|
||||
}
|
||||
# else
|
||||
# elif !defined(DSO_NONE)
|
||||
/*
|
||||
* Deliberately leak a reference to ourselves. This will force the library
|
||||
* to remain loaded until the atexit() handler is run at process exit.
|
||||
|
@ -702,7 +701,7 @@ int OPENSSL_init_crypto(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings)
|
|||
ret = RUN_ONCE(&config, ossl_init_config);
|
||||
conf_settings = NULL;
|
||||
CRYPTO_THREAD_unlock(init_lock);
|
||||
if (!ret)
|
||||
if (ret <= 0)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -764,8 +763,7 @@ int OPENSSL_atexit(void (*handler)(void))
|
|||
{
|
||||
OPENSSL_INIT_STOP *newhand;
|
||||
|
||||
#if !defined(OPENSSL_NO_DSO) \
|
||||
&& !defined(OPENSSL_USE_NODELETE)\
|
||||
#if !defined(OPENSSL_USE_NODELETE)\
|
||||
&& !defined(OPENSSL_NO_PINSHARED)
|
||||
{
|
||||
union {
|
||||
|
@ -774,7 +772,7 @@ int OPENSSL_atexit(void (*handler)(void))
|
|||
} handlersym;
|
||||
|
||||
handlersym.func = handler;
|
||||
# ifdef DSO_WIN32
|
||||
# if defined(DSO_WIN32) && !defined(_WIN32_WCE)
|
||||
{
|
||||
HMODULE handle = NULL;
|
||||
BOOL ret;
|
||||
|
@ -790,7 +788,7 @@ int OPENSSL_atexit(void (*handler)(void))
|
|||
if (!ret)
|
||||
return 0;
|
||||
}
|
||||
# else
|
||||
# elif !defined(DSO_NONE)
|
||||
/*
|
||||
* Deliberately leak a reference to the handler. This will force the
|
||||
* library/code containing the handler to remain loaded until we run the
|
||||
|
@ -849,6 +847,5 @@ void OPENSSL_fork_parent(void)
|
|||
|
||||
void OPENSSL_fork_child(void)
|
||||
{
|
||||
rand_fork();
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue