summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/src/GPGw/passdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CryptoPP/src/GPGw/passdialog.cpp')
-rw-r--r--plugins/CryptoPP/src/GPGw/passdialog.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/CryptoPP/src/GPGw/passdialog.cpp b/plugins/CryptoPP/src/GPGw/passdialog.cpp
new file mode 100644
index 0000000000..d00753af9e
--- /dev/null
+++ b/plugins/CryptoPP/src/GPGw/passdialog.cpp
@@ -0,0 +1,29 @@
+#include "../commonheaders.h"
+#include "gpgw.h"
+
+char dlgpassphrase[passphrasesize];
+
+BOOL CALLBACK PassphraseDialogProcedure(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
+{
+ switch(msg)
+ {
+ case WM_INITDIALOG:
+ SetDlgItemText(hdlg, IDC_USERID, (char *)lparam);
+ break;
+ case WM_COMMAND:
+ switch(LOWORD(wparam))
+ {
+ case IDOK:
+ ZeroMemory(dlgpassphrase, sizeof(dlgpassphrase));
+ GetDlgItemText(hdlg, IDC_PASSPHRASE, dlgpassphrase, sizeof(dlgpassphrase));
+ case IDCANCEL:
+ EndDialog(hdlg, wparam);
+ return TRUE;
+ break;
+ }
+ break;
+ }
+
+ return FALSE;
+}
+