blob: 081cebaea6136d26d04163e4fca68a5269106d99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/**
* Policies Header File
* (C) 2004-2006 Jack Lloyd
*
* Released under the terms of the Botan license
*/
#ifndef BOTAN_POLICY_H__
#define BOTAN_POLICY_H__
#include <botan/tls_magic.h>
#include <botan/x509cert.h>
#include <botan/dl_group.h>
#include <vector>
namespace Botan {
/**
* Policy Base Class
*/
class BOTAN_DLL Policy
{
public:
std::vector<u16bit> ciphersuites() const;
virtual std::vector<byte> compression() const;
virtual u16bit choose_suite(const std::vector<u16bit>&,
bool, bool) const;
virtual byte choose_compression(const std::vector<byte>&) const;
virtual bool allow_static_rsa() const;
virtual bool allow_edh_rsa() const;
virtual bool allow_edh_dsa() const;
virtual bool require_client_auth() const;
virtual DL_Group dh_group() const;
virtual u32bit rsa_export_keysize() const;
virtual Version_Code min_version() const;
virtual Version_Code pref_version() const;
virtual bool check_cert(const std::vector<X509_Certificate>&,
const std::string&) const;
virtual ~Policy() {}
private:
virtual std::vector<u16bit> suite_list(bool, bool, bool) const;
};
}
#endif
|