X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fcryptlib.c;h=a8f29f1e65c2ac938959920a45d2283ed27e1905;hb=b25c8db87245e00cf3749067503a08c0ed3b769a;hp=d6015096387dc7b6e1d1a67446e4e2e1b35e0158;hpb=d36bcdf5ca819f1f8efb5eb0897f80864e110ad7;p=oweals%2Fopenssl.git diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index d601509638..a8f29f1e65 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -60,7 +60,6 @@ #include #include "cryptlib.h" #include -#include "date.h" #if defined(WIN32) || defined(WIN16) static double SSLeay_MSVC5_hack=0.0; /* and for VC1.5 */ @@ -89,10 +88,14 @@ static const char* lock_names[CRYPTO_NUM_LOCKS] = "rand", "debug_malloc", "BIO", - "bio_gethostbyname", + "gethostbyname", + "getservbyname", + "readdir", "RSA_blinding", -#if CRYPTO_NUM_LOCKS != 22 -# error "Inconsistency between crypto.h and cryptlic.c" + "dh", + "debug_malloc2", +#if CRYPTO_NUM_LOCKS != 26 +# error "Inconsistency between crypto.h and cryptlib.c" #endif }; @@ -131,6 +134,11 @@ int CRYPTO_get_new_lockid(char *name) return(i); } +int CRYPTO_num_locks(void) + { + return CRYPTO_NUM_LOCKS; + } + void (*CRYPTO_get_locking_callback(void))(int mode,int type,const char *file, int line) { @@ -175,7 +183,7 @@ unsigned long CRYPTO_thread_id(void) ret=(unsigned long)GetCurrentTask(); #elif defined(WIN32) ret=(unsigned long)GetCurrentThreadId(); -#elif defined(MSDOS) +#elif defined(GETPID_IS_MEANINGLESS) ret=1L; #else ret=(unsigned long)getpid();