Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + const ErrSecCertificateExpired — darwin/amd64 + const ErrSecHostNameMismatch — darwin/amd64 + const ErrSecNotTrusted — darwin/amd64 + var ErrNoTrustSettings = errors.New("no trust settings found") — darwin/amd64 + var SecPolicyAppleSSL = StringToCFString("1.2.840.113635.100.1.3") — darwin/amd64 + var SecPolicyOid = StringToCFString("SecPolicyOid") — darwin/amd64 + var SecTrustSettingsPolicy = StringToCFString("kSecTrustSettingsPolicy") — darwin/amd64 + var SecTrustSettingsPolicyString = StringToCFString("kSecTrustSettingsPolicyString") — darwin/amd64 + var SecTrustSettingsResultKey = StringToCFString("kSecTrustSettingsResult") — darwin/amd64 + func CFArrayAppendValue(array CFRef, val CFRef) — darwin/amd64 + func CFArrayGetCount(array CFRef) int — darwin/amd64 + func CFDataGetBytePtr(data CFRef) uintptr — darwin/amd64 + func CFDataGetLength(data CFRef) int — darwin/amd64 + func CFDataToSlice(data CFRef) []byte — darwin/amd64 + func CFEqual(a, b CFRef) bool — darwin/amd64 + func CFErrorGetCode(errRef CFRef) int — darwin/amd64 + func CFNumberGetValue(num CFRef) (int32, error) — darwin/amd64 + func CFRelease(ref CFRef) — darwin/amd64 + func CFStringToString(ref CFRef) string — darwin/amd64 + func ReleaseCFArray(array CFRef) — darwin/amd64 + func SecCertificateCopyData(cert CFRef) ([]byte, error) — darwin/amd64 + func SecTrustEvaluateWithError(trustObj CFRef) (int, error) — darwin/amd64 + func SecTrustGetCertificateCount(trustObj CFRef) int — darwin/amd64 + func SecTrustGetResult(trustObj CFRef, result CFRef) (CFRef, CFRef, error) — darwin/amd64 + func SecTrustSetVerifyDate(trustObj CFRef, dateRef CFRef) error — darwin/amd64 + type CFRef uintptr — darwin/amd64 + func BytesToCFData(b []byte) CFRef + func CFArrayCreateMutable() CFRef + func CFArrayGetValueAtIndex(array CFRef, index int) CFRef + func CFDateCreate(seconds float64) CFRef + func CFDictionaryGetValueIfPresent(dict CFRef, key CFString) (value CFRef, ok bool) + func CFErrorCopyDescription(errRef CFRef) CFRef + func CFStringCreateExternalRepresentation(strRef CFRef) CFRef + func SecCertificateCreateWithData(b []byte) CFRef + func SecPolicyCopyProperties(policy CFRef) CFRef + func SecPolicyCreateSSL(name string) CFRef + func SecTrustCreateWithCertificates(certs CFRef, policies CFRef) (CFRef, error) + func SecTrustEvaluate(trustObj CFRef) (CFRef, error) + func SecTrustGetCertificateAtIndex(trustObj CFRef, i int) CFRef + func SecTrustSettingsCopyCertificates(domain SecTrustSettingsDomain) (certArray CFRef, err error) + func SecTrustSettingsCopyTrustSettings(cert CFRef, domain SecTrustSettingsDomain) (trustSettings CFRef, err error) + func TimeToCFDateRef(t time.Time) CFRef + type CFString CFRef — darwin/amd64 + func StringToCFString(s string) CFString + type OSStatus struct — darwin/amd64 + func (s OSStatus) Error() string + type SecTrustResultType int32 — darwin/amd64 + const SecTrustResultConfirm + const SecTrustResultDeny + const SecTrustResultFatalTrustFailure + const SecTrustResultInvalid + const SecTrustResultOtherError + const SecTrustResultProceed + const SecTrustResultRecoverableTrustFailure + const SecTrustResultUnspecified + type SecTrustSettingsDomain int32 — darwin/amd64 + const SecTrustSettingsDomainAdmin + const SecTrustSettingsDomainSystem + const SecTrustSettingsDomainUser + type SecTrustSettingsResult int32 — darwin/amd64 + const SecTrustSettingsResultDeny + const SecTrustSettingsResultInvalid + const SecTrustSettingsResultTrustAsRoot + const SecTrustSettingsResultTrustRoot + const SecTrustSettingsResultUnspecified