From 67a46444549127d31e83e0c29351e564e4b70b16 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Tue, 7 Feb 2012 17:13:01 +0100 Subject: [PATCH] Allow for all entries of an application to be removed. --- src/servers/keystore/Keyring.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/servers/keystore/Keyring.cpp b/src/servers/keystore/Keyring.cpp index ed227ab647..4f705785ce 100644 --- a/src/servers/keystore/Keyring.cpp +++ b/src/servers/keystore/Keyring.cpp @@ -177,6 +177,16 @@ Keyring::RemoveApplication(const char* signature, const char* path) if (!fAccessible) return B_NOT_ALLOWED; + if (path == NULL) { + // We want all of the entries for this signature removed. + status_t result = fApplications.RemoveName(signature); + if (result != B_OK) + return B_ENTRY_NOT_FOUND; + + fModified = true; + return B_OK; + } + int32 count; type_code type; if (fApplications.GetInfo(signature, &type, &count) != B_OK)