comparison common/listutil.c @ 626:f595fcbe3e76

Replace "normal printfs" with DEBUG / ERROR printf macros
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 20 Jun 2014 14:29:05 +0200
parents 17e1c8f37d72
children aa48ea7ead1f
comparison
equal deleted inserted replaced
625:2303caf56dbb 626:f595fcbe3e76
166 #endif 166 #endif
167 167
168 ret = pk_parse_public_key(&pub_key_ctx, public_key_pem, 168 ret = pk_parse_public_key(&pub_key_ctx, public_key_pem,
169 public_key_pem_size); 169 public_key_pem_size);
170 if (ret != 0) { 170 if (ret != 0) {
171 printf("pk_parse_public_key failed with -0x%04x\n\n", -ret); 171 ERRORPRINTF ("pk_parse_public_key failed with -0x%04x\n\n", -ret);
172 pk_free(&pub_key_ctx); 172 pk_free(&pub_key_ctx);
173 return ret; 173 return ret;
174 } 174 }
175 175
176 ret = pk_verify(&pub_key_ctx, POLARSSL_MD_SHA256, hash, 0, 176 ret = pk_verify(&pub_key_ctx, POLARSSL_MD_SHA256, hash, 0,
177 signature, sig_size); 177 signature, sig_size);
178 178
179 if (ret != 0) { 179 if (ret != 0) {
180 printf("pk_verify failed with -0x%04x\n\n", -ret); 180 ERRORPRINTF ("pk_verify failed with -0x%04x\n\n", -ret);
181 } 181 }
182 pk_free(&pub_key_ctx); 182 pk_free(&pub_key_ctx);
183 183
184 return ret; 184 return ret;
185 } 185 }
247 char *cur = data; 247 char *cur = data;
248 char **retval = NULL; 248 char **retval = NULL;
249 249
250 if (!data || !size) 250 if (!data || !size)
251 { 251 {
252 printf ("Invalid call to get_certs_to_remove \n"); 252 ERRORPRINTF ("Invalid call to get_certs_to_remove \n");
253 return NULL; 253 return NULL;
254 } 254 }
255 255
256 while (cur) 256 while (cur)
257 { 257 {

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