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

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

Issue 1383873002: Add a function for parsing an RFC 5280 Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix U-A-F in tests Created 5 years, 1 month 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
(Empty)
1 This is a basic constraints extension, where the critical field (BOOLEAN) is 0.
2
3 This is not valid because the critical field has a default of FALSE, so under
4 DER-encoding it should be omitted.
5
6
7 $ openssl asn1parse -i < [EXTENSION]
8 0:d=0 hl=2 l= 12 cons: SEQUENCE
9 2:d=1 hl=2 l= 3 prim: OBJECT :X509v3 Basic Constraints
10 7:d=1 hl=2 l= 1 prim: BOOLEAN :0
11 10:d=1 hl=2 l= 2 prim: OCTET STRING [HEX DUMP]:3000
12
13 -----BEGIN EXTENSION-----
14 MAwGA1UdEwEBAAQCMAA=
15 -----END EXTENSION-----
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698