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

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

Issue 2337373003: Add error details to ParseCertificate test data. (Closed)
Patch Set: sigh, git rebase-update added junk file Created 4 years, 3 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
1 This is an empty SEQUENCE. It will fail to be parsed as a Certificate since it 1 This is an empty SEQUENCE. It will fail to be parsed as a Certificate since it
2 contains no fields. 2 contains no fields.
3 3
4 4
5 $ openssl asn1parse -i < [CERTIFICATE] 5 $ openssl asn1parse -i < [CERTIFICATE]
6 0:d=0 hl=2 l= 0 cons: SEQUENCE 6 0:d=0 hl=2 l= 0 cons: SEQUENCE
7 -----BEGIN CERTIFICATE----- 7 -----BEGIN CERTIFICATE-----
8 MAA= 8 MAA=
9 -----END CERTIFICATE----- 9 -----END CERTIFICATE-----
10
11 [Error] Couldn't read tbsCertificate as SEQUENCE
12
13 -----BEGIN ERRORS-----
14 W0Vycm9yXSBDb3VsZG4ndCByZWFkIHRic0NlcnRpZmljYXRlIGFzIFNFUVVFTkNFCg==
15 -----END ERRORS-----
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698