3 @@ -131,11 +131,15 @@ int ssh_get_random(void *where, int len, int strong){
6 #elif defined HAVE_LIBCRYPTO
7 +#if OPENSSL_VERSION_NUMBER < 0x10100000L
9 return RAND_bytes(where,len);
11 return RAND_pseudo_bytes(where,len);
14 + return RAND_bytes(where,len);
19 @@ -198,7 +202,9 @@ int ssh_crypto_init(void) {
21 bignum_bin2bn(p_group14_value, P_GROUP14_LEN, p_group14);
23 +#if OPENSSL_VERSION_NUMBER < 0x10100000L
24 OpenSSL_add_all_algorithms();
29 @@ -219,8 +225,10 @@ void ssh_crypto_finalize(void) {
31 gcry_control(GCRYCTL_TERM_SECMEM);
32 #elif defined HAVE_LIBCRYPTO
33 +#if OPENSSL_VERSION_NUMBER < 0x10100000L
35 CRYPTO_cleanup_all_ex_data();
38 ssh_crypto_initialized=0;