func RemoveKey()

in macos/wrapper.go [209:226]


func RemoveKey(label, tag string, hash []byte) (bool, error) {
	cl, ct := C.CString(label), C.CString(tag)
	var ch unsafe.Pointer
	if len(hash) != 0 {
		ch = C.CBytes(hash)
		defer C.free(unsafe.Pointer(ch))
	}
	w := C.wrapDeleteKey(cl, ct, ch)
	C.free(unsafe.Pointer(cl))
	C.free(unsafe.Pointer(ct))

	_, err := unwrap(w)
	if err != nil {
		return false, err
	}

	return true, nil
}