diff options
Diffstat (limited to 'src/tls/tls_policy.cpp')
-rw-r--r-- | src/tls/tls_policy.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tls/tls_policy.cpp b/src/tls/tls_policy.cpp index a547e8fd5..6718b2e1e 100644 --- a/src/tls/tls_policy.cpp +++ b/src/tls/tls_policy.cpp @@ -245,8 +245,11 @@ u16bit Policy::choose_suite(const std::vector<u16bit>& client_suites, continue; } - if(!value_exists(available_cert_types, suite.sig_algo())) + if(suite.sig_algo() != "" && + !value_exists(available_cert_types, suite.sig_algo())) + { continue; + } if(value_exists(client_suites, suite_id)) return suite_id; |