diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-09-22 11:01:22 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-09-22 11:01:39 +0200 |
commit | e3f270cce72523674821f3f72be60b86111c631f (patch) | |
tree | 8720504dcd5bea1e1ebb6ecd34566f067ac96ed0 /lib/ext | |
parent | 46679c46a97592715c67c64a6d1210925b56a36c (diff) | |
download | gnutls-e3f270cce72523674821f3f72be60b86111c631f.tar.gz |
_gnutls_session_get_sign_algo: always return GNUTLS_SIGN_UNKNOWN on failure
Diffstat (limited to 'lib/ext')
-rw-r--r-- | lib/ext/signature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext/signature.c b/lib/ext/signature.c index 29a208e367..354790b5d3 100644 --- a/lib/ext/signature.c +++ b/lib/ext/signature.c @@ -268,7 +268,7 @@ _gnutls_session_get_sign_algo(gnutls_session_t session, unsigned int cert_algo; if (unlikely(ver == NULL)) - return gnutls_assert_val(GNUTLS_E_INTERNAL_ERROR); + return gnutls_assert_val(GNUTLS_SIGN_UNKNOWN); cert_algo = gnutls_pubkey_get_pk_algorithm(cert->pubkey, NULL); |