aboutsummaryrefslogtreecommitdiffstats
path: root/Attic/gtk/gtk_ui.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-02-11 14:37:07 +0000
committerlloyd <[email protected]>2011-02-11 14:37:07 +0000
commite32931ab596731310295592592cd267052664832 (patch)
tree41da348fb78e750c3c4be9baaf8b5e05647b8827 /Attic/gtk/gtk_ui.h
parent5f4f1294b1cf1784f4fd14840a9e0824f4fa8742 (diff)
parent0e41e0e8d441ff907f092c718db650cda06e2e1a (diff)
propagate from branch 'net.randombit.botan' (head 13a0d36dac3709f3cb88e830ed7f8cab9e7433ab)
to branch 'net.randombit.botan.c++0x' (head 2221ad8796466e7e096645de77ba856a9c902d14)
Diffstat (limited to 'Attic/gtk/gtk_ui.h')
-rw-r--r--Attic/gtk/gtk_ui.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/Attic/gtk/gtk_ui.h b/Attic/gtk/gtk_ui.h
new file mode 100644
index 000000000..065a4f76b
--- /dev/null
+++ b/Attic/gtk/gtk_ui.h
@@ -0,0 +1,27 @@
+/*
+* (C) 2006 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#ifndef BOTAN_EXT_GTK_UI__
+#define BOTAN_EXT_GTK_UI__
+
+#include <botan/ui.h>
+#include <gtk/gtk.h>
+
+/*
+* GTK+ Passphrase Callback Object
+*/
+class GTK_UI : public Botan::User_Interface
+ {
+ public:
+ std::string get_passphrase(const std::string&, const std::string&,
+ UI_Result&) const;
+
+ std::string get_passphrase(const std::string&, UI_Result&) const;
+
+ static void callback(GtkWidget*, gpointer);
+ };
+
+#endif