瀏覽代碼

Bug fix: Certificate authority cache was not copied to new configuration storage nor cleaned up with other caches

Source commit: d1253ae1f2f12f4559082034e3c6186fe591adb1
Martin Prikryl 1 年之前
父節點
當前提交
a8b5dd0274
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      source/core/Configuration.cpp

+ 2 - 0
source/core/Configuration.cpp

@@ -716,6 +716,7 @@ void __fastcall TConfiguration::CopyData(THierarchicalStorage * Source,
   }
 
   CopyAllStringsInSubKey(Source, Target, SshHostKeysSubKey);
+  CopyAllStringsInSubKey(Source, Target, SshHostCAsKey);
   CopyAllStringsInSubKey(Source, Target, FtpsCertificateStorageKey);
   CopyAllStringsInSubKey(Source, Target, HttpsCertificateStorageKey);
 }
@@ -953,6 +954,7 @@ TStrings * TConfiguration::GetCaches()
 {
   std::unique_ptr<TStrings> Result(new TStringList());
   Result->Add(SshHostKeysSubKey);
+  Result->Add(SshHostCAsKey);
   Result->Add(FtpsCertificateStorageKey);
   Result->Add(HttpsCertificateStorageKey);
   Result->Add(DirectoryStatisticsCacheKey);