Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main: remove usage of crypto_set_id_callback() #342

Merged
merged 1 commit into from
May 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/main/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,10 @@ static inline unsigned long threadid(void)
}


#if OPENSSL_VERSION_NUMBER >= 0x10000000
static void threadid_handler(CRYPTO_THREADID *id)
{
CRYPTO_THREADID_set_numeric(id, threadid());
}
#else
static unsigned long threadid_handler(void)
{
return threadid();
}
#endif


static void locking_handler(int mode, int type, const char *file, int line)
Expand Down Expand Up @@ -131,11 +124,7 @@ int openssl_init(void)
}
}

#if OPENSSL_VERSION_NUMBER >= 0x10000000
CRYPTO_THREADID_set_callback(threadid_handler);
#else
CRYPTO_set_id_callback(threadid_handler);
#endif

CRYPTO_set_locking_callback(locking_handler);
#endif
Expand Down