_gnutls_session_sign_algo_enabled: do not consider any values from the...

_gnutls_session_sign_algo_enabled: do not consider any values from the extension data to decide acceptable algorithms
parent 3ddc1945
Pipeline #18775 failed with stage
......@@ -379,24 +379,9 @@ _gnutls_session_sign_algo_enabled (gnutls_session_t session,
gnutls_sign_algorithm_t sig)
{
unsigned i;
int ret;
gnutls_protocol_t ver = gnutls_protocol_get_version (session);
sig_ext_st *priv;
extension_priv_data_t epriv;
ret =
_gnutls_ext_get_session_data (session,
GNUTLS_EXTENSION_SIGNATURE_ALGORITHMS,
&epriv);
if (ret < 0)
{
gnutls_assert ();
return 0;
}
priv = epriv.ptr;
if (!_gnutls_version_has_selectable_sighash (ver)
|| priv->sign_algorithms_size == 0)
if (!_gnutls_version_has_selectable_sighash (ver))
/* none set, allow all */
{
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment