--- embedaddon/strongswan/src/libimcv/pts/pts.h 2020/06/03 09:46:43 1.1.1.1 +++ embedaddon/strongswan/src/libimcv/pts/pts.h 2021/03/17 00:20:08 1.1.1.2 @@ -1,6 +1,6 @@ /* * Copyright (C) 2011 Sansar Choinyambuu - * Copyright (C) 2012-2016 Andreas Steffen + * Copyright (C) 2012-2020 Andreas Steffen * HSR Hochschule fuer Technik Rapperswil * * This program is free software; you can redistribute it and/or modify it @@ -32,9 +32,11 @@ typedef struct pts_t pts_t; #include "pts_dh_group.h" #include "pts_pcr.h" #include "pts_req_func_comp_evid.h" +#include "pts_symlinks.h" #include "components/pts_comp_func_name.h" #include +#include #include #include @@ -175,17 +177,47 @@ struct pts_t { void (*set_platform_id)(pts_t *this, int pid); /** + * Extract all directory symlinks contained in a directory + * + * @param pathname Absolute pathname of directory + * @return List of directory symlinks + */ + pts_symlinks_t* (*extract_symlinks)(pts_t *this, chunk_t pathname); + + /** + * Get list of directory symlinks received from IMC + * + * @return List of symbolic links + */ + pts_symlinks_t* (*get_symlinks)(pts_t *this); + + /** + * Set list of directory symlinks received from IMC + * + * @param symlinks List of symbolic links + */ + void (*set_symlinks)(pts_t *this, pts_symlinks_t *symlinks); + + + /** + * Get TPM object handle + * + * @return TPM object handle + */ + tpm_tss_t* (*get_tpm)(pts_t *this); + + /** * Get TPM 1.2 Version Info * - * @param info chunk containing a TPM_CAP_VERSION_INFO struct - * @return TRUE if TPM Version Info available + * @param info chunk containing a TPM_Version Info struct + * @return TRUE if TPM Version_Info available */ bool (*get_tpm_version_info)(pts_t *this, chunk_t *info); /** * Set TPM 1.2 Version Info * - * @param info chunk containing a TPM_CAP_VERSION_INFO struct + * @param info chunk containing a TPM Version Info struct */ void (*set_tpm_version_info)(pts_t *this, chunk_t info);