added undef and error message

This commit is contained in:
jsorg71 2007-07-03 04:25:18 +00:00
parent 2a1b60a173
commit 2a107df996

View File

@ -32,6 +32,7 @@
#include "ssl_calls.h" #include "ssl_calls.h"
#if defined(OPENSSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x0090800f) #if defined(OPENSSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x0090800f)
#undef OLD_RSA_GEN1
#else #else
#define OLD_RSA_GEN1 #define OLD_RSA_GEN1
#endif #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); BN_bin2bn((unsigned char*)lexp, exp_len, my_e);
my_key = RSA_new(); my_key = RSA_new();
#if defined(OLD_RSA_GEN1) #if defined(OLD_RSA_GEN1)
g_writeln("openssl library old, RSA_generate_key_ex not right");
error = 1; error = 1;
#else #else
error = RSA_generate_key_ex(my_key, key_size_in_bits, my_e, 0) == 0; error = RSA_generate_key_ex(my_key, key_size_in_bits, my_e, 0) == 0;