diff options
author | José Bollo <jose.bollo@iot.bzh> | 2015-12-16 09:33:29 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2015-12-16 09:33:29 +0100 |
commit | 494dce9b223d39571ec031bb66d118807ae917d1 (patch) | |
tree | 5356d5710129bf9bbd070e59567e7c426f072a2f /src/wgtpkg-xmlsec.c | |
parent | bf145fdf7640be178b006579e3248dd230a9d0c9 (diff) |
definition of trusted certificates directory
Change-Id: Iae2e845406764f3bbe2727bf191b54b8ea223e5b
Diffstat (limited to 'src/wgtpkg-xmlsec.c')
-rw-r--r-- | src/wgtpkg-xmlsec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wgtpkg-xmlsec.c b/src/wgtpkg-xmlsec.c index 31223ca..6b5f646 100644 --- a/src/wgtpkg-xmlsec.c +++ b/src/wgtpkg-xmlsec.c @@ -39,9 +39,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) @@ -190,7 +188,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: |