From: bxq2011hust Date: Fri, 10 Jan 2020 07:03:21 +0000 (+0000) Subject: crypto/x509: this change modifies C.CopyPEMRoots to static function X-Git-Tag: go1.14rc1~130 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=79ccbe1b67b9c481c73bd6b310849bbcf13954a5;p=gostls13.git crypto/x509: this change modifies C.CopyPEMRoots to static function Change-Id: Ic7997d1f747152afec78e8e439770166029f34ec GitHub-Last-Rev: 6a07f25056c960dc8684cd6eac22cd3405a936c8 GitHub-Pull-Request: golang/go#36491 Reviewed-on: https://go-review.googlesource.com/c/go/+/214298 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/crypto/x509/root_cgo_darwin.go b/src/crypto/x509/root_cgo_darwin.go index 255a8d3525..8a54282a6b 100644 --- a/src/crypto/x509/root_cgo_darwin.go +++ b/src/crypto/x509/root_cgo_darwin.go @@ -159,7 +159,7 @@ static Boolean isRootCertificate(SecCertificateRef cert, CFErrorRef *errRef) { // // Note: The CFDataRef returned in pemRoots and untrustedPemRoots must // be released (using CFRelease) after we've consumed its content. -int CopyPEMRoots(CFDataRef *pemRoots, CFDataRef *untrustedPemRoots, bool debugDarwinRoots) { +static int CopyPEMRoots(CFDataRef *pemRoots, CFDataRef *untrustedPemRoots, bool debugDarwinRoots) { int i; if (debugDarwinRoots) {