X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwgtpkg-xmlsec.c;h=b31a5d0b1027adc87ce0198e02336e373f7b1f65;hb=c0fc18e47e49dd4e3cc2f09452a19297dad63f9c;hp=6b6302e593cb53cec28942c94224ac41453e62e9;hpb=e2de563d1ecb4585ce68521bd42f3ef45ac79f16;p=src%2Fapp-framework-main.git diff --git a/src/wgtpkg-xmlsec.c b/src/wgtpkg-xmlsec.c index 6b6302e..b31a5d0 100644 --- a/src/wgtpkg-xmlsec.c +++ b/src/wgtpkg-xmlsec.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,7 +17,6 @@ */ -#include #include #include #include @@ -40,9 +41,7 @@ static int initstatus; static int initdone; static xmlSecKeysMngrPtr keymgr; -#ifndef CA_ROOT_DIRECTORY -#define CA_ROOT_DIRECTORY "./ca-certificates" -#endif +static const char trusted_certificates_directory[] = WGTPKG_TRUSTED_CERT_DIR; /* checks if a file match uri (should not be a distributor signature) */ static int file_match_cb(const char *uri) @@ -191,7 +190,7 @@ int xmlsec_init() ERROR("xmlSecCryptoAppDefaultKeysMngrInit failed."); goto end; } - fill_trusted_keys_dir(CA_ROOT_DIRECTORY); + fill_trusted_keys_dir(trusted_certificates_directory); initstatus = 0; end: