added pts_file_type_names
This commit is contained in:
@@ -421,9 +421,9 @@ bool imv_attestation_process(pa_tnc_attr_t *attr, linked_list_t *attr_list,
|
|||||||
while (e->enumerate(e, &entry))
|
while (e->enumerate(e, &entry))
|
||||||
{
|
{
|
||||||
DBG1(DBG_IMV, " '%s' (%"PRIu64" bytes)"
|
DBG1(DBG_IMV, " '%s' (%"PRIu64" bytes)"
|
||||||
" owner %"PRIu64", group %"PRIu64", type %d",
|
" owner %"PRIu64", group %"PRIu64", type %N",
|
||||||
entry->filename, entry->filesize, entry->owner,
|
entry->filename, entry->filesize, entry->owner,
|
||||||
entry->group, entry->type);
|
entry->group, pts_file_type_names, entry->type);
|
||||||
|
|
||||||
created = entry->created;
|
created = entry->created;
|
||||||
modified = entry->modified;
|
modified = entry->modified;
|
||||||
|
|||||||
@@ -9,13 +9,14 @@ libpts_la_SOURCES = \
|
|||||||
libpts.h libpts.c \
|
libpts.h libpts.c \
|
||||||
pts/pts.h pts/pts.c \
|
pts/pts.h pts/pts.c \
|
||||||
pts/pts_error.h pts/pts_error.c \
|
pts/pts_error.h pts/pts_error.c \
|
||||||
pts/pts_proto_caps.h pts/pts_funct_comp_name.h pts/pts_file_type.h \
|
pts/pts_proto_caps.h pts/pts_funct_comp_name.h \
|
||||||
pts/pts_creds.h pts/pts_creds.c \
|
pts/pts_creds.h pts/pts_creds.c \
|
||||||
pts/pts_database.h pts/pts_database.c \
|
pts/pts_database.h pts/pts_database.c \
|
||||||
|
pts/pts_dh_group.h pts/pts_dh_group.c \
|
||||||
pts/pts_file_meas.h pts/pts_file_meas.c \
|
pts/pts_file_meas.h pts/pts_file_meas.c \
|
||||||
pts/pts_file_meta.h pts/pts_file_meta.c \
|
pts/pts_file_meta.h pts/pts_file_meta.c \
|
||||||
|
pts/pts_file_type.h pts/pts_file_type.c \
|
||||||
pts/pts_meas_algo.h pts/pts_meas_algo.c \
|
pts/pts_meas_algo.h pts/pts_meas_algo.c \
|
||||||
pts/pts_dh_group.h pts/pts_dh_group.c \
|
|
||||||
tcg/tcg_attr.h tcg/tcg_attr.c \
|
tcg/tcg_attr.h tcg/tcg_attr.c \
|
||||||
tcg/tcg_pts_attr_proto_caps.h tcg/tcg_pts_attr_proto_caps.c \
|
tcg/tcg_pts_attr_proto_caps.h tcg/tcg_pts_attr_proto_caps.c \
|
||||||
tcg/tcg_pts_attr_dh_nonce_params_req.h tcg/tcg_pts_attr_dh_nonce_params_req.c \
|
tcg/tcg_pts_attr_dh_nonce_params_req.h tcg/tcg_pts_attr_dh_nonce_params_req.c \
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
#ifndef PTS_FILE_TYPE_H_
|
#ifndef PTS_FILE_TYPE_H_
|
||||||
#define PTS_FILE_TYPE_H_
|
#define PTS_FILE_TYPE_H_
|
||||||
|
|
||||||
|
#include <library.h>
|
||||||
|
|
||||||
typedef enum pts_file_type_t pts_file_type_t;
|
typedef enum pts_file_type_t pts_file_type_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -34,16 +36,28 @@ enum pts_file_type_t {
|
|||||||
PTS_FILE_FIFO = 0x0001,
|
PTS_FILE_FIFO = 0x0001,
|
||||||
/** Character special file */
|
/** Character special file */
|
||||||
PTS_FILE_CHAR_SPEC = 0x0002,
|
PTS_FILE_CHAR_SPEC = 0x0002,
|
||||||
|
/** Reserved */
|
||||||
|
PTS_FILE_RESERVED_3 = 0x0003,
|
||||||
/** Directory */
|
/** Directory */
|
||||||
PTS_FILE_DIRECTORY = 0x0004,
|
PTS_FILE_DIRECTORY = 0x0004,
|
||||||
|
/** Reserved */
|
||||||
|
PTS_FILE_RESERVED_5 = 0x0005,
|
||||||
/** Block special file */
|
/** Block special file */
|
||||||
PTS_FILE_BLOCK_SPEC = 0x0006,
|
PTS_FILE_BLOCK_SPEC = 0x0006,
|
||||||
|
/** Reserved */
|
||||||
|
PTS_FILE_RESERVED_7 = 0x0007,
|
||||||
/** Regular file */
|
/** Regular file */
|
||||||
PTS_FILE_REGULAR = 0x0008,
|
PTS_FILE_REGULAR = 0x0008,
|
||||||
|
/** Reserved */
|
||||||
|
PTS_FILE_RESERVED_9 = 0x0009,
|
||||||
/** Symbolic link */
|
/** Symbolic link */
|
||||||
PTS_FILE_SYM_LINK = 0x000A,
|
PTS_FILE_SYM_LINK = 0x000A,
|
||||||
|
/** Reserved */
|
||||||
|
PTS_FILE_RESERVED_11 = 0x000B,
|
||||||
/** Socket communication special file */
|
/** Socket communication special file */
|
||||||
PTS_FILE_SOCKET = 0x000C,
|
PTS_FILE_SOCKET = 0x000C,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extern enum_name_t *pts_file_type_names;
|
||||||
|
|
||||||
#endif /** PTS_FILE_TYPE_H_ @}*/
|
#endif /** PTS_FILE_TYPE_H_ @}*/
|
||||||
|
|||||||
Reference in New Issue
Block a user