xref: /haiku/headers/private/app/KeyStoreDefs.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1 /*
2  * Copyright 2012, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Michael Lotz, mmlr@mlotz.ch
7  */
8 #ifndef _KEY_STORE_DEFS_H
9 #define _KEY_STORE_DEFS_H
10 
11 
12 namespace BPrivate {
13 
14 
15 const char* kKeyStoreServerSignature
16 	= "application/x-vnd.Haiku-keystore_server";
17 
18 
19 enum {
20 	// Replies
21 	KEY_STORE_SUCCESS						= 'KRok',
22 	KEY_STORE_ERROR							= 'KRer',
23 	KEY_STORE_RESULT						= 'KRrs',
24 
25 	// KeyStore requests
26 	KEY_STORE_GET_KEY						= 'KgtK',
27 	KEY_STORE_GET_NEXT_KEY					= 'KgnK',
28 	KEY_STORE_ADD_KEY						= 'KadK',
29 	KEY_STORE_REMOVE_KEY					= 'KrmK',
30 	KEY_STORE_ADD_KEYRING					= 'KaKR',
31 	KEY_STORE_REMOVE_KEYRING				= 'KrKR',
32 	KEY_STORE_GET_NEXT_KEYRING				= 'KnKR',
33 	KEY_STORE_SET_UNLOCK_KEY				= 'KsuK',
34 	KEY_STORE_REMOVE_UNLOCK_KEY				= 'KruK',
35 	KEY_STORE_ADD_KEYRING_TO_MASTER			= 'KarM',
36 	KEY_STORE_REMOVE_KEYRING_FROM_MASTER	= 'KrrM',
37 	KEY_STORE_GET_NEXT_MASTER_KEYRING		= 'KnrM',
38 	KEY_STORE_IS_KEYRING_UNLOCKED			= 'KuKR',
39 	KEY_STORE_LOCK_KEYRING					= 'KlKR',
40 	KEY_STORE_GET_NEXT_APPLICATION			= 'KnKA',
41 	KEY_STORE_REMOVE_APPLICATION			= 'KrKA',
42 };
43 
44 
45 }	// namespace BPrivate
46 
47 
48 #endif	// _KEY_STORE_DEFS_H
49