summaryrefslogtreecommitdiffstats
path: root/runtime/nsd_gtls.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-30 14:51:45 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-30 14:51:45 +0200
commitb0d63ea8f26f525bbfd177aaa6a1294b0d94f1f9 (patch)
tree8ff1fa91347b213919636eb458ec8c5989e7ac3e /runtime/nsd_gtls.h
parent055d4ffc2afc77e03a3d31720d4a0998f8c3d92c (diff)
downloadrsyslog-b0d63ea8f26f525bbfd177aaa6a1294b0d94f1f9.tar.gz
rsyslog-b0d63ea8f26f525bbfd177aaa6a1294b0d94f1f9.tar.xz
rsyslog-b0d63ea8f26f525bbfd177aaa6a1294b0d94f1f9.zip
made plain tcp syslog via TLS work on the server
... but so far only in blocking mode
Diffstat (limited to 'runtime/nsd_gtls.h')
-rw-r--r--runtime/nsd_gtls.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/nsd_gtls.h b/runtime/nsd_gtls.h
index c193f57c..492a2da1 100644
--- a/runtime/nsd_gtls.h
+++ b/runtime/nsd_gtls.h
@@ -26,6 +26,10 @@
#include "nsd.h"
+typedef enum {
+ gtlsRtry_None = 0 /**< no call needs to be retried */
+} gtlsRtryCall_t; /**< IDs of calls that needs to be retried */
+
typedef nsd_if_t nsd_gtls_if_t; /* we just *implement* this interface */
/* the nsd_gtls object */
@@ -33,8 +37,11 @@ struct nsd_gtls_s {
BEGINobjInstance; /* Data to implement generic object - MUST be the first data element! */
nsd_t *pTcp; /**< our aggregated nsd_ptcp data */
int iMode; /* 0 - plain tcp, 1 - TLS */
+ gtlsRtryCall_t rtryCall;/**< what must we retry? */
+ int bIsInitiator; /**< 0 if socket is the server end (listener), 1 if it is the initiator */
gnutls_session sess;
- int bHaveSess;
+ int bHaveSess; /* as we don't know exactly which gnutls_session values are invalid, we use this one
+ to flag whether or not we are in a session (same as -1 for a socket meaning no sess) */
};
/* interface is defined in nsd.h, we just implement it! */