Index: net/data/parse_certificate_unittest/cert_signature_not_bit_string.pem |
diff --git a/net/data/parse_certificate_unittest/cert_signature_not_bit_string.pem b/net/data/parse_certificate_unittest/cert_signature_not_bit_string.pem |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9a5f8765e1781ac3827daeda051d4e163b109a95 |
--- /dev/null |
+++ b/net/data/parse_certificate_unittest/cert_signature_not_bit_string.pem |
@@ -0,0 +1,16 @@ |
+This is an otherwise valid input to ParseSignature(), however the signature was |
+changed from a BIT STRING to an OCTET STRING. |
+ |
+ |
+ |
+-----BEGIN CERTIFICATE----- |
+MAwwAgUAMAIFAAQCAQI= |
+-----END CERTIFICATE----- |
+ |
+$ openssl asn1parse -i < [CERTIFICATE] |
+ 0:d=0 hl=2 l= 12 cons: SEQUENCE |
+ 2:d=1 hl=2 l= 2 cons: SEQUENCE |
+ 4:d=2 hl=2 l= 0 prim: NULL |
+ 6:d=1 hl=2 l= 2 cons: SEQUENCE |
+ 8:d=2 hl=2 l= 0 prim: NULL |
+ 10:d=1 hl=2 l= 2 prim: OCTET STRING [HEX DUMP]:0102 |