1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-23 01:49:53 +03:00

put chain_certs in dbdir

This commit is contained in:
Koichiro IWAO 2019-09-12 12:01:18 +09:00
parent a69c4980d5
commit b1aae5080d
No known key found for this signature in database
GPG Key ID: 9F72CDBC01BF10EB
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ bool TryGetRootCertChain(LIST *o, X *x, bool auto_save, X **found_root_x)
wchar_t dirname[MAX_SIZE]; wchar_t dirname[MAX_SIZE];
wchar_t exedir[MAX_SIZE]; wchar_t exedir[MAX_SIZE];
GetExeDirW(exedir, sizeof(exedir)); GetDbDirW(exedir, sizeof(exedir));
CombinePathW(dirname, sizeof(dirname), exedir, L"chain_certs"); CombinePathW(dirname, sizeof(dirname), exedir, L"chain_certs");
MakeDirExW(dirname); MakeDirExW(dirname);
@ -363,7 +363,7 @@ void AddAllChainCertsToCertList(LIST *o)
return; return;
} }
GetExeDirW(exedir, sizeof(exedir)); GetDbDirW(exedir, sizeof(exedir));
CombinePathW(dirname, sizeof(dirname), exedir, L"chain_certs"); CombinePathW(dirname, sizeof(dirname), exedir, L"chain_certs");

View File

@ -11697,7 +11697,7 @@ void AddChainSslCertOnDirectory(struct ssl_ctx_st *ctx)
o = NewListFast(NULL); o = NewListFast(NULL);
GetExeDirW(exedir, sizeof(exedir)); GetDbDirW(exedir, sizeof(exedir));
CombinePathW(dirname, sizeof(dirname), exedir, L"chain_certs"); CombinePathW(dirname, sizeof(dirname), exedir, L"chain_certs");