From 0efee4cd833ac0b0cc31068167966a342d0b99cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Tue, 28 Apr 2015 14:38:52 +0200 Subject: [PATCH] Crypto.RSA: Fixed warnings with old Nettle. Fixes remainder of [bug 7469]. --- lib/modules/Crypto.pmod/RSA.pmod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/Crypto.pmod/RSA.pmod b/lib/modules/Crypto.pmod/RSA.pmod index 24b9b797c4..15aa4c4581 100644 --- a/lib/modules/Crypto.pmod/RSA.pmod +++ b/lib/modules/Crypto.pmod/RSA.pmod @@ -160,7 +160,7 @@ class State { // Generate a prime with @[bits] number of bits using random function // @[r]. - protected Gmp.mpz get_prime(int bits, function(int:string(8bit)) r) + protected Gmp.mpz get_prime(int bits, function(int(0..):string(8bit)) r) { int len = (bits + 7) / 8; int bit_to_set = 1 << ( (bits - 1) % 8); -- GitLab