diff 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
line wrap: on
line diff
--- a/common/selftest.h	Fri Nov 21 18:32:35 2014 +0100
+++ b/common/selftest.h	Fri Nov 21 18:33:31 2014 +0100
@@ -19,6 +19,7 @@
  */
 
 #include <stdbool.h>
+#include <time.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -28,9 +29,11 @@
  * Checks that the certificate is signed with a valid signature and the
  * builtin public certificate.
  *
+ * @param[out] sig_time point this to a time_t to get the signature timestamp
+ *
  * @returns true if the selftest is successful. false on error.
  */
-bool selftest();
+bool selftest(time_t *sig_time);
 
 #ifdef __cplusplus
 }

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