summaryrefslogtreecommitdiffstats
path: root/runtime/nsd_gtls.c
Commit message (Collapse)AuthorAgeFilesLines
* bugfix (kind of): check if TCP connection is still alive if using TLSJonathan Bond-Caron2009-11-251-1/+4
| | | | Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* going forward in moving string-handling functions to new interface...Rainer Gerhards2009-06-171-17/+17
|
* done various optimizations to the stringbuf and its usersRainer Gerhards2009-06-161-4/+4
|
* strmsrv now supports KEEPALIVE socket optionRainer Gerhards2009-06-021-0/+11
|
* some cleanupRainer Gerhards2009-04-171-0/+2
| | | | | ... mostly removal of compile-time warnings (thanks to Michael Biebl for suggesting to look after that)
* bugfix: memory leaks in gtls netstream driverRainer Gerhards2008-12-031-1/+7
|
* added interface function to nsd_gtls needed for ACL controlRainer Gerhards2008-12-011-0/+15
| | | | | | | | The legacy ACL system needs access to the remote sockaddr_storage data structure. This has been implemented for the ptcp driver and now follows for gtls. See recent commits for reason. We also moved up the version numbers in preparation of the release.
* bugfix (cosmetical): authorization was not checked when gtls handshake ↵varmojfekoj2008-07-151-1/+4
| | | | | | | | | | | | | | completed immediately. While this sounds scary, the situation can not happen in practice. We use non-blocking IO only for server-based gtls session setup. As TLS requires the exchange of multiple frames before the handshake completes, it simply is impossible to do this in one step. However, it is useful to have the code path correct even for this case - otherwise, we may run into problems if the code is changed some time later (e.g. to use blocking sockets). Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
* bugfix: machine certificate was required for client even in TLS anon modeRainer Gerhards2008-07-021-5/+21
| | | | | | Reference: http://bugzilla.adiscon.com/show_bug.cgi?id=85 The fix also slightly improves performance by not storing certificates in client sessions when there is no need to do so.
* Merge branch 'beta'Rainer Gerhards2008-07-011-1/+1
| | | | | | | | | | | | | | | Conflicts: ChangeLog conf.c doc/Makefile.am doc/manual.html omfwd.c plugins/omgssapi/omgssapi.c This was a bit hard to merge; if there are problems, they may be in the area of the new "comment in action line" code that came from the beta.
* added (internal) error codes to error messagesRainer Gerhards2008-06-271-19/+18
| | | | | Also added redirector to web description of error codes closes bug http://bugzilla.adiscon.com/show_bug.cgi?id=20
* bugfix: gtls always read only 8 bytes per recv callRainer Gerhards2008-06-251-1/+1
|
* bugfix: gtls und ptcp netstream driver communicated invalid iRetRainer Gerhards2008-06-241-3/+5
| | | | This was introduced due to recent interface change.
* improved gtls error reportingRainer Gerhards2008-06-241-1/+3
|
* added support for EGAIN while trying to receive data on gTLS sessionRainer Gerhards2008-06-241-18/+90
| | | | | | | | | This maps to bugzilla bug 83: http://bugzilla.adiscon.com/show_bug.cgi?id=83 This is the first test version, posted to user for repro of the problem. It contains code to handle the case, HOWEVER, I have not been able to test it in a scenario where a retry actually happens while receiving (I dont't get this in my environment). So I assume it is buggy and will probably not work.
* disabled compile warnings caused by third-party librariesRainer Gerhards2008-06-231-0/+2
|
* changed Rcv-Interface in tcpsrv subsystemRainer Gerhards2008-06-231-3/+9
| | | | | | It is now iRet based. This enables us to communicate more in-depth information to the upper peers. This is needed to handle the EGAIN case on rcv (not yet implemented)
* disabled in-depth GnuTLS debugging aidRainer Gerhards2008-06-231-0/+2
| | | | | | | This is a debug aid, only. Note that it may reveal sensitive information, so it should never be active in production code. Currently, this is a compile-time switch and requires code changes to (de)activate.
* bugfix: some error states were swappedRainer Gerhards2008-06-201-6/+27
| | | | | | | | ... in gnutls code, resulting in some hard too understand error messages. Also genereally improved certificate error messages a bit. Also, added GnuTLS debugging support.
* begun step-by-step guide for TLS protected syslogRainer Gerhards2008-06-181-1/+1
|
* somewhat improved plain tcp syslog reliabilityRainer Gerhards2008-06-091-0/+12
| | | | | | ...by doing a connection check before sending. Credits to Martin Schuette for providing the idea. Details are available at http://blog.gerhards.net/2008/06/reliable-plain-tcp-syslog-once-again.html
* preparing 3.19.6v3.19.6Rainer Gerhards2008-06-061-1/+1
|
* implemented wildcards inside certificate name check authenticationRainer Gerhards2008-05-271-6/+9
|
* client now provides cert even if it is not signed by one of the server's ↵Rainer Gerhards2008-05-271-9/+163
| | | | trusted CAs (gtls)
* protected gtls error string function by a mutex.Rainer Gerhards2008-05-261-1/+7
| | | | | Without it, we could have a race condition in extreme cases. This was very remote, but now can no longer happen.
* fixed fingerprint generatorRainer Gerhards2008-05-261-2/+1
| | | | fixed problem introduced earlier today
* fixed wrong cert expiration date checkRainer Gerhards2008-05-261-1/+1
|
* added certificate validity date check (gtls)Rainer Gerhards2008-05-261-10/+55
|
* added gtls name authentication based on common name (inside DN)Rainer Gerhards2008-05-261-7/+99
| | | | also changed fingerprint gtls auth mode to new format fingerprint
* added capability to auto-configure tls auth rule for client connecting to serverRainer Gerhards2008-05-261-13/+51
| | | | must match hostname in send action
* improved gtls error reportingRainer Gerhards2008-05-261-2/+11
|
* checking if client provided a cert and complain if notRainer Gerhards2008-05-231-1/+3
|
* added x509/name authentication (so far based on dnsName only)Rainer Gerhards2008-05-221-58/+137
|
* added code to pull the subjectAltName - dNSNameRainer Gerhards2008-05-211-2/+23
|
* implemented x509/certvalid "authentication"Rainer Gerhards2008-05-211-2/+271
|
* re-enabled anon mode (failed if client did not provide cert)Rainer Gerhards2008-05-211-3/+6
|
* first implementation of TLS server client authentication checkRainer Gerhards2008-05-191-18/+37
| | | | | | | The TLS server now checks the client fingerprint. This works, but is highly experimental. Needs to be refined for practice. Also: - implemented permittedPeers helper construct to store names - changed omfwd implementation to use new permittedPeers
* improved error messages and corrected fingerprint formatRainer Gerhards2008-05-191-8/+21
|
* regained netstream driver genericity; improved driversRainer Gerhards2008-05-171-3/+6
| | | | | | | | | - made action logic pass optional auth params only if they are actually configured - added new authMode and Fingerprint methods to ptcp netstream driver (keeping them once again generic) - added diagnostics messages when invalid auth modes were configured
* added first rough ability to authenticate the server against its certificateRainer Gerhards2008-05-161-3/+70
| | | | | | | | | | 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
* Merge branch 'master' into ietf-tlsRainer Gerhards2008-05-161-1/+7
|\
| * added fromhost-ip properties and some bugfixesRainer Gerhards2008-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | - bugfix: TCP input modules did incorrectly set fromhost property (always blank) - bugfix: imklog did not set fromhost property - added "fromhost-ip" property - added "RSYSLOG_DebugFormat" canned template - bugfix: hostname and fromhost were swapped when a persisted message (in queued mode) was read in
| * added TODO itemRainer Gerhards2008-05-151-1/+1
| |
| * bugfix: TLS server went into an endless loop in some situations.Rainer Gerhards2008-05-151-0/+6
| | | | | | | | Thanks to Michael Biebl for reporting the problem.
* | client provides x.509 and server prints fingerprintRainer Gerhards2008-05-151-6/+31
|/
* server's X509 cert fingerprint is obtained by client on connectRainer Gerhards2008-05-081-187/+47
|
* added a bit of doc (at least something...)Rainer Gerhards2008-05-081-1/+233
|
* bugfix: gtls netstram driver did not specify threading modelRainer Gerhards2008-05-081-3/+7
| | | | (could possibly lead to "interesting effects" ;))
* limited number of unavoidable compiler warnings when compiling with GnuTLSRainer Gerhards2008-05-071-2/+15
|
* added missing includes (noticed under SuSe Linux)Rainer Gerhards2008-05-061-0/+1
|