diff options
author | jsorg71 <jsorg71> | 2007-07-03 04:25:18 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2007-07-03 04:25:18 +0000 |
commit | 2a107df996779f8da984244b763502da01a0106f (patch) | |
tree | d54d57138d5c89600e5ea3f34deb1e628700133b /common/ssl_calls.c | |
parent | 2a1b60a173442f8ca9c20b9214a8b9a3a90f8c68 (diff) | |
download | xrdp-proprietary-2a107df996779f8da984244b763502da01a0106f.tar.gz xrdp-proprietary-2a107df996779f8da984244b763502da01a0106f.zip |
added undef and error message
Diffstat (limited to 'common/ssl_calls.c')
-rw-r--r-- | common/ssl_calls.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |