summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/nsd_gtls.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/nsd_gtls.c b/runtime/nsd_gtls.c
index 59cd398c..aec3f0c5 100644
--- a/runtime/nsd_gtls.c
+++ b/runtime/nsd_gtls.c
@@ -638,7 +638,9 @@ gtlsChkPeerCertValidity(nsd_gtls_t *pThis)
ISOBJ_TYPE_assert(pThis, nsd_gtls);
gnuRet = gnutls_certificate_verify_peers(pThis->sess);
- if(gnuRet < 1)
+ if(gnuRet == GNUTLS_E_NO_CERTIFICATE_FOUND) {
+ errmsg.LogError(NO_ERRCODE, "peer did not provide a certificate, not permitted to talk to it");
+ } else if(gnuRet < 1)
CHKgnutls(gnuRet);
if(gnuRet & GNUTLS_CERT_INVALID) {