summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gnutls_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gnutls_state.c b/lib/gnutls_state.c
index c95f723d7a..ba97da2368 100644
--- a/lib/gnutls_state.c
+++ b/lib/gnutls_state.c
@@ -127,7 +127,8 @@ _gnutls_session_cert_type_supported (gnutls_session_t session,
unsigned cert_found = 0;
gnutls_certificate_credentials_t cred;
- if (session->security_parameters.entity == GNUTLS_SERVER)
+ if (session->security_parameters.entity == GNUTLS_SERVER &&
+ session->server_get_cert_callback == NULL)
{
cred = (gnutls_certificate_credentials_t)
_gnutls_get_cred (session->key, GNUTLS_CRD_CERTIFICATE, NULL);