Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ca-certificates: load symbolic link as cert files #600

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/core/asio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static int load_ca_to_ssl_ctx_path(SSL_CTX* ssl_ctx, const std::string &dir_path
dir = _wopendir(wdir_path.c_str());
if (dir != nullptr) {
while((dent=_wreaddir(dir))!=nullptr) {
if (dent->d_type != DT_REG) {
if (dent->d_type != DT_REG && dent->d_type != DT_LNK) {
continue;
}
std::filesystem::path wca_bundle = std::filesystem::path(wdir_path) / dent->d_name;
Expand All @@ -167,7 +167,7 @@ static int load_ca_to_ssl_ctx_path(SSL_CTX* ssl_ctx, const std::string &dir_path
dir = opendir(dir_path.c_str());
if (dir != nullptr) {
while((dent=readdir(dir))!=nullptr) {
if (dent->d_type != DT_REG) {
if (dent->d_type != DT_REG && dent->d_type != DT_LNK) {
continue;
}
std::string ca_bundle = dir_path + "/" + dent->d_name;
Expand Down
Loading