瀏覽代碼

Disabling "Allow agent forwarding" session settings when "Attempt authentication using Pageant" setting is unchecked

Source commit: 4e7dd1584e50530909c2c747fd82dd3103c51c46
Martin Prikryl 7 年之前
父節點
當前提交
6012e536f4
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      source/forms/SiteAdvanced.cpp

+ 1 - 0
source/forms/SiteAdvanced.cpp

@@ -803,6 +803,7 @@ void __fastcall TSiteAdvancedDialog::UpdateControls()
       ((AuthTISCheck->Enabled && AuthTISCheck->Checked) ||
       ((AuthTISCheck->Enabled && AuthTISCheck->Checked) ||
        (AuthKICheck->Enabled && AuthKICheck->Checked)));
        (AuthKICheck->Enabled && AuthKICheck->Checked)));
     EnableControl(AuthenticationParamsGroup, AuthenticationGroup->Enabled);
     EnableControl(AuthenticationParamsGroup, AuthenticationGroup->Enabled);
+    EnableControl(AgentFwdCheck, AuthenticationParamsGroup->Enabled && FSessionData->TryAgent);
     EnableControl(PrivateKeyViewButton, PrivateKeyEdit3->Enabled && !PrivateKeyEdit3->Text.IsEmpty());
     EnableControl(PrivateKeyViewButton, PrivateKeyEdit3->Enabled && !PrivateKeyEdit3->Text.IsEmpty());
     EnableControl(AuthGSSAPICheck3,
     EnableControl(AuthGSSAPICheck3,
       AuthenticationGroup->Enabled && (GetSshProt() == ssh2only));
       AuthenticationGroup->Enabled && (GetSshProt() == ssh2only));