diff options
| author | Yoshinari Takaoka | 2018-08-03 06:08:07 +0900 |
|---|---|---|
| committer | Yoshinari Takaoka | 2018-08-03 06:08:07 +0900 |
| commit | cd6f93c8f8f484a3f5aaba30000aa56e59ae1ab0 (patch) | |
| tree | 22792d12ece05279c6cdaa0a75f437718d5e8c57 /tcpd/libcouriergnutls.c | |
| parent | c5df82b395536c81cec21f5eb1d3c2d1bfcb26ce (diff) | |
| download | courier-libs-cd6f93c8f8f484a3f5aaba30000aa56e59ae1ab0.tar.bz2 | |
[GnuTLS] added non ssl error log when cert file does not exist
Diffstat (limited to 'tcpd/libcouriergnutls.c')
| -rw-r--r-- | tcpd/libcouriergnutls.c | 4 |
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); |
