[Syslog-ng-commit] syslog-ng--mainline: added SSL support for tcp() destinations

Balazs Scheidler bazsi at balabit.hu
Sun Jul 9 20:50:57 CEST 2006


Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.1--patch-1>
Revision: syslog-ng--mainline--2.1--patch-1
Archive: devel at balabit.hu--other-1
Creator: Balazs Scheidler <bazsi at balabit.hu>
Date: Sun Jul  9 20:50:52 CEST 2006
Standard-date: 2006-07-09 18:50:52 GMT
New-files: src/.arch-ids/tlscontext.c.id
    src/.arch-ids/tlscontext.h.id
    src/.arch-ids/tlswrite.c.id src/.arch-ids/tlswrite.h.id
    src/tlscontext.c src/tlscontext.h src/tlswrite.c
    src/tlswrite.h
Modified-files: configure.in src/Makefile.am src/afinet.c
    src/afsocket.c src/afsocket.h src/cfg-grammar.y
    src/cfg-lex.l src/fdwrite.c src/fdwrite.h src/main.c
New-patches: devel at balabit.hu--other-1/syslog-ng--mainline--2.1--patch-1
Summary: added SSL support for tcp() destinations
Keywords: 

	* configure.in: added tests for openssl

	* src/Makefile.am: added new files

	* src/afsocket.c (afsocket_dd_set_tls_context): new function, sets
	the TLS key context to be used on the connection,
	(afsocket_dd_format_stats_name): use TLSWrite if the TLS context is
	set,

	* src/afsocket.h (AFSocketSourceDriver, AFSocketDestDriver): added
	tls_context member,

	* src/cfg-grammar.y (tls_options): new rule, parses a tls option
	block,
	(dest_afinet_tcp_option): added TLS support,

	* src/cfg-lex.l: added TLS keywords,

	* src/fdwrite.c (fd_write_write_method): renamed from fd_do_write,
	(fd_write_new): the free method is now a virtual method, added
	initialization,
	(fd_write_free_method): renamed from fd_write_free,
	(fd_write_free): the remaining of the fd_write_free code,

	* src/main.c (tls_init): new function, initialize OpenSSL

	* src/tlscontext.c, src/tlscontext.h: new files, class that
	encapsulates a TLS context,

	* src/tlswrite.c, src/tlswrite.h: new files, the TLS supporting
	version of FDWrite

Diff stats:
 configure.in      |   64 ++++++++++++++++++++++++++++++++++++++++++++----------
 src/Makefile.am   |    3 +-
 src/afinet.c      |    1 
 src/afsocket.c    |   12 +++++++++-
 src/afsocket.h    |    5 ++++
 src/cfg-grammar.y |   28 +++++++++++++++++++----
 src/cfg-lex.l     |    7 +++++
 src/fdwrite.c     |   21 ++++++++++++++---
 src/fdwrite.h     |    9 +++++--
 src/main.c        |   12 ++++++++++
 10 files changed, 137 insertions(+), 25 deletions(-)


More information about the Syslog-ng-commit mailing list