diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-04-20 16:43:51 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-04-20 16:43:54 +0200 |
commit | 928e52e0a2ea6ccdbf25d907658c32c7604c94b5 (patch) | |
tree | bcfd0bea6242a5e296d5823e18e7675a81bdf3a5 | |
parent | 2de7b899e3710d967283624ddba4cce29be164dc (diff) | |
download | gnutls-928e52e0a2ea6ccdbf25d907658c32c7604c94b5.tar.gz |
gnutls_certificate_get_ours: will return the certificate even if a callback was used
This corrects a bug where this function would not work, when
gnutls_certificate_set_retrieve_function2() was used.
-rw-r--r-- | lib/gnutls_ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_ui.c b/lib/gnutls_ui.c index 70897b16dc..c900b3c3b6 100644 --- a/lib/gnutls_ui.c +++ b/lib/gnutls_ui.c @@ -459,7 +459,7 @@ const gnutls_datum_t *gnutls_certificate_get_ours(gnutls_session_t session) cred = (gnutls_certificate_credentials_t) _gnutls_get_cred(session, GNUTLS_CRD_CERTIFICATE); - if (cred == NULL || cred->certs == NULL) { + if (cred == NULL) { gnutls_assert(); return NULL; } |