From 48907c4653c64bb0010308e2581b7a57a48f69c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E9=93=AD?= Date: Wed, 23 Oct 2024 15:53:21 +0800 Subject: [PATCH] =?UTF-8?q?getCert=20=E4=BB=8E=E8=AF=81=E4=B9=A6=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=B8=AD=E6=8F=90=E5=8F=96=E8=AF=81=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- alipay/utils/common.go | 1 + 1 file changed, 1 insertion(+) diff --git a/alipay/utils/common.go b/alipay/utils/common.go index 812b2b9..4083a88 100644 --- a/alipay/utils/common.go +++ b/alipay/utils/common.go @@ -23,6 +23,7 @@ func hex2dec(hex string) string { return fmt.Sprintf("%d", dec) } +// getCert 从证书数据中提取证书 func getCert(certData []byte) (*x509.Certificate, error) { block, _ := pem.Decode(certData) if block == nil {