temp solution for darwin

This commit is contained in:
Sun Yimin 2022-06-09 09:11:43 +08:00 committed by GitHub
parent 163fb51082
commit 936c19772e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,9 @@
package smx509 package smx509
import (
"errors"
)
func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) { func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) {
return nil, nil return nil, nil
} }
func loadSystemRoots() (*CertPool, error) { func loadSystemRoots() (*CertPool, error) {
return nil, errors.New("x509: gmsm does not support darwin system root yet") return [][]*Certificate{{}}, nil
} }