Add keyring specific versions of the *Application() methods.
This commit is contained in:
committed by
Ryan Leavengood
parent
51ab46a83c
commit
64ca113fe0
@@ -81,8 +81,13 @@ public:
|
|||||||
|
|
||||||
status_t GetNextApplication(const BKey& key,
|
status_t GetNextApplication(const BKey& key,
|
||||||
uint32& cookie, BString& signature) const;
|
uint32& cookie, BString& signature) const;
|
||||||
|
status_t GetNextApplication(const char* keyring,
|
||||||
|
const BKey& key, uint32& cookie,
|
||||||
|
BString& signature) const;
|
||||||
status_t RemoveApplication(const BKey& key,
|
status_t RemoveApplication(const BKey& key,
|
||||||
const char* signature);
|
const char* signature);
|
||||||
|
status_t RemoveApplication(const char* keyring,
|
||||||
|
const BKey& key, const char* signature);
|
||||||
|
|
||||||
// Service functions
|
// Service functions
|
||||||
|
|
||||||
|
|||||||
@@ -335,12 +335,21 @@ BKeyStore::RevokeMasterAccess()
|
|||||||
status_t
|
status_t
|
||||||
BKeyStore::GetNextApplication(const BKey& key, uint32& cookie,
|
BKeyStore::GetNextApplication(const BKey& key, uint32& cookie,
|
||||||
BString& signature) const
|
BString& signature) const
|
||||||
|
{
|
||||||
|
return GetNextApplication(NULL, key, cookie, signature);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
status_t
|
||||||
|
BKeyStore::GetNextApplication(const char* keyring, const BKey& key,
|
||||||
|
uint32& cookie, BString& signature) const
|
||||||
{
|
{
|
||||||
BMessage keyMessage;
|
BMessage keyMessage;
|
||||||
if (key.Flatten(keyMessage) != B_OK)
|
if (key.Flatten(keyMessage) != B_OK)
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
BMessage message(KEY_STORE_GET_NEXT_APPLICATION);
|
BMessage message(KEY_STORE_GET_NEXT_APPLICATION);
|
||||||
|
message.AddString("keyring", keyring);
|
||||||
message.AddMessage("key", &keyMessage);
|
message.AddMessage("key", &keyMessage);
|
||||||
message.AddUInt32("cookie", cookie);
|
message.AddUInt32("cookie", cookie);
|
||||||
|
|
||||||
@@ -359,12 +368,21 @@ BKeyStore::GetNextApplication(const BKey& key, uint32& cookie,
|
|||||||
|
|
||||||
status_t
|
status_t
|
||||||
BKeyStore::RemoveApplication(const BKey& key, const char* signature)
|
BKeyStore::RemoveApplication(const BKey& key, const char* signature)
|
||||||
|
{
|
||||||
|
return RemoveApplication(NULL, key, signature);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
status_t
|
||||||
|
BKeyStore::RemoveApplication(const char* keyring, const BKey& key,
|
||||||
|
const char* signature)
|
||||||
{
|
{
|
||||||
BMessage keyMessage;
|
BMessage keyMessage;
|
||||||
if (key.Flatten(keyMessage) != B_OK)
|
if (key.Flatten(keyMessage) != B_OK)
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
BMessage message(KEY_STORE_REMOVE_APPLICATION);
|
BMessage message(KEY_STORE_REMOVE_APPLICATION);
|
||||||
|
message.AddString("keyring", keyring);
|
||||||
message.AddMessage("key", &keyMessage);
|
message.AddMessage("key", &keyMessage);
|
||||||
message.AddString("signature", signature);
|
message.AddString("signature", signature);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user