1
0
mirror of https://github.com/golang/go synced 2024-09-30 00:14:36 -06:00

modify C.CopyPEMRoots to static

This commit is contained in:
bxq2011hust 2020-01-10 14:40:18 +08:00
parent 56d6b87972
commit 6a07f25056

View File

@ -159,7 +159,7 @@ static Boolean isRootCertificate(SecCertificateRef cert, CFErrorRef *errRef) {
// //
// Note: The CFDataRef returned in pemRoots and untrustedPemRoots must // Note: The CFDataRef returned in pemRoots and untrustedPemRoots must
// be released (using CFRelease) after we've consumed its content. // 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; int i;
if (debugDarwinRoots) { if (debugDarwinRoots) {