@@ -75,11 +75,13 @@ func TestSuccessfulDNParsing(t *testing.T) {
7575
7676func TestErrorDNParsing (t * testing.T ) {
7777 testcases := map [string ]string {
78- "*" : "DN ended with incomplete type, value pair" ,
79- "cn=Jim\\ 0Test" : "Failed to decode escaped character: encoding/hex: invalid byte: U+0054 'T'" ,
80- "cn=Jim\\ 0" : "Got corrupted escaped character" ,
81- "DC=example,=net" : "DN ended with incomplete type, value pair" ,
82- "1=#0402486" : "Failed to decode BER encoding: encoding/hex: odd length hex string" ,
78+ "*" : "DN ended with incomplete type, value pair" ,
79+ "cn=Jim\\ 0Test" : "Failed to decode escaped character: encoding/hex: invalid byte: U+0054 'T'" ,
80+ "cn=Jim\\ 0" : "Got corrupted escaped character" ,
81+ "DC=example,=net" : "DN ended with incomplete type, value pair" ,
82+ "1=#0402486" : "Failed to decode BER encoding: encoding/hex: odd length hex string" ,
83+ "test,DC=example,DC=com" : "incomplete type, value pair" ,
84+ "=test,DC=example,DC=com" : "incomplete type, value pair" ,
8385 }
8486
8587 for test , answer := range testcases {
0 commit comments