osxkeychain

package
v0.0.0-...-df4f2e6 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2017 License: MIT Imports: 10 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, outputFilePath string, isAskForPassword bool) 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 ...

func ReleaseRefList

func ReleaseRefList(refItems []C.CFTypeRef)

ReleaseRefList ...

Types

type IdentityWithRefModel

type IdentityWithRefModel struct {
	KeychainRef C.CFTypeRef
	Label       string
}

IdentityWithRefModel ...

func FindAndValidateIdentity

func FindAndValidateIdentity(identityLabel string, isFullLabelMatch bool) ([]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, isFullLabelMatch bool) ([]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