소스 검색

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);