summaryrefslogtreecommitdiffstats
path: root/apps/x509.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-08-17 14:10:52 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-08-17 14:12:55 +0100
commit8adc1cb8510a9f4beab9e53f53c9690d2ced12fd (patch)
tree3f0d1dc1a57bae07f1806c27c31e96a900c5e48a /apps/x509.c
parent8900f3e3982a016a25ad87a2270446e780038ec9 (diff)
Constify X509_get0_signature()
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/x509.c')
-rw-r--r--apps/x509.c3
1 files changed, 2 insertions, 1 deletions
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);
}