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

Side by Side Diff: net/data/parse_certificate_unittest/cert_signature_not_bit_string.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 otherwise valid input to ParseSignature(), however the signature was 1 This is an otherwise valid input to ParseSignature(), however the signature was
2 changed from a BIT STRING to an OCTET STRING. 2 changed from a BIT STRING to an OCTET STRING.
3 3
4 4
5 $ openssl asn1parse -i < [CERTIFICATE] 5 $ openssl asn1parse -i < [CERTIFICATE]
6 0:d=0 hl=2 l= 12 cons: SEQUENCE 6 0:d=0 hl=2 l= 12 cons: SEQUENCE
7 2:d=1 hl=2 l= 2 cons: SEQUENCE 7 2:d=1 hl=2 l= 2 cons: SEQUENCE
8 4:d=2 hl=2 l= 0 prim: NULL 8 4:d=2 hl=2 l= 0 prim: NULL
9 6:d=1 hl=2 l= 2 cons: SEQUENCE 9 6:d=1 hl=2 l= 2 cons: SEQUENCE
10 8:d=2 hl=2 l= 0 prim: NULL 10 8:d=2 hl=2 l= 0 prim: NULL
11 10:d=1 hl=2 l= 2 prim: OCTET STRING [HEX DUMP]:0102 11 10:d=1 hl=2 l= 2 prim: OCTET STRING [HEX DUMP]:0102
12 -----BEGIN CERTIFICATE----- 12 -----BEGIN CERTIFICATE-----
13 MAwwAgUAMAIFAAQCAQI= 13 MAwwAgUAMAIFAAQCAQI=
14 -----END CERTIFICATE----- 14 -----END CERTIFICATE-----
15
16 [Error] Couldn't read Certificate.signatureValue as BIT STRING
17
18 -----BEGIN ERRORS-----
19 W0Vycm9yXSBDb3VsZG4ndCByZWFkIENlcnRpZmljYXRlLnNpZ25hdHVyZVZhbHVlIGFzIEJJVCBTVFJJ TkcK
20 -----END ERRORS-----
OLDNEW
« no previous file with comments | « net/data/parse_certificate_unittest/cert_not_sequence.pem ('k') | net/data/verify_certificate_chain_unittest/rebase-errors.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698