diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-08-31 21:30:13 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-09-02 21:26:17 +0100 |
commit | e3e571925c40f4d9e0adfc7704e5df2057a13a19 (patch) | |
tree | 77221e5e693880f49b88e1396206f8d4879c586d /apps/crl.c | |
parent | cf170f558b6051a66b5e182ac447b7b8ce85c8d2 (diff) |
make X509_CRL opaque
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'apps/crl.c')
-rw-r--r-- | apps/crl.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/crl.c b/apps/crl.c index b4c9c75384..c0bf8749d2 100644 --- a/apps/crl.c +++ b/apps/crl.c @@ -358,8 +358,13 @@ int crl_main(int argc, char **argv) goto end; } - if (badsig) - x->signature->data[x->signature->length - 1] ^= 0x1; + 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 (outformat == FORMAT_ASN1) i = (int)i2d_X509_CRL_bio(out, x); |