wok view rdesktop/stuff/02_use_correct_modulus_and_exponent.patch @ rev 24217

updated perl-html-parser (3.72 -> 3.76)
author Hans-G?nter Theisgen
date Fri Dec 31 16:34:31 2021 +0100 (2021-12-31)
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;