diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-18 18:29:02 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-18 18:29:02 +0200 |
commit | 2069ab114e2aac9c243aff72042912cac7ef6126 (patch) | |
tree | 19bd5df7fb640b754ec6b91954d0153ed0f2eac5 /runtime/nsd.h | |
parent | 032b9c1f64691e868b14e6d271ebfc2d093b0c66 (diff) | |
download | rsyslog-2069ab114e2aac9c243aff72042912cac7ef6126.tar.gz rsyslog-2069ab114e2aac9c243aff72042912cac7ef6126.tar.xz rsyslog-2069ab114e2aac9c243aff72042912cac7ef6126.zip |
first working TLS-enabled plain TCP sender
implemented a first working version of a TLS-enabled plain TCP
sender (but, of course, the implementation is insecure as it is)
Diffstat (limited to 'runtime/nsd.h')
-rw-r--r-- | runtime/nsd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/nsd.h b/runtime/nsd.h index c8bc95d0..203a65d6 100644 --- a/runtime/nsd.h +++ b/runtime/nsd.h @@ -41,6 +41,11 @@ BEGINinterface(nsd) /* name must also be changed in ENDinterface macro! */ rsRetVal (*Rcv)(nsd_t *pThis, uchar *pRcvBuf, ssize_t *pLenBuf); rsRetVal (*Send)(nsd_t *pThis, uchar *pBuf, ssize_t *pLenBuf); rsRetVal (*Connect)(nsd_t *pThis, int family, unsigned char *port, unsigned char *host); + rsRetVal (*GetSock)(nsd_t *pThis, int *pSock); + /* GetSock() returns an error if the driver does not use plain + * OS sockets. This interface is primarily meant as an internal aid for + * 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! */ |