Deal with the consequences of constifying getters
[openssl.git] / apps / req.c
index ca8a9af8747d4bcabec6a49ef52084e11665887a..d1f5dcb3450309e754c5944bd8cc16b19709cb7d 100644 (file)
@@ -768,7 +768,7 @@ int req_main(int argc, char **argv)
         fprintf(stdout, "Modulus=");
 #ifndef OPENSSL_NO_RSA
         if (EVP_PKEY_base_id(tpubkey) == EVP_PKEY_RSA) {
-            BIGNUM *n;
+            const BIGNUM *n;
             RSA_get0_key(EVP_PKEY_get0_RSA(tpubkey), &n, NULL, NULL);
             BN_print(out, n);
         } else