summaryrefslogtreecommitdiff
path: root/lib/auth/cert.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-08 11:35:26 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-08 16:10:51 +0200
commitdcc956872958ec62352d422d394d509c43ffdd32 (patch)
tree82b19da44d9ae6e3aa3aef8900d4beb1eb1d18ba /lib/auth/cert.c
parente1e03f7e1d4258dda65d6258a04db60eb0b77f86 (diff)
downloadgnutls-dcc956872958ec62352d422d394d509c43ffdd32.tar.gz
gnutls_certificate_credentials_t: combine privkey into cert_st structure
This reduces the number of applications and allows for easier use of the structure information, as they are now self-contained for most uses. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/auth/cert.c')
-rw-r--r--lib/auth/cert.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/auth/cert.c b/lib/auth/cert.c
index c66f4f2950..5fd2286266 100644
--- a/lib/auth/cert.c
+++ b/lib/auth/cert.c
@@ -596,7 +596,7 @@ select_client_cert(gnutls_session_t session,
cert_list[0],
cred->certs[indx].
cert_list_length,
- cred->pkey[indx], 0,
+ cred->certs[indx].pkey, 0,
NULL, NULL);
} else {
_gnutls_selected_certs_set(session, NULL, 0, NULL, 0,
@@ -1567,7 +1567,7 @@ _gnutls_server_select_cert(gnutls_session_t session, const gnutls_cipher_suite_e
ret = select_sign_algorithm(session,
&cred->certs[i].cert_list[0],
- cred->pkey[i],
+ cred->certs[i].pkey,
cs);
if (ret >= 0) {
idx = i;
@@ -1604,7 +1604,7 @@ _gnutls_server_select_cert(gnutls_session_t session, const gnutls_cipher_suite_e
ret = select_sign_algorithm(session,
&cred->certs[i].cert_list[0],
- cred->pkey[i],
+ cred->certs[i].pkey,
cs);
if (ret >= 0) {
idx = i;
@@ -1626,7 +1626,7 @@ _gnutls_server_select_cert(gnutls_session_t session, const gnutls_cipher_suite_e
_gnutls_selected_certs_set(session,
&cred->certs[idx].cert_list[0],
cred->certs[idx].cert_list_length,
- cred->pkey[idx], 0,
+ cred->certs[idx].pkey, 0,
cred->certs[idx].ocsp_func,
cred->certs[idx].ocsp_func_ptr);
} else {