From 2a107df996779f8da984244b763502da01a0106f Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Tue, 3 Jul 2007 04:25:18 +0000 Subject: added undef and error message --- common/ssl_calls.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/ssl_calls.c') diff --git a/common/ssl_calls.c b/common/ssl_calls.c index 1ab0f132..9cbf8b02 100644 --- a/common/ssl_calls.c +++ b/common/ssl_calls.c @@ -32,6 +32,7 @@ #include "ssl_calls.h" #if defined(OPENSSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x0090800f) +#undef OLD_RSA_GEN1 #else #define OLD_RSA_GEN1 #endif @@ -246,6 +247,7 @@ ssl_gen_key_xrdp1(int key_size_in_bits, char* exp, int exp_len, BN_bin2bn((unsigned char*)lexp, exp_len, my_e); my_key = RSA_new(); #if defined(OLD_RSA_GEN1) + g_writeln("openssl library old, RSA_generate_key_ex not right"); error = 1; #else error = RSA_generate_key_ex(my_key, key_size_in_bits, my_e, 0) == 0; -- cgit v1.2.1