2 * Copyright (C) 2011 Sansar Choinyambuu
3 * Copyright (C) 2014 Andreas Steffen
5 * Copyright (C) secunet Security Networks AG
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 * @defgroup tcg_pts_attr_req_file_meta tcg_pts_attr_req_file_meta
20 * @{ @ingroup tcg_attr
23 #ifndef TCG_PTS_ATTR_REQ_FILE_META_H_
24 #define TCG_PTS_ATTR_REQ_FILE_META_H_
26 typedef struct tcg_pts_attr_req_file_meta_t tcg_pts_attr_req_file_meta_t
;
28 #include "tcg/tcg_attr.h"
29 #include "pa_tnc/pa_tnc_attr.h"
32 * Class implementing the TCG PTS Request File Metadata attribute
35 struct tcg_pts_attr_req_file_meta_t
{
38 * Public PA-TNC attribute interface
40 pa_tnc_attr_t pa_tnc_attribute
;
43 * Get directory flag for PTS Request File Metadata
45 * @return Directory Contents flag
47 bool (*get_directory_flag
)(tcg_pts_attr_req_file_meta_t
*this);
52 * @return UTF-8 encoding of a Delimiter Character
54 uint8_t (*get_delimiter
)(tcg_pts_attr_req_file_meta_t
*this);
57 * Get Fully Qualified File Pathname
61 char* (*get_pathname
)(tcg_pts_attr_req_file_meta_t
*this);
66 * Creates an tcg_pts_attr_req_file_meta_t object
68 * @param directory_flag Directory Contents Flag
69 * @param delimiter Delimiter Character
70 * @param pathname File Pathname
72 pa_tnc_attr_t
* tcg_pts_attr_req_file_meta_create(bool directory_flag
,
77 * Creates an tcg_pts_attr_req_file_meta_t object from received data
79 * @param length Total length of attribute value
80 * @param value Unparsed attribute value (might be a segment)
82 pa_tnc_attr_t
* tcg_pts_attr_req_file_meta_create_from_data(size_t length
,
85 #endif /** TCG_PTS_ATTR_REQ_FILE_META_H_ @}*/