summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ext/signature.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ext/signature.c b/lib/ext/signature.c
index 1da555e992..d52091ad2a 100644
--- a/lib/ext/signature.c
+++ b/lib/ext/signature.c
@@ -274,6 +274,9 @@ _gnutls_session_get_sign_algo (gnutls_session_t session, gnutls_pcert_st* cert)
if (_gnutls_pubkey_compatible_with_sig(cert->pubkey, ver, priv->sign_algorithms[i]) < 0)
continue;
+ if (_gnutls_session_sign_algo_enabled(session, priv->sign_algorithms[i]) < 0)
+ continue;
+
return priv->sign_algorithms[i];
}
}