Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
622:c0f988e3df9f | 623:5042ace08cba |
---|---|
16 * @file | 16 * @file |
17 * @brief Logging and debugging functions | 17 * @brief Logging and debugging functions |
18 */ | 18 */ |
19 | 19 |
20 #include <stdio.h> | 20 #include <stdio.h> |
21 #include <stdbool.h> | |
21 | 22 |
22 /** @def Maximum length of log messages */ | 23 /** @def Maximum length of log messages */ |
23 #define MAX_LOG 511 | 24 #define MAX_LOG 511 |
24 | 25 |
25 /** @def The name used for logging */ | 26 /** @def The name used for logging */ |
132 * | 133 * |
133 * Function paramters are the same as for the printf familiy. | 134 * Function paramters are the same as for the printf familiy. |
134 */ | 135 */ |
135 void syslog_error_printf(const char *format, ...); | 136 void syslog_error_printf(const char *format, ...); |
136 | 137 |
138 /** | |
139 * @brief log a certificate install / remove event. | |
140 * | |
141 * Logs a message in the event / syslog to mark a certificate | |
142 * installation or removal. | |
143 * | |
144 * @param[in] store name of the certificate store. | |
145 * @param[in] b64cert base64 encoded certificate. | |
146 * @param[in] install weather to log this as installation or removal | |
147 */ | |
148 void log_certificate(const char *store, char *b64cert, bool install); | |
149 | |
137 #ifdef __cplusplus | 150 #ifdef __cplusplus |
138 } | 151 } |
139 #endif | 152 #endif |
140 | 153 |
141 #endif /* COMMON_LOGGING_H */ | 154 #endif /* COMMON_LOGGING_H */ |