diff options
Diffstat (limited to 'src/lib/tls/tls_messages.h')
-rw-r--r-- | src/lib/tls/tls_messages.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/tls/tls_messages.h b/src/lib/tls/tls_messages.h index 8ccb2fbff..cf35053f2 100644 --- a/src/lib/tls/tls_messages.h +++ b/src/lib/tls/tls_messages.h @@ -19,6 +19,7 @@ #include <botan/x509cert.h> #include <vector> #include <string> +#include <set> namespace Botan { @@ -105,6 +106,14 @@ class Client_Hello final : public Handshake_Message return std::vector<std::pair<std::string, std::string>>(); } + std::set<std::string> supported_sig_algos() const + { + std::set<std::string> sig; + for(auto&& hash_and_sig : supported_algos()) + sig.insert(hash_and_sig.second); + return sig; + } + std::vector<std::string> supported_ecc_curves() const { if(Supported_Elliptic_Curves* ecc = m_extensions.get<Supported_Elliptic_Curves>()) @@ -167,6 +176,11 @@ class Client_Hello final : public Handshake_Message return m_extensions.has<Encrypt_then_MAC>(); } + bool sent_signature_algorithms() const + { + return m_extensions.has<Signature_Algorithms>(); + } + std::vector<std::string> next_protocols() const { if(auto alpn = m_extensions.get<Application_Layer_Protocol_Notification>()) |