Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Filezilla/src/interface/     Datei vom 7.0.2015 mit Größe 1 kB image not shown  

Quelle  sftp_crypt_info_dlg.cpp   Sprache: C

 

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

Messung
CHZG
829810093

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© Formatika GbR, Deutschland