mirror of
https://github.com/ProtonMail/go-keychain.git
synced 2026-01-11 19:58:20 +00:00
Remove deprecated function call (#99)
This commit is contained in:
parent
4f19d685f1
commit
45f7288cfc
2 changed files with 1 additions and 7 deletions
6
macos.go
6
macos.go
|
|
@ -23,9 +23,3 @@ var accessibleTypeRef = map[Accessible]C.CFTypeRef{
|
|||
// Only available in 10.10
|
||||
//AccessibleWhenPasscodeSetThisDeviceOnly: C.CFTypeRef(C.kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly),
|
||||
}
|
||||
|
||||
// DeleteItemRef deletes a keychain item reference.
|
||||
func DeleteItemRef(ref C.CFTypeRef) error {
|
||||
errCode := C.SecKeychainItemDelete(C.SecKeychainItemRef(ref))
|
||||
return checkError(errCode)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ func TestGenericPasswordRef(t *testing.T) {
|
|||
} else if ref == 0 {
|
||||
t.Fatal("Missing result")
|
||||
} else {
|
||||
err = DeleteItemRef(ref)
|
||||
err = DeleteItem(item)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue