• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

randombit / botan / 5079590438

25 May 2023 12:28PM UTC coverage: 92.228% (+0.5%) from 91.723%
5079590438

Pull #3502

github

Pull Request #3502: Apply clang-format to the codebase

75589 of 81959 relevant lines covered (92.23%)

12139530.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

87.5
/src/lib/tls/credentials_manager.cpp
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

10
#include <botan/pkix_types.h>
11

12
namespace Botan {
13

14
std::string Credentials_Manager::psk_identity_hint(const std::string& /*unused*/, const std::string& /*unused*/) {
19✔
15
   return "";
19✔
16
}
17

18
std::string Credentials_Manager::psk_identity(const std::string& /*unused*/,
18✔
19
                                              const std::string& /*unused*/,
20
                                              const std::string& /*unused*/) {
21
   return "";
18✔
22
}
23

24
SymmetricKey Credentials_Manager::psk(const std::string& /*unused*/,
5✔
25
                                      const std::string& /*unused*/,
26
                                      const std::string& identity) {
27
   throw Internal_Error("No PSK set for identity " + identity);
10✔
28
}
29

30
std::vector<X509_Certificate> Credentials_Manager::find_cert_chain(
2,010✔
31
   const std::vector<std::string>& key_types,
32
   const std::vector<AlgorithmIdentifier>& cert_signature_schemes,
33
   const std::vector<X509_DN>& /*unused*/,
34
   const std::string& type,
35
   const std::string& context) {
36
   return cert_chain(key_types, cert_signature_schemes, type, context);
2,010✔
37
}
38

39
std::vector<X509_Certificate> Credentials_Manager::cert_chain(const std::vector<std::string>& /*unused*/,
12✔
40
                                                              const std::vector<AlgorithmIdentifier>& /*unused*/,
41
                                                              const std::string& /*unused*/,
42
                                                              const std::string& /*unused*/) {
43
   return std::vector<X509_Certificate>();
12✔
44
}
45

46
std::vector<X509_Certificate> Credentials_Manager::cert_chain_single_type(
2,059✔
47
   const std::string& cert_key_type,
48
   const std::vector<AlgorithmIdentifier>& cert_signature_schemes,
49
   const std::string& type,
50
   const std::string& context) {
51
   return find_cert_chain({cert_key_type}, cert_signature_schemes, std::vector<X509_DN>(), type, context);
6,179✔
52
}
53

54
std::shared_ptr<Private_Key> Credentials_Manager::private_key_for(const X509_Certificate& /*unused*/,
×
55
                                                                  const std::string& /*unused*/,
56
                                                                  const std::string& /*unused*/) {
57
   return std::shared_ptr<Private_Key>();
×
58
}
59

60
std::vector<Certificate_Store*> Credentials_Manager::trusted_certificate_authorities(const std::string& /*unused*/,
1,926✔
61
                                                                                     const std::string& /*unused*/) {
62
   return std::vector<Certificate_Store*>();
1,926✔
63
}
64

65
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc