diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-07-14 10:15:23 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-08-02 08:26:28 +0200 |
commit | f9b6cfd536fc97a9fdf94e61649bffb682e78de1 (patch) | |
tree | 1db0ea69864d19ea897370bcb83e15ba65310316 /lib/auth/cert.c | |
parent | 2a552f2eb3c93e2c13c1eb8cd4f64317d8586e5f (diff) | |
download | gnutls-f9b6cfd536fc97a9fdf94e61649bffb682e78de1.tar.gz |
security_parameters: simplified contents by keeping pointer to cipher_suite_entry_st
That, in addition to simplifying the contents, it allows faster access
to ciphersuite's properties.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/auth/cert.c')
-rw-r--r-- | lib/auth/cert.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/auth/cert.c b/lib/auth/cert.c index 10a9693e03..826f793e7a 100644 --- a/lib/auth/cert.c +++ b/lib/auth/cert.c @@ -703,8 +703,7 @@ int check_pk_compat(gnutls_session_t session, gnutls_pubkey_t pubkey) return GNUTLS_E_CERTIFICATE_ERROR; } - kx = _gnutls_cipher_suite_get_kx_algo(session-> - security_parameters.cipher_suite); + kx = session->security_parameters.cs->kx_algorithm; if (_gnutls_map_kx_get_cred(kx, 1) == GNUTLS_CRD_CERTIFICATE && !_gnutls_kx_supports_pk(kx, cert_pk)) { |