summarylogtreecommitdiffstats
path: root/fix.patch
blob: e2e01a13f1732b4a6012bc3d2991af09e6369a81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/nss/lib/freebl/blapii.h
+++ b/nss/lib/freebl/blapii.h
@@ -81,7 +81,7 @@
 #undef HAVE_NO_SANITIZE_ATTR
 
 SECStatus RSA_Init();
-SECStatus generate_prime(mp_int *prime, int primeLen);
+SECStatus generate_prime(struct mp_int *prime, int primeLen);
 
 SECStatus
 RSA_EMSAEncodePSS(unsigned char *em,
--- a/nss/lib/freebl/secmpi.h
+++ b/nss/lib/freebl/secmpi.h
@@ -54,10 +54,10 @@
     }
 
 /* Fill the `used` digits of an mp_int with random bits */
-mp_err mpp_random_secure(mp_int *a);
+struct mp_err mpp_random_secure(struct mp_int *a);
 
 /* Pseudo-primality testing using `mpp_random_secure` to choose Miller-Rabin base */
-mp_err mpp_pprime_secure(mp_int *a, int nt);
+struct mp_err mpp_pprime_secure(struct mp_int *a, int nt);
 
 /* Variant of `mpp_make_prime` using `mpp_random_secure` to choose Miller-Rabin base */
-mp_err mpp_make_prime_secure(mp_int *start, mp_size nBits, mp_size strong);
+struct mp_err mpp_make_prime_secure(struct mp_int *start, struct mp_size nBits, struct mp_size strong);