1af101e7fSchristos /*
2af101e7fSchristos  * The Initial Developer of the Original Code is International
3af101e7fSchristos  * Business Machines Corporation. Portions created by IBM
4af101e7fSchristos  * Corporation are Copyright (C) 2005 International Business
5af101e7fSchristos  * Machines Corporation. All Rights Reserved.
6af101e7fSchristos  *
7af101e7fSchristos  * This program is free software; you can redistribute it and/or modify
8af101e7fSchristos  * it under the terms of the Common Public License as published by
9af101e7fSchristos  * IBM Corporation; either version 1 of the License, or (at your option)
10af101e7fSchristos  * any later version.
11af101e7fSchristos  *
12af101e7fSchristos  * This program is distributed in the hope that it will be useful,
13af101e7fSchristos  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14af101e7fSchristos  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15af101e7fSchristos  * Common Public License for more details.
16af101e7fSchristos  *
17af101e7fSchristos  * You should have received a copy of the Common Public License
18af101e7fSchristos  * along with this program; if not, a copy can be viewed at
19af101e7fSchristos  * http://www.opensource.org/licenses/cpl1.0.php.
20af101e7fSchristos  */
21af101e7fSchristos 
22af101e7fSchristos #ifndef __DATA_COMMON_H
23af101e7fSchristos #define __DATA_COMMON_H
24af101e7fSchristos 
25af101e7fSchristos #define TOKEN_OBJECT_KEY		"key"
26af101e7fSchristos #define TOKEN_OBJECT_CERT		"cert"
27af101e7fSchristos 
28af101e7fSchristos #define TOKEN_SO_INIT_PIN		"87654321"
29af101e7fSchristos #define TOKEN_SO_PIN_PROMPT		_("Enter the TPM security officer password: ")
30af101e7fSchristos #define TOKEN_SO_NEW_PIN_PROMPT		_("A new TPM security officer password is needed. " \
31af101e7fSchristos 					"The password must be between %d and %d characters " \
32af101e7fSchristos 					"in length.\n" \
33af101e7fSchristos 					"Enter new password: ")
34af101e7fSchristos 
35af101e7fSchristos #define TOKEN_USER_INIT_PIN		"12345678"
36af101e7fSchristos #define TOKEN_USER_PIN_PROMPT		_("Enter your TPM user password: ")
37af101e7fSchristos #define TOKEN_USER_NEW_PIN_PROMPT	_("A new TPM user password is needed. " \
38af101e7fSchristos 					"The password must be between %d and %d characters " \
39af101e7fSchristos 					"in length.\n" \
40af101e7fSchristos 					"Enter new password: ")
41af101e7fSchristos 
42af101e7fSchristos #define TOKEN_INVALID_PIN		_("The password entered is not valid, please try again.\n")
43af101e7fSchristos 
44af101e7fSchristos #define TOKEN_PROTECT_KEY_LABEL		"User Data Protection Key"
45af101e7fSchristos 
46af101e7fSchristos #define TOKEN_NOT_INIT_ERROR		_("Error, the TPM token has not been initialized\n")
47af101e7fSchristos #define TOKEN_MEMORY_ERROR		_("Error, unable to allocate needed memory\n")
48af101e7fSchristos #define TOKEN_OPENSSL_ERROR		_("Error, OpenSSL error: %s\n")
49af101e7fSchristos #define TOKEN_FILE_OPEN_ERROR		_("Error, unable to open file %s: %s\n")
50*739b7041Schristos #define TOKEN_FILE_WRITE_ERROR		_("Error writing to file %s: %s\n")
51af101e7fSchristos 
52af101e7fSchristos #define TOKEN_CMD_SUCCESS		_("%s succeeded\n")
53af101e7fSchristos #define TOKEN_CMD_FAILED		_("%s failed\n")
54af101e7fSchristos 
55af101e7fSchristos #endif
56