Skip to content

Commit

Permalink
tls: set random number engine to fastrand for libssl1.1+
Browse files Browse the repository at this point in the history
(cherry picked from commit 6d154fb)
  • Loading branch information
miconda committed Oct 7, 2019
1 parent 43aa779 commit 2935b65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/tls/tls_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,12 @@ int mod_register(char *path, int *dlflags, void *p1, void *p2)
return -1;

register_tls_hooks(&tls_h);

#if OPENSSL_VERSION_NUMBER >= 0x10100000L
LM_DBG("setting fastrand random engine\n");
RAND_set_rand_method(RAND_ksr_fastrand_method());
#endif

sr_kemi_modules_add(sr_kemi_tls_exports);

return 0;
Expand Down

0 comments on commit 2935b65

Please sign in to comment.