diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2014-06-05 17:52:02 -0700 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2014-06-05 17:52:02 -0700 |
commit | 09de814ff0dc0e8f47b383f30cc24c19eaec1d8b (patch) | |
tree | 84debacd78d71b86cc76d9d169c417560c5f83f6 | |
parent | 8a116d3051c5ae47939ebdf3ecdf23c35a1d7e00 (diff) | |
download | xrdp-proprietary-09de814ff0dc0e8f47b383f30cc24c19eaec1d8b.tar.gz xrdp-proprietary-09de814ff0dc0e8f47b383f30cc24c19eaec1d8b.zip |
common: allow RSA keys bigger than 512 bit
-rw-r--r-- | common/ssl_calls.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/ssl_calls.c b/common/ssl_calls.c index a187edc9..134f5afd 100644 --- a/common/ssl_calls.c +++ b/common/ssl_calls.c @@ -400,7 +400,8 @@ ssl_gen_key_xrdp1(int key_size_in_bits, char *exp, int exp_len, int error; int len; - if ((exp_len != 4) || (mod_len != 64) || (pri_len != 64)) + if ((exp_len != 4) || ((mod_len != 64) && (mod_len != 256)) || + ((pri_len != 64) && (pri_len != 256))) { return 1; } @@ -469,7 +470,8 @@ ssl_gen_key_xrdp1(int key_size_in_bits, char *exp, int exp_len, int error; int len; - if ((exp_len != 4) || (mod_len != 64) || (pri_len != 64)) + if ((exp_len != 4) || ((mod_len != 64) && (mod_len != 256)) || + ((pri_len != 64) && (pri_len != 256))) { return 1; } |