From 8adc1cb8510a9f4beab9e53f53c9690d2ced12fd Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 17 Aug 2016 14:10:52 +0100 Subject: Constify X509_get0_signature() Reviewed-by: Richard Levitte --- apps/x509.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/x509.c') diff --git a/apps/x509.c b/apps/x509.c index 27a928c103..6f72f82c8b 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -604,7 +604,8 @@ int x509_main(int argc, char **argv) } if (badsig) { - ASN1_BIT_STRING *signature; + const ASN1_BIT_STRING *signature; + X509_get0_signature(&signature, NULL, x); corrupt_signature(signature); } -- cgit v1.2.3