summaryrefslogtreecommitdiffstats
path: root/tcpd
diff options
context:
space:
mode:
authorYoshinari Takaoka2018-08-03 06:08:07 +0900
committerYoshinari Takaoka2018-08-03 06:08:07 +0900
commitcd6f93c8f8f484a3f5aaba30000aa56e59ae1ab0 (patch)
tree22792d12ece05279c6cdaa0a75f437718d5e8c57 /tcpd
parentc5df82b395536c81cec21f5eb1d3c2d1bfcb26ce (diff)
downloadcourier-libs-cd6f93c8f8f484a3f5aaba30000aa56e59ae1ab0.tar.bz2
[GnuTLS] added non ssl error log when cert file does not exist
Diffstat (limited to 'tcpd')
-rw-r--r--tcpd/libcouriergnutls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcpd/libcouriergnutls.c b/tcpd/libcouriergnutls.c
index 4964d8c..f3c34d4 100644
--- a/tcpd/libcouriergnutls.c
+++ b/tcpd/libcouriergnutls.c
@@ -912,7 +912,11 @@ static int get_server_cert(gnutls_session_t session,
}
if (!certfilename)
+ {
+ if (ssl->ctx->certfile)
+ nonsslerror(&ssl->info_cpy, ssl->ctx->certfile);
return 0;
+ }
rc=set_cert(ssl, session, st, certfilename);
free(certfilename);