From: pcarana Date: Wed, 30 Oct 2019 00:08:48 +0000 (-0600) Subject: Use 'RSA_get0_key', some ssl libs didn't had the function 'RSA_get0_e' X-Git-Tag: v1.1.1^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8005195c2183c616f4e6b7c93a123fb187e23ca1;p=thirdparty%2FFORT-validator.git Use 'RSA_get0_key', some ssl libs didn't had the function 'RSA_get0_e' --- 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.");