Skip to content

Commit

Permalink
CRL critical extension bugfix
Browse files Browse the repository at this point in the history
More importantly, port CRL test from boringSSL crypto/x509/x509_test.cc

Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#1775)
  • Loading branch information
Rich Salz committed Dec 14, 2016
1 parent 99f2f1d commit 2b40699
Show file tree
Hide file tree
Showing 4 changed files with 381 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crypto/x509/x_crl.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static int crl_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
if ((nid == NID_issuing_distribution_point)
|| (nid == NID_authority_key_identifier)
|| (nid == NID_delta_crl))
break;;
continue;
crl->flags |= EXFLAG_CRITICAL;
break;
}
Expand Down
6 changes: 5 additions & 1 deletion test/build.info
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ IF[{- !$disabled{tests} -}]
randtest dhtest enginetest casttest \
bftest ssltest_old dsatest exptest rsa_test \
evp_test evp_extra_test igetest v3nametest v3ext \
danetest p5_crpt2_test bad_dtls_test \
crltest danetest p5_crpt2_test bad_dtls_test \
constant_time_test verify_extra_test clienthellotest \
packettest asynctest secmemtest srptest memleaktest \
dtlsv1listentest ct_test threadstest afalgtest d2i_test \
Expand Down Expand Up @@ -171,6 +171,10 @@ IF[{- !$disabled{tests} -}]
INCLUDE[v3nametest]=../include
DEPEND[v3nametest]=../libcrypto

SOURCE[crltest]=crltest.c testutil.c test_main.c
INCLUDE[crltest]=../include
DEPEND[crltest]=../libcrypto

SOURCE[v3ext]=v3ext.c
INCLUDE[v3ext]=../include
DEPEND[v3ext]=../libcrypto
Expand Down
Loading

0 comments on commit 2b40699

Please sign in to comment.