diff options
author | Jack Lloyd <[email protected]> | 2017-09-01 06:48:08 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-01 06:48:08 -0400 |
commit | 5799877ab297cb4728fa2955b5b366751e3cdf3b (patch) | |
tree | 598aed2323ec4f0f85b89d6fc67188e785c9b038 /src/lib | |
parent | d42bbd3540f09dd154123e97032f5bfc0b110c4e (diff) |
Don't try enforcing the hash policy for PSK ciphersuites
Since we don't end up signing anything in any case.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/tls/tls_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tls/tls_server.cpp b/src/lib/tls/tls_server.cpp index 8265a2846..434acf93d 100644 --- a/src/lib/tls/tls_server.cpp +++ b/src/lib/tls/tls_server.cpp @@ -205,7 +205,7 @@ uint16_t choose_ciphersuite( continue; } - if(version.supports_negotiable_signature_algorithms()) + if(version.supports_negotiable_signature_algorithms() && suite.sig_algo() != "") { const std::vector<std::pair<std::string, std::string>> client_sig_hash_pairs = client_hello.supported_algos(); |