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

Unified Diff: net/data/parse_certificate_unittest/tbs_v1_extensions.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_v1_extensions.pem
diff --git a/net/data/parse_certificate_unittest/tbs_v1_extensions.pem b/net/data/parse_certificate_unittest/tbs_v1_extensions.pem
index 45d8550bcca34c3eace63223dd38792a5f668875..82b13a9e8bb5593a9577a00382a410c62402565a 100644
--- a/net/data/parse_certificate_unittest/tbs_v1_extensions.pem
+++ b/net/data/parse_certificate_unittest/tbs_v1_extensions.pem
@@ -4,23 +4,24 @@ it v1). As such extensions are not allowed.
-----BEGIN TBS CERTIFICATE-----
-MCMCAQEwAwQBATADBAEFMAMEAQgwAwQBCjADBAHzowUwAwQB3Q==
+MD4CAQEwAwQBATADBAEFMB4XDTEyMTAxODAzMTIwMFoXDTEzMTAxODE0NTk1OVowAwQBgzADBAH
+zowUwAwQB3Q==
-----END TBS CERTIFICATE-----
$ openssl asn1parse -i < [TBS CERTIFICATE]
- 0:d=0 hl=2 l= 35 cons: SEQUENCE
+ 0:d=0 hl=2 l= 62 cons: SEQUENCE
2:d=1 hl=2 l= 1 prim: INTEGER :01
5:d=1 hl=2 l= 3 cons: SEQUENCE
7:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
10:d=1 hl=2 l= 3 cons: SEQUENCE
12:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
- 15:d=1 hl=2 l= 3 cons: SEQUENCE
- 17:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:08
- 20:d=1 hl=2 l= 3 cons: SEQUENCE
- 22:d=2 hl=2 l= 1 prim: OCTET STRING :
-
- 25:d=1 hl=2 l= 3 cons: SEQUENCE
- 27:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
- 30:d=1 hl=2 l= 5 cons: cont [ 3 ]
- 32:d=2 hl=2 l= 3 cons: SEQUENCE
- 34:d=3 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:DD
+ 15:d=1 hl=2 l= 30 cons: SEQUENCE
+ 17:d=2 hl=2 l= 13 prim: UTCTIME :121018031200Z
+ 32:d=2 hl=2 l= 13 prim: UTCTIME :131018145959Z
+ 47:d=1 hl=2 l= 3 cons: SEQUENCE
+ 49:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83
+ 52:d=1 hl=2 l= 3 cons: SEQUENCE
+ 54:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
+ 57:d=1 hl=2 l= 5 cons: cont [ 3 ]
+ 59:d=2 hl=2 l= 3 cons: SEQUENCE
+ 61:d=3 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:DD
« no previous file with comments | « net/data/parse_certificate_unittest/tbs_v1.pem ('k') | net/data/parse_certificate_unittest/tbs_v2_extensions.pem » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698