summaryrefslogtreecommitdiffstats
path: root/runtime/nsd.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-05-16 18:26:25 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-05-16 18:26:25 +0200
commit6ea98ec5fff21c362e28a0121b78b8e6bb3b2528 (patch)
tree3b4f434a5b8329acd82ef77d3d5d0144218b9e79 /runtime/nsd.h
parent29ebd4ab3e391aea53b6e337061d226359aeb993 (diff)
downloadrsyslog-6ea98ec5fff21c362e28a0121b78b8e6bb3b2528.tar.gz
rsyslog-6ea98ec5fff21c362e28a0121b78b8e6bb3b2528.tar.xz
rsyslog-6ea98ec5fff21c362e28a0121b78b8e6bb3b2528.zip
added first rough ability to authenticate the server against its certificate
This is very experimental and needs some more work. It probably even segfaults - but the base code is there and running. The rest is refinement. While working on this, I did these two bugfixes: - bugfix: small mem leak in omfwd on exit (strmdriver name was not freed) - bugfix: $ActionSendStreamDriver had no effect
Diffstat (limited to 'runtime/nsd.h')
-rw-r--r--runtime/nsd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/nsd.h b/runtime/nsd.h
index cc06c877..1dc9efe9 100644
--- a/runtime/nsd.h
+++ b/runtime/nsd.h
@@ -51,6 +51,8 @@ BEGINinterface(nsd) /* name must also be changed in ENDinterface macro! */
rsRetVal (*GetRemoteHName)(nsd_t *pThis, uchar **pszName);
rsRetVal (*GetRemoteIP)(nsd_t *pThis, uchar **pszIP);
rsRetVal (*SetMode)(nsd_t *pThis, int mode); /* sets a driver specific mode - see driver doc for details */
+ rsRetVal (*SetAuthMode)(nsd_t *pThis, uchar*); /* sets a driver specific mode - see driver doc for details */
+ rsRetVal (*AddPermFingerprint)(nsd_t *pThis, uchar*); /* sets a driver specific mode - see driver doc for details */
rsRetVal (*GetSock)(nsd_t *pThis, int *pSock);
rsRetVal (*SetSock)(nsd_t *pThis, int sock);
/* GetSock() and SetSock() return an error if the driver does not use plain
@@ -58,7 +60,7 @@ BEGINinterface(nsd) /* name must also be changed in ENDinterface macro! */
* those drivers that utilize the nsd_ptcp to do some of their work.
*/
ENDinterface(nsd)
-#define nsdCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */
+#define nsdCURR_IF_VERSION 2 /* increment whenever you change the interface structure! */
/* interface for the select call */
BEGINinterface(nsdsel) /* name must also be changed in ENDinterface macro! */