wok diff rdesktop/stuff/02_use_correct_modulus_and_exponent.patch @ rev 24986

Up nettle 3.7.3 again, need glib-networking rebuild to no break midori
author Stanislas Leduc <shann@slitaz.org>
date Wed May 11 08:28:28 2022 -0400 (2022-05-11)
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	Wed May 11 08:28:28 2022 -0400
     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 +