#include <filezilla.h>
#include "sftp_crypt_info_dlg.h"
#include "dialogex.h"
void CSftpEncryptioInfoDialog::ShowDialog(CSftpEncryptionNotification* pNotification)
{
wxDialogEx* pDlg = new wxDialogEx;
pDlg->Load(0, _T("ID_SFTP_ENCRYPTION"));
SetLabel(pDlg, XRCID("ID_KEXALGO"), pNotification->kexAlgorithm);
SetLabel(pDlg, XRCID("ID_KEXHASH"), pNotification->kexHash);
SetLabel(pDlg, XRCID("ID_FINGERPRINT"), pNotification->hostKey);
SetLabel(pDlg, XRCID("ID_C2S_CIPHER"), pNotification->cipherClientToServer);
SetLabel(pDlg, XRCID("ID_C2S_MAC"), pNotification->macClientToServer);
SetLabel(pDlg, XRCID("ID_S2C_CIPHER"), pNotification->cipherServerToClient);
SetLabel(pDlg, XRCID("ID_S2C_MAC"), pNotification->macServerToClient);
pDlg->GetSizer()->Fit(pDlg);
pDlg->GetSizer()->SetSizeHints(pDlg);
pDlg->ShowModal();
delete pDlg;
}
void CSftpEncryptioInfoDialog::SetLabel(wxDialogEx* pDlg, int id, const wxString& text)
{
if (text.empty())
pDlg->SetChildLabel(id, _("unknown"));
else
pDlg->SetChildLabel(id, text);
}
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland