X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fopenssl%2Fcrypto.c;h=7e020e61f9150ed6d9863f7c06191fb63fdf7421;hb=877d3b563002b81b7000412098d21c56d5a4ed09;hp=8fc7e77b77750854bc9ec9743f608699832d3472;hpb=252b8f0c9f3851c59f8baec5df95bbb2bbf85e72;p=tinc diff --git a/src/openssl/crypto.c b/src/openssl/crypto.c index 8fc7e77b..7e020e61 100644 --- a/src/openssl/crypto.c +++ b/src/openssl/crypto.c @@ -94,8 +94,7 @@ void randomize(void *out, size_t outlen) { void crypto_init(void) { random_init(); - uint64_t opts = OPENSSL_INIT_LOAD_CRYPTO_STRINGS | OPENSSL_INIT_ADD_ALL_CIPHERS | OPENSSL_INIT_ADD_ALL_DIGESTS | OPENSSL_INIT_ENGINE_ALL_BUILTIN; - OPENSSL_init_crypto(opts, NULL); + ENGINE_load_builtin_engines(); if(!RAND_status()) { fprintf(stderr, "Not enough entropy for the PRNG!\n");