diff options
author | Jack Lloyd <[email protected]> | 2017-12-21 15:37:39 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-01-28 12:14:07 -0500 |
commit | b2b55e6c2fdb824f49923b60d2c3ffff8f0fb99a (patch) | |
tree | 8d5650816329cbe176a4e1fee639094c9387b260 /src/cli/tls_utils.cpp | |
parent | 1c667d34bf71336d33bb76309176a993f13a2aac (diff) |
Use enums to represent TLS signature and kex algorithms.
Adds support for PSS signatures (currently verifying only).
Diffstat (limited to 'src/cli/tls_utils.cpp')
-rw-r--r-- | src/cli/tls_utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli/tls_utils.cpp b/src/cli/tls_utils.cpp index 81c4fa328..784125de1 100644 --- a/src/cli/tls_utils.cpp +++ b/src/cli/tls_utils.cpp @@ -228,14 +228,14 @@ class TLS_Client_Hello_Reader final : public Command oss << "Supported signature schemes: "; - if(hello.supported_algos().empty()) + if(hello.signature_schemes().empty()) { oss << "Did not send signature_algorithms extension\n"; } else { - for(auto&& hash_and_sig : hello.supported_algos()) - oss << hash_and_sig.second << '+' << hash_and_sig.first << ' '; + for(Botan::TLS::Signature_Scheme scheme : hello.signature_schemes()) + oss << sig_scheme_to_string(scheme) << " "; oss << "\n"; } |