wok view rdesktop/stuff/02_use_correct_modulus_and_exponent.patch @ rev 24133
Up tazinst (115)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 23 15:17:56 2021 +0000 (2021-10-23) |
parents | |
children |
line source
1 From 53ba87dc174175e98332e22355ad8662c02880d6 Mon Sep 17 00:00:00 2001
2 From: Markus Beth <markus.beth@zkrd.de>
3 Date: Mon, 2 Dec 2019 11:22:13 +0100
4 Subject: [PATCH] use correct modulus and exponent in rdssl_rkey_get_exp_mod
6 ---
7 ssl.c | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
10 diff --git a/ssl.c b/ssl.c
11 index 930c7f94..0681a890 100644
12 --- a/ssl.c
13 +++ b/ssl.c
14 @@ -307,10 +307,10 @@ rdssl_rkey_get_exp_mod(RDSSL_RKEY * rkey, uint8 * exponent, uint32 max_exp_len,
15 {
16 size_t outlen;
18 - outlen = (mpz_sizeinbase(modulus, 2) + 7) / 8;
19 + outlen = (mpz_sizeinbase(rkey->n, 2) + 7) / 8;
20 if (outlen > max_mod_len)
21 return 1;
22 - outlen = (mpz_sizeinbase(exponent, 2) + 7) / 8;
23 + outlen = (mpz_sizeinbase(rkey->e, 2) + 7) / 8;
24 if (outlen > max_exp_len)
25 return 1;