Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(544)

Unified Diff: net/data/parse_certificate_unittest/tbs_explicit_v1.pem

Issue 1285593003: Add parsing code for TBSCertificate's "validity" field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert_parsing
Patch Set: rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/data/parse_certificate_unittest/tbs_explicit_v1.pem
diff --git a/net/data/parse_certificate_unittest/tbs_explicit_v1.pem b/net/data/parse_certificate_unittest/tbs_explicit_v1.pem
index 87ae877559c21e480b8e75509e855b566ced8bb5..67edbb3e6d5cb5d24f9915f058a59baf27fae0da 100644
--- a/net/data/parse_certificate_unittest/tbs_explicit_v1.pem
+++ b/net/data/parse_certificate_unittest/tbs_explicit_v1.pem
@@ -4,11 +4,12 @@ explicitly as 0. Instead it should have been omitted.
-----BEGIN TBS CERTIFICATE-----
-MCGgAwIBAAIBATADBAEBMAMEAQUwAwQBCDADBAEKMAMEAfM=
+MDygAwIBAAIBATADBAEBMAMEAQUwHhcNMTIxMDE4MDMxMjAwWhcNMTMxMDE4MTQ1OTU5WjADBAG
+DMAMEAfM=
-----END TBS CERTIFICATE-----
$ openssl asn1parse -i < [TBS CERTIFICATE]
- 0:d=0 hl=2 l= 33 cons: SEQUENCE
+ 0:d=0 hl=2 l= 60 cons: SEQUENCE
2:d=1 hl=2 l= 3 cons: cont [ 0 ]
4:d=2 hl=2 l= 1 prim: INTEGER :00
7:d=1 hl=2 l= 1 prim: INTEGER :01
@@ -16,10 +17,10 @@ $ openssl asn1parse -i < [TBS CERTIFICATE]
12:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
15:d=1 hl=2 l= 3 cons: SEQUENCE
17:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
- 20:d=1 hl=2 l= 3 cons: SEQUENCE
- 22:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:08
- 25:d=1 hl=2 l= 3 cons: SEQUENCE
- 27:d=2 hl=2 l= 1 prim: OCTET STRING :
-
- 30:d=1 hl=2 l= 3 cons: SEQUENCE
- 32:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
+ 20:d=1 hl=2 l= 30 cons: SEQUENCE
+ 22:d=2 hl=2 l= 13 prim: UTCTIME :121018031200Z
+ 37:d=2 hl=2 l= 13 prim: UTCTIME :131018145959Z
+ 52:d=1 hl=2 l= 3 cons: SEQUENCE
+ 54:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83
+ 57:d=1 hl=2 l= 3 cons: SEQUENCE
+ 59:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
« no previous file with comments | « net/cert/internal/parse_certificate_unittest.cc ('k') | net/data/parse_certificate_unittest/tbs_negative_serial_number.pem » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698