diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2016-11-11 22:29:54 -0800 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2016-11-11 22:29:54 -0800 |
commit | da9439f24d57dae9c14d2310989e30562107481c (patch) | |
tree | 1c7ce9304a5c596f9eab0e2fc4f8b69e7e024064 /libxrdp/xrdp_sec.c | |
parent | e39f567c35a7eebc4b7666977a394d483e63a1ad (diff) | |
download | xrdp-proprietary-da9439f24d57dae9c14d2310989e30562107481c.tar.gz xrdp-proprietary-da9439f24d57dae9c14d2310989e30562107481c.zip |
libxrdp: warn when using 512 bit key
Diffstat (limited to 'libxrdp/xrdp_sec.c')
-rw-r--r-- | libxrdp/xrdp_sec.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libxrdp/xrdp_sec.c b/libxrdp/xrdp_sec.c index cc8b8d16..06813d25 100644 --- a/libxrdp/xrdp_sec.c +++ b/libxrdp/xrdp_sec.c @@ -2315,6 +2315,15 @@ xrdp_sec_incoming(struct xrdp_sec *self) hex_str_to_bin(value, self->pri_exp, self->rsa_key_bytes); } } + + if (self->rsa_key_bytes <= 64) + { + g_writeln("warning, RSA key len 512 " + "bits or less, consider creating a 2048 bit key"); + log_message(LOG_LEVEL_WARNING, "warning, RSA key len 512 " + "bits or less, consider creating a 2048 bit key"); + } + list_delete(items); list_delete(values); } |