summaryrefslogtreecommitdiffstats
path: root/botan/doc/examples/gtk/gtk_ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'botan/doc/examples/gtk/gtk_ui.h')
-rw-r--r--botan/doc/examples/gtk/gtk_ui.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/botan/doc/examples/gtk/gtk_ui.h b/botan/doc/examples/gtk/gtk_ui.h
new file mode 100644
index 0000000..9ced83a
--- /dev/null
+++ b/botan/doc/examples/gtk/gtk_ui.h
@@ -0,0 +1,25 @@
+/*************************************************
+* GTK+ User Interface Header File *
+*************************************************/
+
+#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