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

Side by Side Diff: net/data/parse_certificate_unittest/tbs_v3_data_after_extensions.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 TBSCertificate, except there is a NULL after the 1 This is an otherwise valid TBSCertificate, except there is a NULL after the
2 extensions. 2 extensions.
3 3
4 4
5 $ openssl asn1parse -i < [TBS CERTIFICATE] 5 $ openssl asn1parse -i < [TBS CERTIFICATE]
6 0:d=0 hl=2 l= 69 cons: SEQUENCE 6 0:d=0 hl=2 l= 69 cons: SEQUENCE
7 2:d=1 hl=2 l= 3 cons: cont [ 0 ] 7 2:d=1 hl=2 l= 3 cons: cont [ 0 ]
8 4:d=2 hl=2 l= 1 prim: INTEGER :02 8 4:d=2 hl=2 l= 1 prim: INTEGER :02
9 7:d=1 hl=2 l= 1 prim: INTEGER :01 9 7:d=1 hl=2 l= 1 prim: INTEGER :01
10 10:d=1 hl=2 l= 3 cons: SEQUENCE 10 10:d=1 hl=2 l= 3 cons: SEQUENCE
11 12:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01 11 12:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
12 15:d=1 hl=2 l= 3 cons: SEQUENCE 12 15:d=1 hl=2 l= 3 cons: SEQUENCE
13 17:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05 13 17:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
14 20:d=1 hl=2 l= 30 cons: SEQUENCE 14 20:d=1 hl=2 l= 30 cons: SEQUENCE
15 22:d=2 hl=2 l= 13 prim: UTCTIME :121018031200Z 15 22:d=2 hl=2 l= 13 prim: UTCTIME :121018031200Z
16 37:d=2 hl=2 l= 13 prim: UTCTIME :131018145959Z 16 37:d=2 hl=2 l= 13 prim: UTCTIME :131018145959Z
17 52:d=1 hl=2 l= 3 cons: SEQUENCE 17 52:d=1 hl=2 l= 3 cons: SEQUENCE
18 54:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83 18 54:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83
19 57:d=1 hl=2 l= 3 cons: SEQUENCE 19 57:d=1 hl=2 l= 3 cons: SEQUENCE
20 59:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3 20 59:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
21 62:d=1 hl=2 l= 5 cons: cont [ 3 ] 21 62:d=1 hl=2 l= 5 cons: cont [ 3 ]
22 64:d=2 hl=2 l= 3 cons: SEQUENCE 22 64:d=2 hl=2 l= 3 cons: SEQUENCE
23 66:d=3 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:DD 23 66:d=3 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:DD
24 69:d=1 hl=2 l= 0 prim: NULL 24 69:d=1 hl=2 l= 0 prim: NULL
25 -----BEGIN TBS CERTIFICATE----- 25 -----BEGIN TBS CERTIFICATE-----
26 MEWgAwIBAgIBATADBAEBMAMEAQUwHhcNMTIxMDE4MDMxMjAwWhcNMTMxMDE4MTQ1OTU5WjADBAG 26 MEWgAwIBAgIBATADBAEBMAMEAQUwHhcNMTIxMDE4MDMxMjAwWhcNMTMxMDE4MTQ1OTU5WjADBAG
27 DMAMEAfOjBTADBAHdBQA= 27 DMAMEAfOjBTADBAHdBQA=
28 -----END TBS CERTIFICATE----- 28 -----END TBS CERTIFICATE-----
29 29
30 [Error] Unconsumed data inside TBSCertificate 30 ERROR: Unconsumed data inside TBSCertificate
31 31
32 -----BEGIN ERRORS----- 32 -----BEGIN ERRORS-----
33 W0Vycm9yXSBVbmNvbnN1bWVkIGRhdGEgaW5zaWRlIFRCU0NlcnRpZmljYXRlCg== 33 RVJST1I6IFVuY29uc3VtZWQgZGF0YSBpbnNpZGUgVEJTQ2VydGlmaWNhdGUK
34 -----END ERRORS----- 34 -----END ERRORS-----
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698