From 2ac6115d9ee35308300b82d96078d03d81e7d320 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 14 Jun 2016 15:49:05 +0200 Subject: Deal with the consequences of constifying getters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Stephen Henson Reviewed-by: Emilia Käsper --- apps/x509.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/x509.c') diff --git a/apps/x509.c b/apps/x509.c index 0753817257..4191a345bb 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -684,14 +684,14 @@ int x509_main(int argc, char **argv) BIO_printf(out, "Modulus="); #ifndef OPENSSL_NO_RSA if (EVP_PKEY_id(pkey) == EVP_PKEY_RSA) { - BIGNUM *n; + const BIGNUM *n; RSA_get0_key(EVP_PKEY_get0_RSA(pkey), &n, NULL, NULL); BN_print(out, n); } else #endif #ifndef OPENSSL_NO_DSA if (EVP_PKEY_id(pkey) == EVP_PKEY_DSA) { - BIGNUM *dsapub = NULL; + const BIGNUM *dsapub = NULL; DSA_get0_key(EVP_PKEY_get0_DSA(pkey), &dsapub, NULL); BN_print(out, dsapub); } else -- cgit v1.2.3