1
0
mirror of https://github.com/golang/go synced 2024-11-25 09:07:58 -07:00

crypto/x509: fix signature for macOS.SecTrustEvaluate

This commit is contained in:
Aman Karmani 2022-04-05 11:24:47 -07:00
parent 9e16cc1541
commit d8208a81c1

View File

@ -171,13 +171,13 @@ func x509_SecTrustSetVerifyDate_trampoline()
//go:cgo_import_dynamic x509_SecTrustEvaluate SecTrustEvaluate "/System/Library/Frameworks/Security.framework/Versions/A/Security"
func SecTrustEvaluate(trustObj CFRef) (CFRef, error) {
var result CFRef
func SecTrustEvaluate(trustObj CFRef) (SecTrustResultType, error) {
var result SecTrustResultType = SecTrustResultInvalid
ret := syscall(abi.FuncPCABI0(x509_SecTrustEvaluate_trampoline), uintptr(trustObj), uintptr(unsafe.Pointer(&result)), 0, 0, 0, 0)
if int32(ret) != 0 {
return 0, OSStatus{"SecTrustEvaluate", int32(ret)}
}
return CFRef(result), nil
return result, nil
}
func x509_SecTrustEvaluate_trampoline()