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

Side by Side Diff: net/data/parse_certificate_unittest/cert_data_after_signature.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 an otherwise "valid" input to ParseCertificate(), however there is a 1 This is an otherwise "valid" input to ParseCertificate(), however there is a
2 trailing NULL after the signature field. 2 trailing NULL after the signature field.
3 3
4 4
5 $ openssl asn1parse -i < [CERTIFICATE] 5 $ openssl asn1parse -i < [CERTIFICATE]
6 0:d=0 hl=2 l= 14 cons: SEQUENCE 6 0:d=0 hl=2 l= 14 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: BIT STRING 11 10:d=1 hl=2 l= 2 prim: BIT STRING
12 14:d=1 hl=2 l= 0 prim: NULL 12 14:d=1 hl=2 l= 0 prim: NULL
13 -----BEGIN CERTIFICATE----- 13 -----BEGIN CERTIFICATE-----
14 MA4wAgUAMAIFAAMCAKwFAA== 14 MA4wAgUAMAIFAAMCAKwFAA==
15 -----END CERTIFICATE----- 15 -----END CERTIFICATE-----
16 16
17 [Error] Unconsumed data inside Certificate SEQUENCE 17 ERROR: Unconsumed data inside Certificate SEQUENCE
18 18
19 -----BEGIN ERRORS----- 19 -----BEGIN ERRORS-----
20 W0Vycm9yXSBVbmNvbnN1bWVkIGRhdGEgaW5zaWRlIENlcnRpZmljYXRlIFNFUVVFTkNFCg== 20 RVJST1I6IFVuY29uc3VtZWQgZGF0YSBpbnNpZGUgQ2VydGlmaWNhdGUgU0VRVUVOQ0UK
21 -----END ERRORS----- 21 -----END ERRORS-----
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698