Botan: src/utils/ui.h Source File

Botan 1.10.12

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

ui.h
Go to the documentation of this file.
1 /*
2 * User Interface
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7
8 #ifndef BOTAN_UI_H__
9 #define BOTAN_UI_H__
10
11 #include <botan/build.h>
12 #include <string>
13
14 namespace Botan {
15
16 /**
17 * User Interface
18 * Only really used for callbacks for PKCS #8 decryption
19 */
20 class BOTAN_DLL User_Interface
21 {
22 public:
23 enum UI_Result { OK, CANCEL_ACTION };
24
25 virtual std::string get_passphrase(const std::string&,
26 const std::string&,
27 UI_Result&) const;
28 User_Interface(const std::string& = "");
29 virtual ~User_Interface() {}
30 protected:
31 std::string preset_passphrase;
32 mutable bool first_try;
33 };
34
35 }
36
37 #endif
Botan::User_Interface
Definition: ui.h:20
Botan::User_Interface::~User_Interface
virtual ~User_Interface()
Definition: ui.h:29
Botan::User_Interface::preset_passphrase
std::string preset_passphrase
Definition: ui.h:31
Botan::User_Interface::UI_Result
UI_Result
Definition: ui.h:23
Botan
Definition: algo_base.h:14
Botan::User_Interface::first_try
bool first_try
Definition: ui.h:32