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

Unified Diff: net/data/parse_certificate_unittest/tbs_v3_real.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_v3_real.pem
diff --git a/net/data/parse_certificate_unittest/tbs_v3_real.pem b/net/data/parse_certificate_unittest/tbs_v3_real.pem
index a424058cbc28437ef69961788641d062a6d96da8..337cccd03006637806c3646c58f335f5da0bd1e9 100644
--- a/net/data/parse_certificate_unittest/tbs_v3_real.pem
+++ b/net/data/parse_certificate_unittest/tbs_v3_real.pem
@@ -174,14 +174,21 @@ $ openssl asn1parse -i < [ISSUER]
------BEGIN VALIDITY-----
-MB4XDTEyMDQxOTEzNTMyNFoXDTEzMDQxOTEzNTMyNFo=
------END VALIDITY-----
-
-$ openssl asn1parse -i < [VALIDITY]
- 0:d=0 hl=2 l= 30 cons: SEQUENCE
- 2:d=1 hl=2 l= 13 prim: UTCTIME :120419135324Z
- 17:d=1 hl=2 l= 13 prim: UTCTIME :130419135324Z
+-----BEGIN VALIDITY NOTBEFORE-----
+eWVhcj0yMDEyLCBtb250aD00LCBkYXk9MTksIGhvdXJzPTEzLCBtaW51dGVzPTUzLCBzZWNvbmR
+zPTI0
+-----END VALIDITY NOTBEFORE-----
+
+VALIDITY NOTBEFORE: year=2012, month=4, day=19, hours=13, minutes=53, seconds=24
+
+
+
+-----BEGIN VALIDITY NOTAFTER-----
+eWVhcj0yMDEzLCBtb250aD00LCBkYXk9MTksIGhvdXJzPTEzLCBtaW51dGVzPTUzLCBzZWNvbmR
+zPTI0
+-----END VALIDITY NOTAFTER-----
+
+VALIDITY NOTAFTER: year=2013, month=4, day=19, hours=13, minutes=53, seconds=24
« no previous file with comments | « net/data/parse_certificate_unittest/tbs_v3_no_optionals.pem ('k') | net/data/parse_certificate_unittest/tbs_v4.pem » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698