summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2015-04-20 16:43:51 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2015-04-20 16:43:54 +0200
commit928e52e0a2ea6ccdbf25d907658c32c7604c94b5 (patch)
treebcfd0bea6242a5e296d5823e18e7675a81bdf3a5
parent2de7b899e3710d967283624ddba4cce29be164dc (diff)
downloadgnutls-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.c2
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;
}