comparison common/binverify.h @ 1364:28885e8c891f

(issue177) Read signature time from PKCS#7 object in selftest and binverify
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 21 Nov 2014 18:33:31 +0100
parents 2a1aa9df8f11
children
comparison
equal deleted inserted replaced
1363:3d6faded03dd 1364:28885e8c891f
12 * @brief Verification of binary files 12 * @brief Verification of binary files
13 */ 13 */
14 #include <stdbool.h> 14 #include <stdbool.h>
15 #include <stddef.h> 15 #include <stddef.h>
16 #include <stdio.h> 16 #include <stdio.h>
17 #include <time.h>
17 18
18 #ifdef __cplusplus 19 #ifdef __cplusplus
19 extern "C" { 20 extern "C" {
20 #endif 21 #endif
21 22
45 /*@{*/ 46 /*@{*/
46 verify_result result; /**< the result of the verification */ 47 verify_result result; /**< the result of the verification */
47 FILE *fptr; /**< Pointer to the open file struct of the verified file 48 FILE *fptr; /**< Pointer to the open file struct of the verified file
48 The ptr is only valid if verify_result is VerifyValid 49 The ptr is only valid if verify_result is VerifyValid
49 and needs to be closed by the caller in that case.*/ 50 and needs to be closed by the caller in that case.*/
51 time_t sig_time; /** < Time of the signature. */
50 /*@}*/ 52 /*@}*/
51 } bin_verify_result; 53 } bin_verify_result;
52 54
53 /** 55 /**
54 * @brief verify a binary 56 * @brief verify a binary

http://wald.intevation.org/projects/trustbridge/