wok-6.x diff rdesktop/stuff/02_use_correct_modulus_and_exponent.patch @ rev 24110
rdesktop: add debian patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 28 10:48:56 2021 +0000 (2021-09-28) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/rdesktop/stuff/02_use_correct_modulus_and_exponent.patch Tue Sep 28 10:48:56 2021 +0000 1.3 @@ -0,0 +1,26 @@ 1.4 +From 53ba87dc174175e98332e22355ad8662c02880d6 Mon Sep 17 00:00:00 2001 1.5 +From: Markus Beth <markus.beth@zkrd.de> 1.6 +Date: Mon, 2 Dec 2019 11:22:13 +0100 1.7 +Subject: [PATCH] use correct modulus and exponent in rdssl_rkey_get_exp_mod 1.8 + 1.9 +--- 1.10 + ssl.c | 4 ++-- 1.11 + 1 file changed, 2 insertions(+), 2 deletions(-) 1.12 + 1.13 +diff --git a/ssl.c b/ssl.c 1.14 +index 930c7f94..0681a890 100644 1.15 +--- a/ssl.c 1.16 ++++ b/ssl.c 1.17 +@@ -307,10 +307,10 @@ rdssl_rkey_get_exp_mod(RDSSL_RKEY * rkey, uint8 * exponent, uint32 max_exp_len, 1.18 + { 1.19 + size_t outlen; 1.20 + 1.21 +- outlen = (mpz_sizeinbase(modulus, 2) + 7) / 8; 1.22 ++ outlen = (mpz_sizeinbase(rkey->n, 2) + 7) / 8; 1.23 + if (outlen > max_mod_len) 1.24 + return 1; 1.25 +- outlen = (mpz_sizeinbase(exponent, 2) + 7) / 8; 1.26 ++ outlen = (mpz_sizeinbase(rkey->e, 2) + 7) / 8; 1.27 + if (outlen > max_exp_len) 1.28 + return 1; 1.29 +