summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-06-24 17:44:16 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-06-24 17:44:16 +0200
commitdd3e2cae9d3df243ed68c0bed1523a3b891eb893 (patch)
treea733f9f7e37199661c36710e07b07ebd6ff7d6f8 /runtime
parentb5d8f5d96aeff3e95cac135f9250da6e9d799382 (diff)
downloadrsyslog-dd3e2cae9d3df243ed68c0bed1523a3b891eb893.tar.gz
rsyslog-dd3e2cae9d3df243ed68c0bed1523a3b891eb893.tar.xz
rsyslog-dd3e2cae9d3df243ed68c0bed1523a3b891eb893.zip
improved gtls error reporting
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 5646c2cf..2bb8f3d9 100644
--- a/runtime/nsd_gtls.c
+++ b/runtime/nsd_gtls.c
@@ -498,7 +498,9 @@ gtlsRecordRecv(nsd_gtls_t *pThis)
int gnuRet; /* TODO: build a specific function for GnuTLS error reporting */
CHKgnutls(lenRcvd); /* this will abort the function */
}
+
finalize_it:
+ dbgprintf("gtlsRecordRecv return. nsd %p, iRet %d, lenRcvd %d, lenRcvBuf %d, ptrRcvBuf %d\n", pThis, iRet, lenRcvd, pThis->lenRcvBuf, pThis->ptrRcvBuf);
RETiRet;
}
@@ -1128,7 +1130,6 @@ gtlsSetTransportPtr(nsd_gtls_t *pThis, int sock)
BEGINobjConstruct(nsd_gtls) /* be sure to specify the object type also in END macro! */
iRet = nsd_ptcp.Construct(&pThis->pTcp);
pThis->bReportAuthErr = 1;
-//pThis->lenRcvBuf = -1; /* important: -1 means not read, 0 means connection close! */
CHKiRet(gtlsAddOurCert());
finalize_it:
ENDobjConstruct(nsd_gtls)
@@ -1476,6 +1477,7 @@ Rcv(nsd_t *pNsd, uchar *pBuf, ssize_t *pLenBuf)
*pLenBuf = iBytesCopy;
finalize_it:
+ dbgprintf("gtlsRcv return. nsd %p, iRet %d, lenRcvBuf %d, ptrRcvBuf %d\n", pThis, iRet, pThis->lenRcvBuf, pThis->ptrRcvBuf);
RETiRet;
}