diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-08-16 14:06:48 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-08-16 16:05:35 +0100 |
commit | 17ebf85abda18c3875b1ba6670fe7b393bc1f297 (patch) | |
tree | 224f98559daf13f77b4526df0a24a3ab1675f685 /apps/crl.c | |
parent | 1940aa6e6b51147df10a5bffcaaa2b9904209184 (diff) | |
download | openssl-17ebf85abda18c3875b1ba6670fe7b393bc1f297.tar.gz |
Add ASN1_STRING_get0_data(), deprecate ASN1_STRING_data().
Deprecate the function ASN1_STRING_data() and replace with a new function
ASN1_STRING_get0_data() which returns a constant pointer. Update library
to use new function.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/crl.c')
-rw-r--r-- | apps/crl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/crl.c b/apps/crl.c index 3e30bdc59c..6ea0b4c32b 100644 --- a/apps/crl.c +++ b/apps/crl.c @@ -321,10 +321,9 @@ int crl_main(int argc, char **argv) if (badsig) { ASN1_BIT_STRING *sig; - unsigned char *psig; X509_CRL_get0_signature(&sig, NULL, x); - psig = ASN1_STRING_data(sig); - psig[ASN1_STRING_length(sig) - 1] ^= 0x1; + if (!corrupt_signature(sig)) + goto end; } if (outformat == FORMAT_ASN1) |