From cc963273112e9be4c472ddf3131dc41bd94cd861 Mon Sep 17 00:00:00 2001 From: Junjie Gao Date: Thu, 9 May 2024 16:22:55 +0800 Subject: [PATCH] fix: update error message Signed-off-by: Junjie Gao --- internal/cms/signed.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cms/signed.go b/internal/cms/signed.go index 7446401..3e75d93 100644 --- a/internal/cms/signed.go +++ b/internal/cms/signed.go @@ -70,7 +70,7 @@ func ParseSignedData(berData []byte) (*ParsedSignedData, error) { } if signedData.Version != 3 { - return nil, SyntaxError{Message: fmt.Sprintf("invalid signed data version: got %d, want 3", signedData.Version)} + return nil, SyntaxError{Message: fmt.Sprintf("unsupported signed data version: got %d, want 3", signedData.Version)} } certs, err := x509.ParseCertificates(signedData.Certificates.Bytes)