]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Use 'RSA_get0_key', some ssl libs didn't had the function 'RSA_get0_e' v1.1.1
authorpcarana <pc.moreno2099@gmail.com>
Wed, 30 Oct 2019 00:08:48 +0000 (18:08 -0600)
committerpcarana <pc.moreno2099@gmail.com>
Wed, 30 Oct 2019 00:08:48 +0000 (18:08 -0600)
src/object/certificate.c

index d73b94ff2fc0de09bba47a2d2871e3b64956f87e..f52d1f4a45f6411a7cecc1707458a4b9b293c080 100644 (file)
@@ -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.");