comparison common/selftest.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 78798d3af8f0
children
comparison
equal deleted inserted replaced
1363:3d6faded03dd 1364:28885e8c891f
17 * by targeted manipulation of the binary can, of course, not 17 * by targeted manipulation of the binary can, of course, not
18 * be detected. 18 * be detected.
19 */ 19 */
20 20
21 #include <stdbool.h> 21 #include <stdbool.h>
22 #include <time.h>
22 23
23 #ifdef __cplusplus 24 #ifdef __cplusplus
24 extern "C" { 25 extern "C" {
25 #endif 26 #endif
26 /** @brief check that the current process is signed by the correct certificate 27 /** @brief check that the current process is signed by the correct certificate
27 * 28 *
28 * Checks that the certificate is signed with a valid signature and the 29 * Checks that the certificate is signed with a valid signature and the
29 * builtin public certificate. 30 * builtin public certificate.
30 * 31 *
32 * @param[out] sig_time point this to a time_t to get the signature timestamp
33 *
31 * @returns true if the selftest is successful. false on error. 34 * @returns true if the selftest is successful. false on error.
32 */ 35 */
33 bool selftest(); 36 bool selftest(time_t *sig_time);
34 37
35 #ifdef __cplusplus 38 #ifdef __cplusplus
36 } 39 }
37 #endif 40 #endif
38 #endif // COMMON_SELFTEST_H 41 #endif // COMMON_SELFTEST_H

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