diff options
| author | levlam <levlam@telegram.org> | 2023-01-04 17:27:29 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2023-01-04 17:27:29 +0300 |
| commit | 7effec1abfb40c25758f2054b6a1b673bd134c18 (patch) | |
| tree | 695a198a2e7b1b07a9f7c77c183288d5d3660a4e /tdnet | |
| parent | 3573990d524123b861730827366f898183c998f1 (diff) | |
Process symlinks in system certificate store.
Diffstat (limited to 'tdnet')
| -rw-r--r-- | tdnet/td/net/SslCtx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
