summaryrefslogtreecommitdiffstats
path: root/old/botan/build/botan/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'old/botan/build/botan/ui.h')
-rw-r--r--old/botan/build/botan/ui.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/old/botan/build/botan/ui.h b/old/botan/build/botan/ui.h
new file mode 100644
index 0000000..fe62c60
--- /dev/null
+++ b/old/botan/build/botan/ui.h
@@ -0,0 +1,36 @@
+/*
+* User Interface
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#ifndef BOTAN_UI_H__
+#define BOTAN_UI_H__
+
+#include <botan/build.h>
+#include <string>
+
+namespace Botan {
+
+/*
+* User Interface
+*/
+class BOTAN_DLL User_Interface
+ {
+ public:
+ enum UI_Result { OK, CANCEL_ACTION };
+
+ virtual std::string get_passphrase(const std::string&,
+ const std::string&,
+ UI_Result&) const;
+ User_Interface(const std::string& = "");
+ virtual ~User_Interface() {}
+ protected:
+ std::string preset_passphrase;
+ mutable bool first_try;
+ };
+
+}
+
+#endif