Skip to content

Commit e4bebc5

Browse files
update osxkeychain to work with go 1.11 version. (#93)
1 parent 05b5a30 commit e4bebc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osxkeychain/osxkeychain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func FindAndValidateIdentity(identityLabel string) (*IdentityWithRefModel, error
176176
// you can use the ReleaseIdentityWithRefList method to do that
177177
func FindIdentity(identityLabel string) ([]IdentityWithRefModel, error) {
178178

179-
queryDict := C.CFDictionaryCreateMutable(nil, 0, nil, nil)
179+
queryDict := C.CFDictionaryCreateMutable(C.kCFAllocatorDefault, 0, nil, nil)
180180
defer C.CFRelease(C.CFTypeRef(queryDict))
181181
C.CFDictionaryAddValue(queryDict, unsafe.Pointer(C.kSecClass), unsafe.Pointer(C.kSecClassIdentity))
182182
C.CFDictionaryAddValue(queryDict, unsafe.Pointer(C.kSecMatchLimit), unsafe.Pointer(C.kSecMatchLimitAll))

0 commit comments

Comments
 (0)