Mercurial > trustbridge
comparison common/logging.h @ 625:2303caf56dbb
Add logging function for der data and add logging to NSS installation
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 20 Jun 2014 12:53:16 +0200 |
parents | 5042ace08cba |
children | f89b41fa7048 |
comparison
equal
deleted
inserted
replaced
624:736e95c63b86 | 625:2303caf56dbb |
---|---|
134 * Function paramters are the same as for the printf familiy. | 134 * Function paramters are the same as for the printf familiy. |
135 */ | 135 */ |
136 void syslog_error_printf(const char *format, ...); | 136 void syslog_error_printf(const char *format, ...); |
137 | 137 |
138 /** | 138 /** |
139 * @brief log a certificate install / remove event. | 139 * @brief log a certificate install / remove event from base64 data. |
140 * | 140 * |
141 * Logs a message in the event / syslog to mark a certificate | 141 * Logs a message in the event / syslog to mark a certificate |
142 * installation or removal. | 142 * installation or removal. |
143 * | 143 * |
144 * @param[in] store name of the certificate store. | 144 * @param[in] store name of the certificate store. |
145 * @param[in] b64cert base64 encoded certificate. | 145 * @param[in] b64cert base64 encoded certificate. |
146 * @param[in] install weather to log this as installation or removal | 146 * @param[in] install weather to log this as installation or removal |
147 */ | 147 */ |
148 void log_certificate(const char *store, char *b64cert, bool install); | 148 void log_certificate(const char *store, char *b64cert, bool install); |
149 | |
150 /** | |
151 * @brief log a certificate install / remove event from der data. | |
152 * | |
153 * Logs a message in the event / syslog to mark a certificate | |
154 * installation or removal. | |
155 * | |
156 * @param[in] store name of the certificate store. | |
157 * @param[in] der_data pointer to der data of the certificate. | |
158 * @param[in] der_size size of the der_data | |
159 * @param[in] install weather to log this as installation or removal | |
160 */ | |
161 void log_certificate_der(const char *store, unsigned char *der_data, size_t der_size, bool install); | |
149 | 162 |
150 #ifdef __cplusplus | 163 #ifdef __cplusplus |
151 } | 164 } |
152 #endif | 165 #endif |
153 | 166 |