summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2020-03-12 12:56:37 +0300
committerDmitry Baryshkov <dbaryshkov@gmail.com>2020-03-12 19:47:22 +0300
commit6ebfbda5fa424a1462c823bc8dd94f8c3d792bef (patch)
tree4dba12483be80a05e381a083fcb33076103d0803 /tests
parent6df0dab742b4ee5bd3fa55680657326305bde8cc (diff)
downloadgnutls-6ebfbda5fa424a1462c823bc8dd94f8c3d792bef.tar.gz
lib/x509: use common routine for parsing data version
OSS Fuzzer noted an issue in parsing (incorrect) CRL files with zero-length version field. Certificate parser does not have this issue, while CRL and OCSP Request and Response parsers shows this problem. To remove code duplication extract common function and use it from all four parsers. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/cert-tests/data/crl-demo3.pem2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cert-tests/data/crl-demo3.pem b/tests/cert-tests/data/crl-demo3.pem
index 1e04338c67..a91b1f905a 100644
--- a/tests/cert-tests/data/crl-demo3.pem
+++ b/tests/cert-tests/data/crl-demo3.pem
@@ -1,5 +1,5 @@
X.509 Certificate Revocation List Information:
- Version: 1 (default)
+ Version: 1
Issuer: OU=VeriSign Commercial Software Publishers CA,O=VeriSign\, Inc.,L=Internet
Update dates:
Issued: Wed Mar 08 09:00:11 UTC 2017