005a15bbcd
* The keystore backend will (at least for the time being) reside in a separate server. This one can be reached via normal messaging, so use a BMessenger for sending key messages. * Move the message constants from RegistrarDefs.h into a new KeyStoreDefs.h that also contains the server signature. * Update the message constants to reflect the new situation.
50 lines
1.2 KiB
C++
50 lines
1.2 KiB
C++
/*
|
|
* Copyright 2012, Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Michael Lotz, mmlr@mlotz.ch
|
|
*/
|
|
#ifndef _KEY_STORE_DEFS_H
|
|
#define _KEY_STORE_DEFS_H
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
|
|
const char* kKeyStoreServerSignature
|
|
= "application/x-vnd.Haiku-keystore_server";
|
|
|
|
|
|
enum {
|
|
// Replies
|
|
KEY_STORE_SUCCESS = 'KRok',
|
|
KEY_STORE_ERROR = 'KRer',
|
|
KEY_STORE_RESULT = 'KRrs',
|
|
|
|
// KeyStore requests
|
|
KEY_STORE_GET_KEY = 'KgtK',
|
|
KEY_STORE_GET_NEXT_KEY = 'KgnK',
|
|
KEY_STORE_ADD_KEY = 'KadK',
|
|
KEY_STORE_REMOVE_KEY = 'KrmK',
|
|
KEY_STORE_ADD_KEYRING = 'KaKR',
|
|
KEY_STORE_REMOVE_KEYRING = 'KrKR',
|
|
KEY_STORE_GET_NEXT_KEYRING = 'KnKR',
|
|
KEY_STORE_SET_MASTER_KEY = 'KsMK',
|
|
KEY_STORE_REMOVE_MASTER_KEY = 'KrMK',
|
|
KEY_STORE_ADD_KEYRING_TO_MASTER = 'KarM',
|
|
KEY_STORE_REMOVE_KEYRING_FROM_MASTER = 'KrrM',
|
|
KEY_STORE_GET_NEXT_MASTER_KEYRING = 'KnrM',
|
|
KEY_STORE_IS_KEYRING_ACCESSIBLE = 'KiaR',
|
|
KEY_STORE_REVOKE_ACCESS = 'KvaR',
|
|
KEY_STORE_REVOKE_MASTER_ACCESS = 'KvaM',
|
|
KEY_STORE_GET_NEXT_APPLICATION = 'KnKA',
|
|
KEY_STORE_REMOVE_APPLICATION = 'KrKA',
|
|
};
|
|
|
|
|
|
} // namespace BPrivate
|
|
|
|
|
|
#endif // _KEY_STORE_DEFS_H
|