diff common/logging.h @ 623:5042ace08cba

Add certificate specific logging functions
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 20 Jun 2014 12:17:32 +0200
parents 2a4f7364ab81
children 2303caf56dbb
line wrap: on
line diff
--- a/common/logging.h	Fri Jun 20 09:56:10 2014 +0200
+++ b/common/logging.h	Fri Jun 20 12:17:32 2014 +0200
@@ -18,6 +18,7 @@
  */
 
 #include <stdio.h>
+#include <stdbool.h>
 
 /** @def Maximum length of log messages */
 #define MAX_LOG 511
@@ -134,6 +135,18 @@
  */
 void syslog_error_printf(const char *format, ...);
 
+ /**
+ * @brief log a certificate install / remove event.
+ *
+ * Logs a message in the event / syslog to mark a certificate
+ * installation or removal.
+ *
+ * @param[in] store name of the certificate store.
+ * @param[in] b64cert base64 encoded certificate.
+ * @param[in] install weather to log this as installation or removal
+ */
+void log_certificate(const char *store, char *b64cert, bool install);
+
 #ifdef __cplusplus
 }
 #endif

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