From 1042ac9a4aa848d85394a3256579f1ee11ec21fc Mon Sep 17 00:00:00 2001 From: Akos Birmacher Date: Fri, 11 Jan 2019 11:43:40 +0100 Subject: [PATCH] update osxkeychain to work with go 1.11 version. --- osxkeychain/osxkeychain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osxkeychain/osxkeychain.go b/osxkeychain/osxkeychain.go index f344e13f..f3ccd8b2 100644 --- a/osxkeychain/osxkeychain.go +++ b/osxkeychain/osxkeychain.go @@ -176,7 +176,7 @@ func FindAndValidateIdentity(identityLabel string) (*IdentityWithRefModel, error // you can use the ReleaseIdentityWithRefList method to do that func FindIdentity(identityLabel string) ([]IdentityWithRefModel, error) { - queryDict := C.CFDictionaryCreateMutable(nil, 0, nil, nil) + queryDict := C.CFDictionaryCreateMutable(C.kCFAllocatorDefault, 0, nil, nil) defer C.CFRelease(C.CFTypeRef(queryDict)) C.CFDictionaryAddValue(queryDict, unsafe.Pointer(C.kSecClass), unsafe.Pointer(C.kSecClassIdentity)) C.CFDictionaryAddValue(queryDict, unsafe.Pointer(C.kSecMatchLimit), unsafe.Pointer(C.kSecMatchLimitAll))