package macOS

Import Path
	crypto/x509/internal/macos (on go.dev)

Dependency Relation
	imports 5 packages, and imported by one package

Involved Source Files Package macOS provides cgo-less wrappers for Core Foundation and Security.framework, similarly to how package syscall provides access to libSystem.dylib. security.go corefoundation.s security.s
Package-Level Type Names (total 5, all are exported)
/* sort exporteds by: | */
CFRef is an opaque reference to a Core Foundation object. It is a pointer, but to memory not owned by Go, so not an unsafe.Pointer. func CFArrayGetValueAtIndex(array CFRef, index int) CFRef func CFDictionaryGetValueIfPresent(dict CFRef, key CFString) (value CFRef, ok bool) func SecItemExport(cert CFRef) (data CFRef, err error) func SecPolicyCopyProperties(policy CFRef) CFRef func SecTrustSettingsCopyCertificates(domain SecTrustSettingsDomain) (certArray CFRef, err error) func SecTrustSettingsCopyTrustSettings(cert CFRef, domain SecTrustSettingsDomain) (trustSettings CFRef, err error) func CFArrayGetCount(array CFRef) int func CFArrayGetValueAtIndex(array CFRef, index int) CFRef func CFDataGetBytePtr(data CFRef) uintptr func CFDataGetLength(data CFRef) int func CFDataToSlice(data CFRef) []byte func CFDictionaryGetValueIfPresent(dict CFRef, key CFString) (value CFRef, ok bool) func CFEqual(a, b CFRef) bool func CFNumberGetValue(num CFRef) (int32, error) func CFRelease(ref CFRef) func SecItemExport(cert CFRef) (data CFRef, err error) func SecPolicyCopyProperties(policy CFRef) CFRef func SecTrustSettingsCopyTrustSettings(cert CFRef, domain SecTrustSettingsDomain) (trustSettings CFRef, err error)
func StringToCFString(s string) CFString func CFDictionaryGetValueIfPresent(dict CFRef, key CFString) (value CFRef, ok bool) var SecPolicyAppleSSL var SecPolicyOid var SecTrustSettingsPolicy var SecTrustSettingsPolicyString var SecTrustSettingsResultKey
( T) Error() string T : error
func SecTrustSettingsCopyCertificates(domain SecTrustSettingsDomain) (certArray CFRef, err error) func SecTrustSettingsCopyTrustSettings(cert CFRef, domain SecTrustSettingsDomain) (trustSettings CFRef, err error) const SecTrustSettingsDomainAdmin const SecTrustSettingsDomainSystem const SecTrustSettingsDomainUser
const SecTrustSettingsResultDeny const SecTrustSettingsResultInvalid const SecTrustSettingsResultTrustAsRoot const SecTrustSettingsResultTrustRoot const SecTrustSettingsResultUnspecified
Package-Level Functions (total 29, in which 14 are exported)
CFDataToSlice returns a copy of the contents of data as a bytes slice.
func CFEqual(a, b CFRef) bool
func CFRelease(ref CFRef)
func SecItemExport(cert CFRef) (data CFRef, err error)
StringToCFString returns a copy of the UTF-8 contents of s as a new CFString.
Package-Level Variables (total 6, all are exported)
var SecPolicyAppleSSL CFString // defined by POLICYMACRO