moved TSS into pts object
[strongswan.git] / src / libimcv / tcg / pts / pts.h
1 /*
2 * Copyright (C) 2011 Sansar Choinyambuu
3 * HSR Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 */
15
16 /**
17 * @defgroup pts pts
18 * @{ @ingroup pts
19 */
20
21 #ifndef PTS_H_
22 #define PTS_H_
23
24 typedef struct pts_t pts_t;
25
26 #include <library.h>
27
28 /**
29 * Class implementing the TCG Platform Trust System (PTS)
30 *
31 */
32 struct pts_t {
33
34 /**
35 * get TPM 1.2 Version Info
36 *
37 * @param info chunk containing a TPM_CAP_VERSION_INFO struct
38 * @return TRUE if TPM Version Info available
39 */
40 bool (*get_tpm_version_info)(pts_t *this, chunk_t *info);
41
42 /**
43 * set TPM 1.2 Version Info
44 *
45 * @param info chunk containing a TPM_CAP_VERSION_INFO struct
46 */
47 void (*set_tpm_version_info)(pts_t *this, chunk_t info);
48
49 /**
50 * Destroys a pts_t object.
51 */
52 void (*destroy)(pts_t *this);
53
54 };
55
56 /**
57 * Creates an pts_t object
58 */
59 pts_t* pts_create(void);
60
61 #endif /** PTS_H_ @}*/