summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cryptlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/cryptlib.c')
-rw-r--r--src/lib/libcrypto/cryptlib.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/lib/libcrypto/cryptlib.c b/src/lib/libcrypto/cryptlib.c
index 0b77d8b7d0..766ea8cac7 100644
--- a/src/lib/libcrypto/cryptlib.c
+++ b/src/lib/libcrypto/cryptlib.c
@@ -504,7 +504,7 @@ void CRYPTO_THREADID_current(CRYPTO_THREADID *id)
504 CRYPTO_THREADID_set_numeric(id, (unsigned long)find_thread(NULL)); 504 CRYPTO_THREADID_set_numeric(id, (unsigned long)find_thread(NULL));
505#else 505#else
506 /* For everything else, default to using the address of 'errno' */ 506 /* For everything else, default to using the address of 'errno' */
507 CRYPTO_THREADID_set_pointer(id, (void*)&errno); 507 CRYPTO_THREADID_set_pointer(id, &errno);
508#endif 508#endif
509 } 509 }
510 510
@@ -704,7 +704,6 @@ void OPENSSL_cpuid_setup(void)
704 } 704 }
705 else 705 else
706 vec = OPENSSL_ia32_cpuid(); 706 vec = OPENSSL_ia32_cpuid();
707
708 /* 707 /*
709 * |(1<<10) sets a reserved bit to signal that variable 708 * |(1<<10) sets a reserved bit to signal that variable
710 * was initialized already... This is to avoid interference 709 * was initialized already... This is to avoid interference
@@ -889,7 +888,7 @@ void OPENSSL_showfatal (const char *fmta,...)
889 888
890#if defined(_WIN32_WINNT) && _WIN32_WINNT>=0x0333 889#if defined(_WIN32_WINNT) && _WIN32_WINNT>=0x0333
891 /* this -------------v--- guards NT-specific calls */ 890 /* this -------------v--- guards NT-specific calls */
892 if (check_winnt() && OPENSSL_isservice() > 0) 891 if (GetVersion() < 0x80000000 && OPENSSL_isservice() > 0)
893 { HANDLE h = RegisterEventSource(0,_T("OPENSSL")); 892 { HANDLE h = RegisterEventSource(0,_T("OPENSSL"));
894 const TCHAR *pmsg=buf; 893 const TCHAR *pmsg=buf;
895 ReportEvent(h,EVENTLOG_ERROR_TYPE,0,0,0,1,0,&pmsg,0); 894 ReportEvent(h,EVENTLOG_ERROR_TYPE,0,0,0,1,0,&pmsg,0);
@@ -925,16 +924,3 @@ void OpenSSLDie(const char *file,int line,const char *assertion)
925 } 924 }
926 925
927void *OPENSSL_stderr(void) { return stderr; } 926void *OPENSSL_stderr(void) { return stderr; }
928
929int CRYPTO_memcmp(const void *in_a, const void *in_b, size_t len)
930 {
931 size_t i;
932 const unsigned char *a = in_a;
933 const unsigned char *b = in_b;
934 unsigned char x = 0;
935
936 for (i = 0; i < len; i++)
937 x |= a[i] ^ b[i];
938
939 return x;
940 }