From 8005195c2183c616f4e6b7c93a123fb187e23ca1 Mon Sep 17 00:00:00 2001 From: pcarana Date: Tue, 29 Oct 2019 18:08:48 -0600 Subject: [PATCH] Use 'RSA_get0_key', some ssl libs didn't had the function 'RSA_get0_e' --- src/object/certificate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object/certificate.c b/src/object/certificate.c index d73b94ff..f52d1f4a 100644 --- a/src/object/certificate.c +++ b/src/object/certificate.c @@ -258,7 +258,7 @@ validate_subject_public_key(X509_PUBKEY *pubkey) return pr_err("Certificate's subjectPublicKey (RSAPublicKey) modulus is %d bits, not %d bits.", modulus, MODULUS); - exp = RSA_get0_e(rsa); + RSA_get0_key(rsa, NULL, &exp, NULL); if (exp == NULL) return pr_err("Certificate's subjectPublicKey (RSAPublicKey) exponent isn't set, must be " EXPONENT " bits."); -- 2.47.3