add error case to DNParse tests
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
parent
a2b3cc81c3
commit
0f078859de
@ -161,6 +161,7 @@ func TestErrorDNParsing(t *testing.T) {
|
||||
`1.3.6.1.4.1.1466.0=test;`: "DN ended with incomplete type, value pair",
|
||||
"1.3.6.1.4.1.1466.0=test+,": "incomplete type, value pair",
|
||||
"1=#0402486": "failed to decode hex-encoded string: encoding/hex: odd length hex string",
|
||||
"DF=#6666666666665006838820013100000746939546349182108463491821809FBFFFFFFFFF": "failed to unmarshal hex-encoded string: asn1: syntax error: data truncated",
|
||||
}
|
||||
|
||||
for test, answer := range testcases {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user