From b1aae5080d9cbaaa524c0c6774a2f652ac8a393e Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Thu, 12 Sep 2019 12:01:18 +0900 Subject: [PATCH] put chain_certs in dbdir --- src/Cedar/Protocol.c | 4 ++-- src/Mayaqua/Network.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Cedar/Protocol.c b/src/Cedar/Protocol.c index fce8b428..773ef9a4 100644 --- a/src/Cedar/Protocol.c +++ b/src/Cedar/Protocol.c @@ -57,7 +57,7 @@ bool TryGetRootCertChain(LIST *o, X *x, bool auto_save, X **found_root_x) wchar_t dirname[MAX_SIZE]; wchar_t exedir[MAX_SIZE]; - GetExeDirW(exedir, sizeof(exedir)); + GetDbDirW(exedir, sizeof(exedir)); CombinePathW(dirname, sizeof(dirname), exedir, L"chain_certs"); MakeDirExW(dirname); @@ -363,7 +363,7 @@ void AddAllChainCertsToCertList(LIST *o) return; } - GetExeDirW(exedir, sizeof(exedir)); + GetDbDirW(exedir, sizeof(exedir)); CombinePathW(dirname, sizeof(dirname), exedir, L"chain_certs"); diff --git a/src/Mayaqua/Network.c b/src/Mayaqua/Network.c index 6e5bddaf..9649ff0c 100644 --- a/src/Mayaqua/Network.c +++ b/src/Mayaqua/Network.c @@ -11697,7 +11697,7 @@ void AddChainSslCertOnDirectory(struct ssl_ctx_st *ctx) o = NewListFast(NULL); - GetExeDirW(exedir, sizeof(exedir)); + GetDbDirW(exedir, sizeof(exedir)); CombinePathW(dirname, sizeof(dirname), exedir, L"chain_certs");