From 7effec1abfb40c25758f2054b6a1b673bd134c18 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 4 Jan 2023 17:27:29 +0300 Subject: [PATCH] Process symlinks in system certificate store. --- tdnet/td/net/SslCtx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdnet/td/net/SslCtx.cpp b/tdnet/td/net/SslCtx.cpp index a7737ac02..15c870d37 100644 --- a/tdnet/td/net/SslCtx.cpp +++ b/tdnet/td/net/SslCtx.cpp @@ -121,7 +121,7 @@ X509_STORE *load_system_certificate_store() { string default_cert_dir = X509_get_default_cert_dir(); for (auto cert_dir : full_split(default_cert_dir, ':')) { walk_path(cert_dir, [&](CSlice path, WalkPath::Type type) { - if (type != WalkPath::Type::RegularFile) { + if (type != WalkPath::Type::RegularFile && type != WalkPath::Type::Symlink) { return type == WalkPath::Type::EnterDir && path != cert_dir ? WalkPath::Action::SkipDir : WalkPath::Action::Continue; }