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

Side by Side Diff: net/data/parse_certificate_unittest/cert_missing_signature.pem

Issue 1288193003: Add a function for parsing RFC 5280's "Certificate". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test_helpers
Patch Set: More comment fixes 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 unified diff | Download patch
OLDNEW
(Empty)
1 This is an otherwise "valid" Certificate input for ParseCertificate(), however
2 it is missing the final field (signature).
3
4
5
6 -----BEGIN CERTIFICATE-----
7 MAgwAgUAMAIFAA==
8 -----END CERTIFICATE-----
9
10 $ openssl asn1parse -i < [CERTIFICATE]
11 0:d=0 hl=2 l= 8 cons: SEQUENCE
12 2:d=1 hl=2 l= 2 cons: SEQUENCE
13 4:d=2 hl=2 l= 0 prim: NULL
14 6:d=1 hl=2 l= 2 cons: SEQUENCE
15 8:d=2 hl=2 l= 0 prim: NULL
OLDNEW
« no previous file with comments | « net/data/parse_certificate_unittest/cert_empty_sequence.pem ('k') | net/data/parse_certificate_unittest/cert_not_sequence.pem » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698