2003-09-17  Balazs Scheidler  <bazsi@bzorp.balabit>

	* debian/*: added a couple of packaging fixes to make it compile on potato

	* src/ssl.c: did not compile because of an undeclared variable

2003-09-16  Szalay Attila  <sasa@mochrul.balabit>

	* Bumped to version 2.0.47 age 22 (=2.0.26.22)

	* src/stream.c, src/streamline.c: Write same trace
	log. (z_enter/leave)

	* src/log.c: Bugfix. Fix class_hash lock usage. Make sure every
	class_hash usage inside a lock.

2003-07-29  Szalay Attila  <sasa@mochrul.balabit>

	* src/thread.c: We must handle thread creation failures because
	glib-2.0 does not abort in this case.

	* src/stackdump.c: Try to guess the value of ESP using a local
	variable when it is NULL in the signal context

	* src/sockaddr.c: Added an assertion to check if reference count is
	greater than zero.

	* src/poll.c: Added an assertion to check if poll reference count is
	* greater than zero.

2003-07-18  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: bumped version number to 2.0.47 age 21 (=2.0.26.21)

	* src/cap.c: removed capability related messages as cap_to_text()
	is not reentrant and those messages are annoying anyway

2003-07-11  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: bumped version number to 2.0.45 age 19 (=2.0.26.19)

	* src/listen.c: maximize the number of accepted connections in a
	single poll loop (currently 50)

2003-07-07  Szalay Attila  <sasa@mochrul.balabit>

	* src/misc.z: New functions. Implement charset verification.

2003-07-07  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: bumped version number to 2.0.44 age 18 (=2.0.26.18)

	* src/zorp/stream.h (z_stream_set_timeout): added dummy argument
	instead of timeout type, fixed the function to actually work

2003-06-25  Kishazi Daniel  <chaoron@balabit.hu>

	* configure.in: bumped version number to 2.0.43 age 17 (=2.0.26.17)

	* configure.in: check for -lcrypt after -lcrypto and -lssl (here again)
	
2003-06-24  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: bumped version number to 2.0.42 age 16 (=2.0.26.16)

	* configure.in: check for -lcrypt as openssl no longer contains crypt()

2003-06-18  Szalay Attila  <sasa@mochrul.balabit>

	* configure.in: set --disable-debug to default.

2003-06-05  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: bumped version number to 2.0.34 binary age 14

	* src/streamssl.c: report EOF for reading and an error for writing
	when the stream was previously shut down

2003-06-04  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: bumped version number to 2.0.38, binary age 12

2003-06-02  Szalay Attila  <sasa@mochrul.balabit>

	* src/random.c: Leakfix random implementation.

	* src/poll.c: Bugfix. Check if self->wakeup not NULL

	* src/connect.c: Bugfix. Check if self->watch not NULL

2003-05-30  Kishazi Daniel  <chaoron@balabit.hu>

	* configure.in: use CFLAGS environment variable even if debug
	mode turned on
	
2003-05-28  Szalay Attila  <sasa@mochrul.balabit>

	* Implement z_crypt

	* Remove z_data_dump from stream.c

2003-05-27  Szalay Attila  <sasa@mochrul.balabit>

	* Flush buffers from z_stream_buf when close.

	* Log ebp and esp in stackdump too.

	* Fix a bug in stackdump.

	* lib/socketsource.c: Bugfix. In windows version keep accepting wvent because WSAEnumNetworkEvents drop it.

	* lib/sockaddr.c (z_sockaddr_inet_new): Check if given IP address correct.

	* Do some casting to eliminate compile warnings.

	* Move process starting releated functions into process.c

2003-04-18  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: bumped version to 2.0.31 age 5

	* src/connect.c: fixed reference leak which also caused an fdleak

2003-04-14  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/connect.c (z_io_connect_start_block): fixed a timeout issue
	(used 30 msec instead of 30sec)

2003-01-02  Balazs Scheidler  <bazsi@balabit.balabit>

	* added a couple of COPYRIGHT headers

2002-12-30  Szalay Attila  <sasa@balabit.hu>

	* src/streambuf.c (_ZStreamBuf): Bugfix. Create new variable,
	buffer_lock, to lock buffer insert and remove.

2002-12-16  Szalay Attila  <sasa@balabit.hu>

	* src/streamline.c (z_stream_line_read_callback): First part of
	stream separation.

2002-12-12  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/source.c (ZTimeoutSource): interpret time argument in
	milliseconds (it is used as milliseconds and was interpreted in
	seconds)

	* src/streamssl.c (z_stream_ssl_read_method,
	z_stream_ssl_write_method): log SSL error reasons

2002-12-11  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/connect.c: change all z_sockaddr_format buffers to have
	length of MAX_SOCKADDR_STRING

	* src/zorp/sockaddr.h: MAX_SOCKADDR_STRING new define for
	z_sockaddr_format() string lengths

2002-12-09  Szalay Attila  <sasa@balabit.hu>

	* src/stream.c (z_stream_ref): Locking when changing stream
	reference.

2002-12-06  Szalay Attila  <sasa@balabit.hu>

	* src/zorp/log.h: Tracing symbols doesn't depenq on libzorpll
	compile options.

2002-12-03  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: added --enable-threadpool parameter, bumped
	version number to 2.0.12 age 7

	* src/misc.c (z_zorplib_version_info): added threadpool information

	* src/ssl.c: added a thread stop function which calls
	ERR_remove_state(), so our thread implementation is independent
	from SSL _AND_ thread specific error states are freed.

	* src/thread.c: readded threadpool implementation, added
	start_callbacks and stop_callbacks which are functions called
	right before a thread starts, and right after it exits, this can
	serve as a basis for removing SSL states, and to gather the number
	of currently running threads for SZIG,
	(z_thread_new): now it returns gboolean instead of GThread *,
	joinable threads should be implemented differently. As nothing
	else uses this interface, I don't change binary compatibility

	* configure.in: bumped version number to 2.0.11 age 6

	* src/misc.c (z_zorplib_version_info): added stackdump information

	* src/stackdump.c, src/zorp/stackdump.h: added stackdump handling
	to a single location, now includes portions of the stack (64*4
	bytes), and also tries to resolve symbols

	* configure.in: bumped version number to 2.0.10 age 5

	* src/connect.c: fixed the race added while correcting connection
	cancellation, using a source_id for determining wheather the
	operation was cancelled contains an inherent race, as by the time
	g_source_attach returns, the callback might already have been
	called

	* configure.in: bumped version number to 2.0.9 age 4

	* src/ssl.c: fixed a couple of BIO bugs, in general
	G_IO_STATUS_EOF was not handled, and G_IO_STATUS_ERROR was
	sometimes returned as success

	* src/listen.c: use self->lock to protect _cancel and _accepted
	race, no user callbacks should be called if the connection was
	cancelled (now it is guaranteed that no user callbacks are called
	when _cancel had been called)

	* src/connect.c: use self->lock to protect _cancel and _connected
	race, no user callbacks should be called if the connection was
	cancelled (now it is guaranteed that no user callbacks are called
	when _cancel had been called)

2002-11-26  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/source.c: added timeout source

2002-11-25  Kishazi Daniel  <chaoron@balabit.hu>

	* src/source.c (z_threshold_source_set_threshold): new function
	to set a threshold source

2002-11-25  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/stream.c: removed poll timeout support completely, as the
	whole idea was broken, a new source will be defined instead

	* src/source.c (z_threshold_source_new): new function to
	initialize a threshold source

2002-11-25  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: bumped version number to 2.0.4, binary age 3

	* src/source.c: fixed a problem in stream timeouts (poll_timeout
	was checked in check & dispatch and poll_timeout_target should
	have been)

	* src/streamfd.c: report errors using %m instead of using GError,
	GError transition is planned for 2.1

2002-11-25  Szalay Attila  <sasa@balabit.hu>

	* src/streamline.c (z_stream_line_read_callback):
	Bugfix. Sctricting the states, when calling user callback.

2002-11-21  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/streamfd.c: removed poll timeout implementation

	* src/stream.c: poll timeout is now implemented in StreamSource
	instead of in ZStreamFD, so poll timeout can be specified to any
	of the streams

	* src/stream.c, src/streamfd.c, src/streambuf.c, src/streamssl.c:
	changed _ctrl message handling

2002-11-18  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: changed to 4 digit version number, currently 2.0.0.0
	fixes bug id 11

2002-11-20  Szalay Attila  <sasa@balabit.hu>

	* src/poll.c (z_poll_iter_timeout): Return from
	z_poll_inter_timeout when EINTR occured.

2002-11-18  Szalay Attila  <sasa@balabit.hu>

	* Move core.session here from zorp-core.

2002-11-15  Szalay Attila  <sasa@balabit.hu>

	* src/streamline.c (z_stream_line_watch_check): Rewrite source
	check conditions. (Doesn't try to call callback, when buffer is
	full. It's not guessable in every state. It will called when
	next character coming from network.)

2002-11-14  Szalay Attila  <sasa@balabit.hu>

	* src/streamline.c (z_stream_line_watch_check): Bugfix. Check if
	self->pos is at end of buffer, becouse when this occur, there are
	no full line.

2002-11-13  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/misc.c (z_zorplib_version_info): return a string describing
	zorplibll configure options, used by zorp to display its version
	information

	* configure.in: prefixed all ENABLE_ macros with ZORPLIB_, thus
	ENABLE_MEMTRACE became ZORPLIB_ENABLE_MEMTRACE

	* src/zorp/zorplib.h: removed CORE_POLICY macro, as it was moved
	to zorp-core

2002-11-12  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: bumped version number to 1.5.53, binary age 0

	* lib/sockaddr.c: added a new parameter wildcard_clone to
	z_sockaddr_clone functions, it is used to generate an address
	suitable for binding with random port number selection (this
	avoids having to explicitly reference SockAddrInet attributes)

2002-11-11  Szalay Attila  <sasa@balabit.hu>

	* src/log.c (z_log_source_new): Unset channel encoding. Close: #242

2002-11-11  Balazs Scheidler  <bazsi@balabit.balabit>

	* lib/zorp/log.h (z_log): added explicit '(' and ')' to ensure
	precedence

	* lib/streamfd.c: interpret poll_timeout in milliseconds instead
	of in seconds

2002-11-08  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/streamssl.c (z_stream_ssl_read_method &
	z_stream_ssl_write_method): have a separate switch case for
	SSL_ERROR_SYSCALL, and handle the case where errno is 0, as it can be
	caused by server EOF, so take it as an EOF

2002-11-08  Kishazi Daniel  <chaoron@balabit.hu>

	* configure.in: bumped version number to 1.5.51 binary age 2
	
	* src/parser.c (z_parser_check): new function
	
	* src/parser.h: change ZParserTag structure

2002-11-06  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: bumped version number to 1.5.50 binary age 1

	* src/zorp/streamfd.h (z_stream_set_nonblock): moved to stream.h

	* src/zorp/stream.h (z_stream_set_nonblock): moved here

2002-11-05  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/sockaddr.c (z_inet_aton): readded #ifdef HAVE_INET_ATON, and
	alternative implementation (it was removed on Windows)

	* src/log.c: cast the result of getpid() to int as it caused
	warning on Solaris,
	cast the argument of isalnum() from char to guchar as isalnum() is
	implemented as an array lookup on solaris

2002-10-28  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: bumped version number to 1.5.49 binary age 0

	* src/socket.c (z_getdestname): new function, implementing
	'transparent get original destination)

	* src/socket.h (z_ll_getdestname): new function, calls the
	function pointer socket_funcs->getdestname

	* configure.in: bumped version number to 1.5.48 binary age 4

2002-10-28  Szalay Attila  <sasa@balabit.hu>

	* src/zorp/stream.h: Move SET_NONBLLOCK ctrl function to stream.h
	from streamfd.h

2002-10-25  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/ssl.c: initialize ZSSLSession->ref_cnt to 1

2002-10-24  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/ssl.c (ZSSLSession): changed ZSSLSession to be reference counted,
	(z_ssl_session_ref, z_ssl_session_unref): new functions,
	(z_ssl_session_destroy): made a static private function

2002-10-24  Szalay Attila  <sasa@balabit.hu>

	* src/streamssl.c (z_stream_ssl_read_method): Do ssl renegotiation
	transparent if needed.

2002-10-22  Szalay Attila  <sasa@balabit.hu>

	* src/streambuf.c (z_stream_buf_write_callback): Bugfix. Return
	TRUE default.

2002-10-10  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/poll.c (z_poll_iterm_timeout): call
	g_main_context_dispatch() even in timeout, otherwise sources which
	do not really poll have no chance to dispatch their events

2002-10-10  Szalay Attila  <sasa@balabit.hu>

	* Bumped to version 1.5.43 (AGE: 0)

	* configure.in: Remove enable-packet-trace.

	* src/streamssl.c: Use new callback function

	* src/streamline.c: Use new callback function

	* src/stream.h New callback function ctrl

2002-10-09  Szalay Attila  <sasa@balabit.hu>

	* src/stream.c (z_stream_source_finalize): use self->stream
	instead of uninitialized stream

2002-10-09  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/memtrace.c: increased temporary heap to 64k, implicitly
	initialize the block hash on every malloc call, support realloc()
	during initialization, verified that static programs do not work
	with memtrace

	* src/sockaddr.c (z_sockaddr_clone): new function, implemented as
	a function pointer in sa_funcs,
	(z_sockaddr_new_copy): obsolete function, removed

	* src/poll.c: destroy the wakeup source

	* src/listen.c: changes similar to what connect.c had, support
	GDestroyNotify, added z_io_listen_cancel function

	* src/connect.c: removed the use of free queues, as they are not
	needed anymore

2002-10-07  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: bumped version number to 1.5.42

	* src/sockaddr.c: changed z_sockaddr_inet_get_port to support
	ZSockAddrInetRange and return 0 as port number in this case,
	(z_sockaddr_inet_check): new function to check whether a ZSockAddr
	is compatible with ZSockAddrInet

	* src/connect.c: added the possibility to assign a destroy notify
	function to user_data,
	(ZIOConnect): to avoid circular references the GSource is not
	referenced by pointer, instead it is referenced by the id
	(NOTE: glib does not handle the case when ids wrap around!, though
	it's a 32 bit unsigned number)

	* src/memtrace.c: added the define REALLY_TRACE_BT, which if
	defined causes the addblock/delblock messages to include a
	backtrace (makes zorp-memtrace.log huge!!)

2002-10-02  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/zorp/log.h: added new macros z_session_enter,
	z_session_leave, z_session_cp

	* src/connect.c: changed the way ZIOConnect references
	itself. Earlier it was assumed that the caller 'knows' when to
	drop reference. (this caused quite a lot of problems in
	pyconnect.c).  Now connect references itself as long as its source
	is registered in the main loop. Thus it is not possible any more
	to cancel the connection by calling z_io_connect_unref. To cancel
	a connection a new function called z_io_connect_cancel was
	introduced, and the caller is free to free ZIOConnect anytime it
	wishes to. (it can also drop the reference immediately after
	initialization)

	* src/listen.c: changed refcounting similar to ZIOConnect

2002-10-02  Szalay Attila  <sasa@balabit.hu>

	* Bumped to version 1.5.41

2002-10-01  Szalay Attila  <sasa@balabit.hu>

	* src/streamline.c (z_stream_line_read_callback): Bugfix. Call
	readline callbacks, when error occured.

	* src/streamssl.c (z_stream_ssl_watch_check): Set streamssl source
	to work, because ssl may buffer readed data.

2002-09-30  Szalay Attila  <sasa@balabit.hu>

	* src/streamline.c (z_stream_line_read_method): Bugfix. Move to
	first position, if no data in buffer.

2002-09-27  Szalay Attila  <sasa@balabit.hu>

	* Bumped to version 1.5.40. Set Age to 0.

	* src/memtrace.c (z_malloc): Remove * before raw_ptr and user_ptr.

	* streambuf.c: streambuf set enable_write itself.

2002-09-25  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/memtrace.c (z_free, z_realloc): first check if the block
	exists, and then check canaries

	* src/zorp/log.h: changed z_enter/z_leave messages (made them
        shorter)

2002-09-23  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/memtrace.c: support temporary heap on initial malloc() calls
	(bugzilla id 1 & PR972)

2002-09-20  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/streamfd.c: readded z_stream_set_nonblock (FIXME: needs to
	be changed so every stream implementation has a chance to
	implement non-blocking I/O)

	* src/streamfd.c: added support for poll_timeout

	* src/stream.c (z_stream_set_timeout_method): set s->poll_timeout
	if Z_STREAM_TIMEOUT_POLL is specified

2002-09-18  Balazs Scheidler  <bazsi@balabit.balabit>

	* stream.c: moved z_stream_set_cond_method and
	z_stream_set_callback_method here as they can be used by any
	ZStream implementation,
	(z_stream_set_timeout_method): new function to set poll & block
	timeouts for streams,
	(z_stream_set_timeout_forward): new function, forwards timeout set
	requests to stream->parent

	* streambuf.c: changed read, write & pri callback references to
	read_cb, write_cb and pri_cb,
	(z_stream_buf_set_cond_method): use z_stream_set_cond_method to
	perform default actions of z_stream_set_cond,
	(z_stream_buf_set_callback_method): -"-

	* streamfd.c: -"-

	* streamssl.c: -"-

	* streamline.c: -"-, don't check readability if the user doesn't
	want reading (check self->want_read)

	* stream.h: added set_timeout callback

	* ------

	* src/Makefile.am: added streamfd.c

	* src/poll.c (z_poll_stream_unref): call z_stream_detach_source
	instead of z_source_stream_remove
	(renamed function),
	(z_poll_add_stream): call z_stream_attach_source instead of
	z_source_stream_new (renamed function)

	* src/stream.c: split into stream.c & streamfd.c, stream.c
	contains implementation independent functions only, streamfd
	implements the ZStream interface for unix fds,
	(ZStreamSource): doesn't free associated GPollFD list when the
	object is destroyed, the only place which was relying on this
	behaviour has been changed

	* src/streamfd.c: renamed ZStreamBase to ZStreamFD, now uses
	ZStreamFuncs & don't touch source->poll_fds directly, don't rely
	on ZStreamSource to free the registered GPollFD struct, use an
	inline struct in ZStreamFD instead (no need to free it)

	* src/streambuf.c: ported to ZStreamFuncs

	* src/streamline.c: ported to ZStreamFuncs

	* src/streamssl.c: ported to ZStreamFuncs

	* src/stream.h: merged ZIOFuncs and function pointers in ZStream
	into a single ZStreamFuncs structure, cleaned up naming
	(z_source_stream_new & z_source_stream_remove changed to
	z_stream_source_attach & z_stream_source_detach)

2002-09-16  Szalay Attila  <sasa@balabit.hu>

	* Bumped to version 1.5.36

	* src/streamline.c, src/streambuf.c, src/streamssl.c: Bugfix.
	Put parent to super.

2002-09-12  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/stream.c (z_stream_init): new function to initialize
	common attributes of a stream

	* src/streamssl.c, src/streambuf.c, src/streamline.c: use the new
	z_stream_init function instead of initializing common attributes
	directly

2002-09-12  Szalay Attila  <sasa@balabit.hu>

	* Remove log facility define from c files.

2002-09-10  Szalay Attila  <sasa@balabit.hu>

	* src/memtrace.c (z_mem_trace_init): New parameter, set the name
	of memtrace file

	* src/random.c: Handle if genrated random number bigger than max.

	* src/memtrace.c (z_mem_trace_dump): Check canaries in every
	pointer

	* src/memtrace.c (z_mem_trace_check_canaries): Log if canay
	broken.

	* Set the correct log facility and level in all log message

2002-09-10  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/stream.c, src/streambuf.c, src/streamline.c, src/streamssl.c: 
	applied to the changed dispatch interface

	* src/zorp/stream.h: killed the last two arguments of the dispatch
	callback (callback and user_data) as we don't use the callbacks
	stored in our source, but have our own function pointers (in
	ZStream)

	* src/stream.c (z_stream_init): new function to initialize the
	base fields in a ZStream, this function is to be called from
	descendant ZStream implementations

	* src/zorp/stream.h: moved a couple of member fields from
	ZStreamBase to the general ZStream structure (time_open,
	bytes_recvd and bytes_sent) as those are needed in descendants as
	well

2002-09-09  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/stream.c: the open duration of a stream is calculated
	using difftime() instead of simply substracting the two numbers

	* configure.in: bumped version number to 1.5.33 (age 0)

	* src/zorp/stream.h (ZStreamFuncs): killed get_type method, use a
	simple member of ZStream instead, z_stream_get_type is converted
	to an inline function, this change has been applied to all stream
	implementations

2002-09-09  Szalay Attila  <sasa@balabit.hu>

	* src/random.c (z_random_sequence_get_bounded): Bugfix. Use
	g_static_private correctly.

2002-09-05  Szalay Attila  <sasa@balabit.hu>

	* Bumped to version 1.5.33
	* src/log.c (z_log_init): Bugfix. If ZLF_THREAD is not set,
	doesn't start new thread.

2002-09-04  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: integrated win32 support

	* src/error.c, src/zorp/error.h: platform independent error
	support, it works for sockets on Win32 as well on Unix

	* src/connect.c: use error functions from error.c, use
	Z_SOCKEVENT_* constants instead of G_IO_* directly

	* src/listen.c: use the error functions from error.c, use
	Z_SOCKEVENT_* constants instead of G_IO_* directly

	* src/io.c: limited support for Win32 sockets

	* src/log.c: we don't use logging on Win32, therefore most of this
	code is commented out on that platform

	* src/misc.c (z_process_daemonize): win32 version

	* src/parser.c: include <zorp/parser.h> instead of "parser.h"

	* src/poll.c: use the new error functions, limited win32 support

	* src/sockaddr.c: use the new error functions, limited win32 support

	* src/socket.c: use the new error functions, limited win32 support
	(new function z_socket_init is to be called on startup for
	programs which support win32)

	* src/socketsource.c: win32 support

	* src/ssl.c: don't use dirent functions directly, use the portable
	g_dir_* functions from glib instead

	* src/stream.c: win32 support, NOTE: there are two win32
	implementations for z_stream_wait_fd, why?

	* src/stream.h (ZStream): added watch_finalize function pointer
	(needed on Win32)

2002-08-30  Szalay Attila  <sasa@balabit.hu>

	* Bumped to version 1.5.31

	* src/streambuf.c, src/streamline.c: Stacked streams now try to
	search for their instance in the stream chain.

2002-08-30  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/memtrace.c: updated memtrace implementation to use before
	and after canaries, the backtrace is stored in a gpointer array,
	and the log output includes a '0x' prefix (for Dani :)

2002-08-28  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/log.c: fixed yet another bug in logging code, unified z_log_init
	& log_log_init_thread, changed z_log_init parameters

2002-08-27  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/log.c: fixed a couple of bugs in Sasa's new logthreading code

	* configure.in: Bumped version number to 1.5.29

	* src/streamline.c: changed z_stream_line_set_cond_method to
	invoke z_stream_set_cond_method instead of duplicating work
	here. NOTE: it might be possible to the same change in every
	ZStream implementation

	* src/stream.c: published two functions z_stream_set_cond_method &
	z_stream_set_callback_method as they are useful for other stream
	implementations as well

2002-08-23  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/zorp/registry.h: changed registry constants to reflect
	changes in Zorp (ZR_SPROXY is renamed back to ZR_PROXY, ZR_DPROXY
	was removed, and ZR_DTRACK is renamed to ZR_CONNTRACK)

2002-08-21  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/log.c, src/zorp/log.h: use thread private variable to fetch
	current session id and use it if none is specified

2002-08-21  Szalay Attila  <sasa@balabit.hu>

	* Bumped to version 1.5.26
	* Implement modifications for new UDP Core.

2002-08-08  Szalay Attila  <sasa@balabit.hu>

	* Bumped to version 1.5.25

	* Rewrite random function.

2002-07-31  Szalay Attila  <sasa@balabit.hu>

	* src/connect.c (z_io_connect_start): Bugfix. Test to self->local
	in log message. (May be NULL)

2002-07-31  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: bumped version number to 1.5.24, binary age 5

	* src/socketsource.c: implemented self->suspended,
	z_socket_source_suspend and z_socket_source_resume

	* src/connect.c, src/listen.c: self->watch became a GSource *
	instead of guint, because source lookup by id is slow

2002-07-29  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/connect.c, src/listen.c: implemented timeout possibility

	* src/socketsource.c, src/zorp/socketsource.h: moved ZSource out
	of source.c, and renamed to ZSocketSource, implemented timeout
	possibility

2002-07-26  Balazs Scheidler  <bazsi@balabit.balabit>

	* lib/ssl.c: if verify_mode == SSL_VERIFY_NONE then do not verify
	certificate (makes a lot of junk in log output)

2002-07-24  Szalay Attila  <sasa@balabit.hu>

	* src/memtrace.c: New entry point z_memtrace_init_file.

2002-07-12  Szalay Attila  <sasa@balabit.hu>

	* New flag. ENABLE_HEAP_TRACE, to detect off-by-one bugs and heap
	corruptions.

2002-07-01  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/socket.c (z_accept): handle EAGAIN by returning G_IO_STATUS_AGAIN

2002-06-26  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/listen.c: forward ported multi accept feature (accept as
	many connections at once as possible)

	* configure.in: bumped version number to 1.5.19 binary age 0

	* src/stream.c, src/streamline.c, src/streamssl.c: renamed
	z_stream_set_way to z_stream_set_cond

2002-06-25  Szalay Attila  <sasa@balabit.hu>

	* src/log.c (z_fetch_stderr): Bugfix. Remove stderr from poll if
	closed.

2002-06-13  Szalay Attila  <sasa@balabit.hu>

	* Bugfix: Close random string with 0. (chaoron)

2002-06-12  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/connect.c: added an error message when z_io_connect_start is
	called twice

	* src/stream.c (z_stream_shutdown_method): handle the case when errno
	is set to EINTR initially and is not touched by the successful
	shutdown call

2002-06-10  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: version bumped to 1.5.16, binary age 1

	* src/poll.c: do not ref self->context twice4

	* configure.in: version bumped to 1.5.15, binary age 0

	* lib/connect.c: added a new debug message about connection initiation

2002-06-07  Balazs Scheidler  <bazsi@balabit.balabit>

	* lib/socket.c: reorganized for transparent proxying

2002-06-07  Szalay Attila  <sasa@balabit.hu>

	* poll.c: Bugfix. Free pollfd pointer vector.

2002-06-02  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: version bumped to 1.5.14, binary age 1

	* src/listen.c: change listen() to z_socket_listen()

2002-05-30  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/sockaddr.c: moved z_bind, z_accept and z_connect into socket.c

	* src/socket.c, src/zorp/socket.h: new files

	* src/listen.c, src/connect.c: changed to use ZSocket internally
	so Zorp can hook into socket related functions and provide
	transparency, changed self->sock to ZSocket, self->sock was
	renamed to self->poll and instead of allocating GPollFD
	dynamically, include it in the structure

	* src/Makefile.am: socket.c added

2002-05-24  Balazs Scheidler  <bazsi@balabit.balabit>

	* configure.in: cleaned up (hope it doesn't break anything)

	* src/sysdep.c: removed, and moved to zorp-core

2002-05-16  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/thread.c: remove SSL error state when a thread exits

2002-05-10  Szalay Attila  <sasa@balabit.hu>

	* src/source.c: New source, z_threshold_source

2002-05-07  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/log.c: added more robust reopening of log socket (fixes
	woody logging problems)
	
2002-04-25  Balazs Scheidler  <bazsi@balabit.balabit>

	* src/misc.c: added an implementation for strlcpy if one is not present

	* configure.in: added check for strlcpy

2002-04-24  Szalay Attila  <sasa@balabit.hu>

	* Rewrite poll to unref sources when quit.

2002-04-05  Kishazi Daniel  <chaoron@balabit.hu>

	* src/misc: New functions z_random_sequence_get and
	z_random_sequence_get_bounded. 

2002-04-04  Kishazi Daniel  <chaoron@balabit.hu>

	* src/zorp/streamline.h: Added flag ZRL_PARTIAL_READ

	* src/streamline.c (z_stream_line_watch_prepare): Handling ZRL_PARTIAL_READ flag.
	(z_stream_line_watch_check):  Handling ZRL_PARTIAL_READ flag.
	
	* ChangeLog: some typos corrected and a false entry removed.

2002-04-02  Szalay Attila  <sasa@balabit.hu>

	* src/stream.c (z_stream_read_method): Bugfix: Don't try to dump
	readed data, if read failed.
	(z_stream_write_method): Same for writted data.

	* src/poll.c (_ZPollSource): Enhance z_poll_wakeup with a
	source. (Wakeup poll, even if not in poll _yet_.

2002-03-29  Szalay Attila  <sasa@balabit.hu>

	* src/log.c (z_logv): Normal messages logging with INFO level.

2002-03-12  Szalay Attila  <sasa@balabit.hu>

	* src/streamline.c (z_stream_line_unget_line): New
	function. Used mainly in http proxy.

2002-03-11  Szalay Attila  <sasa@balabit.hu>

	* New function: z_poll_get_context

	* API: API is now semistable.

2001-10-24  Kishazi Daniel  <chaoron@balabit.hu>

	* Upgrade: use GLib 1.3.9 except in io.[ch] and giossl.[ch]
