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

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

Issue 2759023002: Improvements to the net/cert/internal error handling. (Closed)
Patch Set: fix comment Created 3 years, 9 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 a synthesized Certificate, where the signature algorithm is an INTEGER 1 This is a synthesized Certificate, where the signature algorithm is an INTEGER
2 rather than a SEQUENCE. 2 rather than a SEQUENCE.
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 prim: INTEGER :0500 9 6:d=1 hl=2 l= 2 prim: INTEGER :0500
10 10:d=1 hl=2 l= 2 prim: BIT STRING 10 10:d=1 hl=2 l= 2 prim: BIT STRING
11 -----BEGIN CERTIFICATE----- 11 -----BEGIN CERTIFICATE-----
12 MAwwAgUAAgIFAAMCAKs= 12 MAwwAgUAAgIFAAMCAKs=
13 -----END CERTIFICATE----- 13 -----END CERTIFICATE-----
14 14
15 [Error] Couldn't read Certificate.signatureAlgorithm as SEQUENCE 15 ERROR: Couldn't read Certificate.signatureAlgorithm as SEQUENCE
16 16
17 -----BEGIN ERRORS----- 17 -----BEGIN ERRORS-----
18 W0Vycm9yXSBDb3VsZG4ndCByZWFkIENlcnRpZmljYXRlLnNpZ25hdHVyZUFsZ29yaXRobSBhcyBTRVFV RU5DRQo= 18 RVJST1I6IENvdWxkbid0IHJlYWQgQ2VydGlmaWNhdGUuc2lnbmF0dXJlQWxnb3JpdGhtIGFzIFNFUVVF TkNFCg==
19 -----END ERRORS----- 19 -----END ERRORS-----
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698