2012-01-04 16:53:39 +04:00
|
|
|
/*
|
|
|
|
* 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',
|
2012-06-25 22:31:27 +04:00
|
|
|
KEY_STORE_SET_UNLOCK_KEY = 'KsuK',
|
|
|
|
KEY_STORE_REMOVE_UNLOCK_KEY = 'KruK',
|
2012-01-04 16:53:39 +04:00
|
|
|
KEY_STORE_ADD_KEYRING_TO_MASTER = 'KarM',
|
|
|
|
KEY_STORE_REMOVE_KEYRING_FROM_MASTER = 'KrrM',
|
|
|
|
KEY_STORE_GET_NEXT_MASTER_KEYRING = 'KnrM',
|
2012-06-24 16:37:27 +04:00
|
|
|
KEY_STORE_IS_KEYRING_UNLOCKED = 'KuKR',
|
|
|
|
KEY_STORE_LOCK_KEYRING = 'KlKR',
|
2012-01-04 16:53:39 +04:00
|
|
|
KEY_STORE_GET_NEXT_APPLICATION = 'KnKA',
|
|
|
|
KEY_STORE_REMOVE_APPLICATION = 'KrKA',
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace BPrivate
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _KEY_STORE_DEFS_H
|