Skip to content

Commit

Permalink
remove call to deprecated CRYPTO_set_id_callback()
Browse files Browse the repository at this point in the history
openssl defaults to errno which should be fine on a POSIX compatible system
  • Loading branch information
lwimmer committed Feb 16, 2019
1 parent 3ced3c1 commit e156924
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/rmbt_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ static void lock_callback(int mode, int type, const char *file, int line) {
pthread_mutex_unlock(&(lockarray[type]));
}
}

static unsigned long thread_id(void) {
unsigned long ret;

ret = (unsigned long) pthread_self();
return (ret);
}
#pragma GCC diagnostic pop // require GCC 4.6

void init_ssl(bool ssl) {
Expand All @@ -52,7 +45,6 @@ void init_ssl(bool ssl) {
SSL_library_init(); /* load encryption & hash algorithms for SSL */
SSL_load_error_strings(); /* we also want some error msg without using ssl */

CRYPTO_set_id_callback(thread_id);
CRYPTO_set_locking_callback(lock_callback);

if (ssl) {
Expand Down

0 comments on commit e156924

Please sign in to comment.