pkcs: fix error message issue

This commit is contained in:
Sun Yimin 2024-07-09 12:58:47 +08:00 committed by GitHub
parent eb72185fff
commit d5b39e6176
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ func TestGetCipher(t *testing.T) {
} }
_, err = GetCipher(pkix.AlgorithmIdentifier{Algorithm: asn1.ObjectIdentifier{1, 2, 156, 10197, 1, 401, 2}}) _, err = GetCipher(pkix.AlgorithmIdentifier{Algorithm: asn1.ObjectIdentifier{1, 2, 156, 10197, 1, 401, 2}})
if err == nil || err.Error() != "pkcs: unsupported cipher (OID: 1.2.156.10197.1.401.2)" { if err == nil || err.Error() != "pbes: unsupported cipher (OID: 1.2.156.10197.1.401.2)" {
t.Fatal(err) t.Fatal(err)
} }
} }