1 /*
2  * Copyright (c) 2010-2012 United States Government, as represented by
3  * the Secretary of Defense.  All rights reserved.
4  *
5  * THIS SOFTWARE AND ITS DOCUMENTATION ARE PROVIDED AS IS AND WITHOUT
6  * ANY EXPRESS OR IMPLIED WARRANTIES WHATSOEVER. ALL WARRANTIES
7  * INCLUDING, BUT NOT LIMITED TO, PERFORMANCE, MERCHANTABILITY, FITNESS
8  * FOR A PARTICULAR  PURPOSE, AND NONINFRINGEMENT ARE HEREBY
9  * DISCLAIMED. USERS ASSUME THE ENTIRE RISK AND LIABILITY OF USING THE
10  * SOFTWARE.
11  */
12 
13 #ifndef VTPM_H
14 #define VTPM_H
15 
16 #include <stdbool.h>
17 
18 /* For testing */
19 #define VERS_CMD "\x00\xC1\x00\x00\x00\x16\x00\x00\x00\x65\x00\x00\x00\x05\x00\x00\x00\x04\x00\x00\x01\x03"
20 #define VERS_CMD_LEN 22
21 
22 /* Global commandline options */
23 struct Opt_args {
24    enum StartUp {
25       ST_CLEAR = 1,
26       ST_SAVE = 2,
27       ST_DEACTIVATED = 3
28    } startup;
29    unsigned long hwinitpcrs;
30    int loglevel;
31    uint32_t tpmconf;
32    bool enable_maint_cmds;
33 };
34 extern struct Opt_args opt_args;
35 
36 #endif
37