Return to tcg_pts_attr_simple_comp_evid.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / src / libimcv / tcg / pts |
1.1 misho 1: /* 2: * Copyright (C) 2011 Sansar Choinyambuu 3: * Copyright (C) 2014 Andreas Steffen 4: * HSR Hochschule fuer Technik Rapperswil 5: * 6: * This program is free software; you can redistribute it and/or modify it 7: * under the terms of the GNU General Public License as published by the 8: * Free Software Foundation; either version 2 of the License, or (at your 9: * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. 10: * 11: * This program is distributed in the hope that it will be useful, but 12: * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14: * for more details. 15: */ 16: 17: /** 18: * @defgroup tcg_pts_attr_simple_comp_evid tcg_pts_attr_simple_comp_evid 19: * @{ @ingroup tcg_attr 20: */ 21: 22: #ifndef TCG_PTS_ATTR_SIMPLE_COMP_EVID_H_ 23: #define TCG_PTS_ATTR_SIMPLE_COMP_EVID_H_ 24: 25: typedef struct tcg_pts_attr_simple_comp_evid_t tcg_pts_attr_simple_comp_evid_t; 26: 27: #include "tcg/tcg_attr.h" 28: #include "pts/components/pts_comp_evidence.h" 29: #include "pa_tnc/pa_tnc_attr.h" 30: 31: /** 32: * Class implementing the TCG PTS Simple Component Evidence attribute 33: * 34: */ 35: struct tcg_pts_attr_simple_comp_evid_t { 36: 37: /** 38: * Public PA-TNC attribute interface 39: */ 40: pa_tnc_attr_t pa_tnc_attribute; 41: 42: /** 43: * Get Component Evidence 44: * 45: * @return Component Evidence 46: */ 47: pts_comp_evidence_t* (*get_comp_evidence)(tcg_pts_attr_simple_comp_evid_t *this); 48: 49: }; 50: 51: /** 52: * Creates an tcg_pts_attr_simple_comp_evid_t object 53: * 54: * @param evid Component Evidence 55: */ 56: pa_tnc_attr_t* tcg_pts_attr_simple_comp_evid_create(pts_comp_evidence_t *evid); 57: 58: /** 59: * Creates an tcg_pts_attr_simple_comp_evid_t object from received data 60: * 61: * @param length Total length of attribute value 62: * @param value Unparsed attribute value (might be a segment) 63: */ 64: pa_tnc_attr_t* tcg_pts_attr_simple_comp_evid_create_from_data(size_t length, 65: chunk_t value); 66: 67: #endif /** TCG_PTS_ATTR_SIMPLE_COMP_EVID_H_ @}*/