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