Codebase list openssl / 0ab2408
Set FIPS thread id callback. Fixes #4180 Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4192) Dr. Stephen Henson 6 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
468468 }
469469 }
470470
471 #ifdef OPENSSL_FIPS
472 extern int FIPS_crypto_threadid_set_callback(void (*func) (CRYPTO_THREADID *));
473 #endif
474
471475 int CRYPTO_THREADID_set_callback(void (*func) (CRYPTO_THREADID *))
472476 {
473477 if (threadid_callback)
474478 return 0;
475479 threadid_callback = func;
480 #ifdef OPENSSL_FIPS
481 FIPS_crypto_threadid_set_callback(func);
482 #endif
476483 return 1;
477484 }
478485