X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwgtpkg-certs.c;h=116e6377a0754f63860a64054c3b94db10ae5da2;hb=c0fc18e47e49dd4e3cc2f09452a19297dad63f9c;hp=b4b45fdfa3bf6709f4775cdd301e1a7787f481b0;hpb=015e28a88825e7194af39bde8c5c1c1302e3a784;p=src%2Fapp-framework-main.git diff --git a/src/wgtpkg-certs.c b/src/wgtpkg-certs.c index b4b45fd..116e637 100644 --- a/src/wgtpkg-certs.c +++ b/src/wgtpkg-certs.c @@ -1,6 +1,8 @@ /* Copyright 2015 IoT.bzh + author: José Bollo + Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -15,9 +17,9 @@ */ -#include #include +#include "verbose.h" #include "wgtpkg.h" struct x509l { @@ -31,7 +33,7 @@ static int add_certificate_x509(X509 *x) { X509 **p = realloc(certificates.certs, (certificates.count + 1) * sizeof(X509*)); if (!p) { - syslog(LOG_ERR, "reallocation failed for certificate"); + ERROR("reallocation failed for certificate"); return -1; } certificates.certs = p; @@ -48,7 +50,7 @@ static int add_certificate_bin(const char *bin, int len) while (b < e) { X509 *x = d2i_X509(NULL, (const unsigned char **)&b, e-b); if (x == NULL) { - syslog(LOG_ERR, "d2i_X509 failed"); + ERROR("d2i_X509 failed"); return -1; } rc = add_certificate_x509(x);