cryptlib.c (55714) | cryptlib.c (59191) |
---|---|
1/* crypto/cryptlib.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 78 unchanged lines hidden (view full) --- 87 "ssl", 88 "rand", 89 "debug_malloc", 90 "BIO", 91 "gethostbyname", 92 "getservbyname", 93 "readdir", 94 "RSA_blinding", | 1/* crypto/cryptlib.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 78 unchanged lines hidden (view full) --- 87 "ssl", 88 "rand", 89 "debug_malloc", 90 "BIO", 91 "gethostbyname", 92 "getservbyname", 93 "readdir", 94 "RSA_blinding", |
95#if CRYPTO_NUM_LOCKS != 24 | 95 "dh", 96 "debug_malloc2", 97#if CRYPTO_NUM_LOCKS != 26 |
96# error "Inconsistency between crypto.h and cryptlib.c" 97#endif 98 }; 99 100static STACK *app_locks=NULL; 101 102static void (MS_FAR *locking_callback)(int mode,int type, 103 const char *file,int line)=NULL; --- 72 unchanged lines hidden (view full) --- 176 unsigned long ret=0; 177 178 if (id_callback == NULL) 179 { 180#ifdef WIN16 181 ret=(unsigned long)GetCurrentTask(); 182#elif defined(WIN32) 183 ret=(unsigned long)GetCurrentThreadId(); | 98# error "Inconsistency between crypto.h and cryptlib.c" 99#endif 100 }; 101 102static STACK *app_locks=NULL; 103 104static void (MS_FAR *locking_callback)(int mode,int type, 105 const char *file,int line)=NULL; --- 72 unchanged lines hidden (view full) --- 178 unsigned long ret=0; 179 180 if (id_callback == NULL) 181 { 182#ifdef WIN16 183 ret=(unsigned long)GetCurrentTask(); 184#elif defined(WIN32) 185 ret=(unsigned long)GetCurrentThreadId(); |
184#elif defined(MSDOS) | 186#elif defined(GETPID_IS_MEANINGLESS) |
185 ret=1L; 186#else 187 ret=(unsigned long)getpid(); 188#endif 189 } 190 else 191 ret=id_callback(); 192 return(ret); --- 108 unchanged lines hidden --- | 187 ret=1L; 188#else 189 ret=(unsigned long)getpid(); 190#endif 191 } 192 else 193 ret=id_callback(); 194 return(ret); --- 108 unchanged lines hidden --- |