osxkeychain

package
v0.0.0-...-f6d6d29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEmptyCFTypeRefSlice

func CreateEmptyCFTypeRefSlice() []C.CFTypeRef

CreateEmptyCFTypeRefSlice ...

func ExportFromKeychain

func ExportFromKeychain(itemRefsToExport []C.CFTypeRef, isAskForPassword bool) ([]byte, error)

ExportFromKeychain ...

func GetCertificateDataFromIdentityRef

func GetCertificateDataFromIdentityRef(identityRef C.CFTypeRef) (*x509.Certificate, error)

GetCertificateDataFromIdentityRef ...

func ReleaseIdentityWithRefList

func ReleaseIdentityWithRefList(refItems []IdentityWithRefModel)

ReleaseIdentityWithRefList ...

func ReleaseRef

func ReleaseRef(refItem C.CFTypeRef)

ReleaseRef ...

Types

type IdentityWithRefModel

type IdentityWithRefModel struct {
	KeychainRef C.CFTypeRef
	Label       string
}

IdentityWithRefModel ...

func FindAndValidateIdentity

func FindAndValidateIdentity(identityLabel string) (*IdentityWithRefModel, error)

FindAndValidateIdentity ...

IMPORTANT: you have to C.CFRelease the returned items (one-by-one)!!
           you can use the ReleaseIdentityWithRefList method to do that

func FindIdentity

func FindIdentity(identityLabel string) ([]IdentityWithRefModel, error)

FindIdentity ...

IMPORTANT: you have to C.CFRelease the returned items (one-by-one)!!
           you can use the ReleaseIdentityWithRefList method to do that

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL