/src/botan/src/lib/tls/credentials_manager.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Credentials Manager |
3 | | * (C) 2011,2012 Jack Lloyd |
4 | | * |
5 | | * Botan is released under the Simplified BSD License (see license.txt) |
6 | | */ |
7 | | |
8 | | #include <botan/credentials_manager.h> |
9 | | #include <botan/pkix_types.h> |
10 | | |
11 | | namespace Botan { |
12 | | |
13 | | std::string Credentials_Manager::psk_identity_hint(const std::string&, |
14 | | const std::string&) |
15 | 0 | { |
16 | 0 | return ""; |
17 | 0 | } |
18 | | |
19 | | std::string Credentials_Manager::psk_identity(const std::string&, |
20 | | const std::string&, |
21 | | const std::string&) |
22 | 0 | { |
23 | 0 | return ""; |
24 | 0 | } |
25 | | |
26 | | SymmetricKey Credentials_Manager::psk(const std::string&, |
27 | | const std::string&, |
28 | | const std::string& identity) |
29 | 0 | { |
30 | 0 | throw Internal_Error("No PSK set for identity " + identity); |
31 | 0 | } |
32 | | |
33 | | bool Credentials_Manager::attempt_srp(const std::string&, |
34 | | const std::string&) |
35 | 25.9k | { |
36 | 25.9k | return false; |
37 | 25.9k | } |
38 | | |
39 | | std::string Credentials_Manager::srp_identifier(const std::string&, |
40 | | const std::string&) |
41 | 6.01k | { |
42 | 6.01k | return ""; |
43 | 6.01k | } |
44 | | |
45 | | std::string Credentials_Manager::srp_password(const std::string&, |
46 | | const std::string&, |
47 | | const std::string&) |
48 | 0 | { |
49 | 0 | return ""; |
50 | 0 | } |
51 | | |
52 | | bool Credentials_Manager::srp_verifier(const std::string&, |
53 | | const std::string&, |
54 | | const std::string&, |
55 | | std::string&, |
56 | | BigInt&, |
57 | | std::vector<uint8_t>&, |
58 | | bool) |
59 | 0 | { |
60 | 0 | return false; |
61 | 0 | } |
62 | | |
63 | | std::vector<X509_Certificate> Credentials_Manager::find_cert_chain( |
64 | | const std::vector<std::string>& key_types, |
65 | | const std::vector<X509_DN>&, |
66 | | const std::string& type, |
67 | | const std::string& context) |
68 | 77.8k | { |
69 | 77.8k | return cert_chain(key_types, type, context); |
70 | 77.8k | } |
71 | | |
72 | | std::vector<X509_Certificate> Credentials_Manager::cert_chain( |
73 | | const std::vector<std::string>&, |
74 | | const std::string&, |
75 | | const std::string&) |
76 | 6 | { |
77 | 6 | return std::vector<X509_Certificate>(); |
78 | 6 | } |
79 | | |
80 | | std::vector<X509_Certificate> Credentials_Manager::cert_chain_single_type( |
81 | | const std::string& cert_key_type, |
82 | | const std::string& type, |
83 | | const std::string& context) |
84 | 77.8k | { |
85 | 77.8k | std::vector<std::string> cert_types; |
86 | 77.8k | cert_types.push_back(cert_key_type); |
87 | 77.8k | return find_cert_chain(cert_types, std::vector<X509_DN>(), type, context); |
88 | 77.8k | } |
89 | | |
90 | | Private_Key* Credentials_Manager::private_key_for(const X509_Certificate&, |
91 | | const std::string&, |
92 | | const std::string&) |
93 | 0 | { |
94 | 0 | return nullptr; |
95 | 0 | } |
96 | | |
97 | | std::vector<Certificate_Store*> |
98 | | Credentials_Manager::trusted_certificate_authorities( |
99 | | const std::string&, |
100 | | const std::string&) |
101 | 26.0k | { |
102 | 26.0k | return std::vector<Certificate_Store*>(); |
103 | 26.0k | } |
104 | | |
105 | | } |