runtime.git
8 years agoMac OS X >= 10.7 support master
Pekka Riikonen [Fri, 22 Jun 2012 19:52:12 +0000 (22:52 +0300)]
Mac OS X >= 10.7 support

Add support for compiling on Mac OS X 10.7 and newer.  Summary of changes:

 - Remove config.guess and config.sub and let the autodist to copy proper
   versions from the system.

 - Add support for autoconf 2.68 and newer.

12 years agoAdded SILC CPUID API
Pekka Riikonen [Sat, 1 Nov 2008 09:29:52 +0000 (11:29 +0200)]
Added SILC CPUID API

The API can be used to determine the features of the x86 and x86-64 CPUs
on the fly.

12 years agoScheduler: made scheduled signals thread specific
Pekka Riikonen [Wed, 1 Oct 2008 17:21:53 +0000 (20:21 +0300)]
Scheduler: made scheduled signals thread specific

Previous implemenation used global structure to hold scheduled signal.
If some other thread created new scheduler it reset all the signals,
possibly unscheduling signals that should have been called.  Now they
are thread specific.

12 years agoRenamed stacktrace to memtrace
Pekka Riikonen [Wed, 1 Oct 2008 09:27:49 +0000 (12:27 +0300)]
Renamed stacktrace to memtrace

Also rewrote the internals to use SilcTree for tracking allocations for
increased performance when there are tens of thousands of allocations.
Changed AVL tree to not do any allocations in debug version.

12 years agoAdded protected memory allocation to stacktrace
Pekka Riikonen [Sat, 27 Sep 2008 17:46:15 +0000 (20:46 +0300)]
Added protected memory allocation to stacktrace

If SILC_MALLOC_PROTECT environment variable is set the program will
abort whenever memory is accessed beyond its boundaries.

12 years agoFixed silc_buffer_stdout compilation warning. 1.2.beta5
Pekka Riikonen [Mon, 22 Sep 2008 05:05:56 +0000 (08:05 +0300)]
Fixed silc_buffer_stdout compilation warning.

12 years agoFixed missing HTTP server headers.
Pekka Riikonen [Mon, 22 Sep 2008 04:48:15 +0000 (07:48 +0300)]
Fixed missing HTTP server headers.

12 years agosilcruntime.h: include stdarg.h by default
Pekka Riikonen [Sun, 21 Sep 2008 12:32:29 +0000 (15:32 +0300)]
silcruntime.h: include stdarg.h by default

12 years agoSilcRegex: Fixed silc_regex to return correct value for optional args
Pekka Riikonen [Sun, 21 Sep 2008 12:32:04 +0000 (15:32 +0300)]
SilcRegex: Fixed silc_regex to return correct value for optional args

In grouped expressions, optional, non-matched arguments didn't have their
value set to NULL as documented.  Set all arguments by default to NULL.

12 years agoSilcTree: Replace SilcTreeCompare with SilcCompare
Pekka Riikonen [Sun, 21 Sep 2008 12:28:20 +0000 (15:28 +0300)]
SilcTree: Replace SilcTreeCompare with SilcCompare

Added also new internal, undocumented, macro API for defining all kinds
of trees.

12 years agoSilcList: Added silc_list_find
Pekka Riikonen [Sun, 21 Sep 2008 12:26:06 +0000 (15:26 +0300)]
SilcList: Added silc_list_find

12 years agoTypes: Added SilcCompare generic comparison function
Pekka Riikonen [Sun, 21 Sep 2008 12:25:23 +0000 (15:25 +0300)]
Types: Added SilcCompare generic comparison function

The SilcCompare can be used in various comparison functions.  Returns
SilcCompareValue.

12 years agoAdded SILC Tree API, a generic binary search tree interface
Pekka Riikonen [Thu, 3 Jul 2008 12:37:38 +0000 (15:37 +0300)]
Added SILC Tree API, a generic binary search tree interface

So far it supports only AVL tree but support for other types of trees
can be added easily.

12 years agoAdded SILC_MAX and SILC_MIN macros
Pekka Riikonen [Thu, 3 Jul 2008 12:35:21 +0000 (15:35 +0300)]
Added SILC_MAX and SILC_MIN macros

12 years agoDocumentation updates 1.2.beta4
Pekka Riikonen [Sat, 28 Jun 2008 14:19:12 +0000 (17:19 +0300)]
Documentation updates

12 years agoFixed possible crash in silc_parse_userfqdn
Pekka Riikonen [Sat, 28 Jun 2008 14:06:36 +0000 (17:06 +0300)]
Fixed possible crash in silc_parse_userfqdn

12 years agoAdded SilcFloat32 and SilcFloat64, 32-bit and 64-bit floating point types
Pekka Riikonen [Sat, 28 Jun 2008 13:59:24 +0000 (16:59 +0300)]
Added SilcFloat32 and SilcFloat64, 32-bit and 64-bit floating point types

12 years agoAdded silc_list_sort, sorts SilcList using Gnome Sort algorithm
Pekka Riikonen [Sat, 28 Jun 2008 13:57:45 +0000 (16:57 +0300)]
Added silc_list_sort, sorts SilcList using Gnome Sort algorithm

12 years agoAdded SilcLocalNetSecurity flags for Local Net Stream Listener.
Pekka Riikonen [Mon, 23 Jun 2008 16:57:24 +0000 (19:57 +0300)]
Added SilcLocalNetSecurity flags for Local Net Stream Listener.

12 years agoAdded SILC Local Network Stream API
Pekka Riikonen [Sun, 22 Jun 2008 19:57:19 +0000 (22:57 +0300)]
Added SILC Local Network Stream API

Allows simple interprocess communication (IPC) style communication
between processes in local machine.  The implementation uses TCP socket
connection in the local machine.

12 years agoAccept silc_file_stat and silc_file_fstat with the stat struct as NULL
Pekka Riikonen [Sun, 22 Jun 2008 19:54:43 +0000 (22:54 +0300)]
Accept silc_file_stat and silc_file_fstat with the stat struct as NULL

12 years agoAdded SILC XML API
Pekka Riikonen [Sat, 21 Jun 2008 12:08:54 +0000 (15:08 +0300)]
Added SILC XML API

The SILC XML API provides (or will provide) a simple stream based
XML parsing interface.  It is wrapper to Expat XML library.

Added --with-expat configuration option too in case the automatic
detection of expat doesn't find it in the system.

12 years agoAdded silc_errno_set_location and silc_errno_location
Pekka Riikonen [Sat, 21 Jun 2008 12:06:08 +0000 (15:06 +0300)]
Added silc_errno_set_location and silc_errno_location

They can be used to set and retrieve the location of error in a
file.

12 years agoAdded SILC Buffer Stream API
Pekka Riikonen [Tue, 17 Jun 2008 15:34:33 +0000 (18:34 +0300)]
Added SILC Buffer Stream API

Buffer stream interface to send and receive buffers.  The benefit of this
interface is that the receiver need not parse buffers from the received
data but each buffer sent is delivered separately to the receiver
callback, even if multiple buffers were received at the same time.  The
length of the buffer is delivered with the data.  The buffer data follows
a 32-bit length field in the stream.

13 years agoAdded SILC HTTP Server API
Pekka Riikonen [Tue, 10 Jun 2008 05:38:14 +0000 (08:38 +0300)]
Added SILC HTTP Server API

Provides simple HTTP server and HTTP PHP translator with simple API.

13 years agoSRT documentation and web page updates
Pekka Riikonen [Tue, 10 Jun 2008 05:29:39 +0000 (08:29 +0300)]
SRT documentation and web page updates

13 years agoMerge branch 'silc.1.1.branch' of silc repo
Pekka Riikonen [Mon, 9 Jun 2008 13:50:02 +0000 (16:50 +0300)]
Merge branch 'silc.1.1.branch' of silc repo

Conflicts:

CHANGES
Makefile.ad
Makefile.defines_int.in
README.PLUGIN
TODO
apps/Makefile.ad
apps/autodist/CHANGES
apps/autodist/autodist.in
apps/autodist/doc/autodist.1.in
apps/autodist/doc/autodist.texi
apps/irssi/Makefile.am
apps/irssi/configure.ad
apps/irssi/configure.in
apps/irssi/docs/Makefile.am
apps/irssi/docs/help/Makefile.am.gen
apps/irssi/docs/help/in/cmode.in
apps/irssi/docs/help/in/cumode.in
apps/irssi/docs/help/in/key.in
apps/irssi/scripts/Makefile.am
apps/irssi/scripts/examples/Makefile.am
apps/irssi/src/Makefile.am
apps/irssi/src/core/Makefile.am
apps/irssi/src/core/modules-load.c
apps/irssi/src/fe-common/silc/Makefile.am
apps/irssi/src/fe-common/silc/fe-common-silc.c
apps/irssi/src/fe-common/silc/fe-silc-messages.c
apps/irssi/src/fe-common/silc/module-formats.c
apps/irssi/src/fe-text/Makefile.am
apps/irssi/src/perl/Makefile.am
apps/irssi/src/silc/core/Makefile.am
apps/irssi/src/silc/core/client_ops.c
apps/irssi/src/silc/core/clientutil.c
apps/irssi/src/silc/core/silc-core.c
apps/irssi/src/silc/core/silc-servers.c
apps/silcd/Makefile.am
apps/silcd/command.c
apps/silcd/command_reply.c
apps/silcd/idlist.c
apps/silcd/idlist.h
apps/silcd/packet_receive.c
apps/silcd/packet_send.c
apps/silcd/server.c
apps/silcd/server.h
apps/silcd/server_backup.c
apps/silcd/server_http.c
apps/silcd/server_internal.h
apps/silcd/server_query.c
apps/silcd/server_query.h
apps/silcd/server_util.c
apps/silcd/server_util.h
apps/silcd/serverconfig.c
apps/silcd/serverconfig.h
apps/silcd/serverid.c
apps/silcd/silcd.c
configure.ad
distdir/autodist
distdir/client
distdir/common
distdir/default
distdir/post-dist
distdir/pre-dist-client
distdir/pre-dist-toolkit
distdir/server
distdir/toolkit
doc/Makefile.ad
doc/example_silcd.conf.in
doc/examples/silcd.prv
doc/examples/silcd.pub
doc/silcalgs.conf
doc/silcd.conf.yo
includes/silc.h.in
includes/silcversion.h.in
lib/Makefile.ad
lib/configure.ad
lib/contrib/Makefile.ad
lib/doc/command_reply_args.html
lib/doc/notifyargs.html
lib/doc/porting.html
lib/doc/silcclient_using.html
lib/silcapputil/silcapputil.c
lib/silcapputil/silcidcache.c
lib/silcapputil/silcidcache.h
lib/silcasn1/silcasn1_decode.c
lib/silcasn1/silcasn1_encode.c
lib/silcclient/client.c
lib/silcclient/client_connect.c
lib/silcclient/client_entry.c
lib/silcclient/client_entry.h
lib/silcclient/client_keyagr.c
lib/silcclient/client_notify.c
lib/silcclient/client_register.c
lib/silcclient/command.c
lib/silcclient/command_reply.c
lib/silcclient/silcclient.h
lib/silcclient/silcclient_entry.h
lib/silccore/DIRECTORY
lib/silccore/README
lib/silccore/silcargument.c
lib/silccore/silcattrs.c
lib/silccore/silcnotify.c
lib/silccore/silcpacket.c
lib/silccore/silcpacket.h
lib/silccrypt/Makefile.ad
lib/silccrypt/aes.c
lib/silccrypt/aes_x86.asm
lib/silccrypt/aes_x86_64.asm
lib/silccrypt/ciphers.h
lib/silccrypt/configure.ad
lib/silccrypt/rijndael_internal.h
lib/silccrypt/silccipher.c
lib/silccrypt/silcpk.c
lib/silccrypt/silcpkcs.c
lib/silccrypt/silcpkcs1.c
lib/silcmath/configure.ad
lib/silcsftp/sftp_client.c
lib/silcsftp/sftp_fs_memory.c
lib/silcsim/Makefile.ad
lib/silcske/silcconnauth.c
lib/silcske/silcske.c
lib/silcske/silcske.h
lib/silcskr/silcskr.c
lib/silcutil/silcatomic.h
lib/silcutil/silcbuffer.h
lib/silcutil/silcbuffmt.c
lib/silcutil/silcdlist.h
lib/silcutil/silcfsm.c
lib/silcutil/silclog.c
lib/silcutil/silcmime.c
lib/silcutil/silcnet.h
lib/silcutil/silcschedule.c
lib/silcutil/silcschedule.h
lib/silcutil/silcschedule_i.h
lib/silcutil/silcsocketstream_i.h
lib/silcutil/silcstack.h
lib/silcutil/silctime.c
lib/silcutil/silcutil.c
lib/silcutil/stacktrace.c
lib/silcutil/tests/test_silcschedule.c
lib/silcutil/unix/silcunixnet.c
lib/silcutil/unix/silcunixthread.c
tutorial/mybot/Makefile
tutorial/mybot/mybot.c
win32/libsilc/libsilc.def
win32/libsilcclient/libsilcclient.def

13 years agoClose socket if TCP connecting fails to avoid leaking sockets
Pekka Riikonen [Mon, 9 Jun 2008 05:26:01 +0000 (08:26 +0300)]
Close socket if TCP connecting fails to avoid leaking sockets

13 years agoAdd non-executing stack when compiling AES asm for GNU/ELF.
Pekka Riikonen [Mon, 9 Jun 2008 05:18:33 +0000 (08:18 +0300)]
Add non-executing stack when compiling AES asm for GNU/ELF.

Patch by Kp <kp@valhallalegends.com>bg

Signed-off-by: Pekka Riikonen <priikone@silcnet.org>
13 years agoFixed automatic reconnection to router and malloc failure handlings
Pekka Riikonen [Mon, 9 Jun 2008 05:11:20 +0000 (08:11 +0300)]
Fixed automatic reconnection to router and malloc failure handlings

If remote router disconnects while still being in Unkonwn state reconnect
to the router after disconnecting.  This should prevent the bugs where
server doesn't reconnect to router after being disconnected at the early
connection state.

Fixed various memory allocation failure handlings.

13 years agoFree sock user data before disconnecting remote peer
Pekka Riikonen [Fri, 6 Jun 2008 05:26:04 +0000 (08:26 +0300)]
Free sock user data before disconnecting remote peer

13 years agoMore disconnection crash fixes.
Pekka Riikonen [Thu, 5 Jun 2008 18:37:14 +0000 (21:37 +0300)]
More disconnection crash fixes.

Make sure the server conncection is always freed when the connection
is freed.

13 years agoHandle memory allocation failures when unformatting data
Pekka Riikonen [Sun, 25 May 2008 09:25:04 +0000 (12:25 +0300)]
Handle memory allocation failures when unformatting data

13 years agoAdd non-executing stack when compiling AES asm for GNU/ELF.
Pekka Riikonen [Sun, 25 May 2008 09:24:41 +0000 (12:24 +0300)]
Add non-executing stack when compiling AES asm for GNU/ELF.

Patch by Kp <kp@valhallalegends.com>

Signed-off-by: Pekka Riikonen <priikone@silcnet.org>
13 years agoFixed crash when packet stream creation fails.
Pekka Riikonen [Sun, 25 May 2008 09:23:17 +0000 (12:23 +0300)]
Fixed crash when packet stream creation fails.

13 years agoFixes to connection freeing crashes
Pekka Riikonen [Sun, 25 May 2008 09:22:33 +0000 (12:22 +0300)]
Fixes to connection freeing crashes

13 years agoCancel rekey timeout when closing connection.
Pekka Riikonen [Sun, 20 Apr 2008 19:53:47 +0000 (22:53 +0300)]
Cancel rekey timeout when closing connection.

13 years agoFixed KILL command related crash in silcd
Pekka Riikonen [Sun, 20 Apr 2008 15:54:53 +0000 (18:54 +0300)]
Fixed KILL command related crash in silcd

13 years agoFree connection data correctly when disconnecting the remote peer.
Pekka Riikonen [Thu, 17 Apr 2008 16:08:42 +0000 (19:08 +0300)]
Free connection data correctly when disconnecting the remote peer.

The silc_server_free_sock_user_data must be called if the
silc_server_disconnect_remote is called.

13 years agoFixed many 64-bit alignment issues from silcd.
Pekka Riikonen [Wed, 16 Apr 2008 12:53:18 +0000 (15:53 +0300)]
Fixed many 64-bit alignment issues from silcd.

13 years agoCheck for valid packet stream when counting number of connections in silcd.
Pekka Riikonen [Sat, 12 Apr 2008 10:51:42 +0000 (13:51 +0300)]
Check for valid packet stream when counting number of connections in silcd.

13 years agoSILC_IS_FD_STREAM and SILC_IS_SOCKET_STREAM now checks for NULL stream.
Pekka Riikonen [Sat, 12 Apr 2008 10:51:06 +0000 (13:51 +0300)]
SILC_IS_FD_STREAM and SILC_IS_SOCKET_STREAM now checks for NULL stream.

13 years agoFixed silc_skr_init to not fail if threads support are not compiled in.
Pekka Riikonen [Sat, 12 Apr 2008 10:50:39 +0000 (13:50 +0300)]
Fixed silc_skr_init to not fail if threads support are not compiled in.

13 years agoRemoved wrong SILC_LOG_ERROR and assert check from silc_idcache_add.
Pekka Riikonen [Sat, 12 Apr 2008 10:50:09 +0000 (13:50 +0300)]
Removed wrong SILC_LOG_ERROR and assert check from silc_idcache_add.

In some cases it is not fatal error to attempt to add entry that already
exists.  Removed the assert and changed the error to debug message.

13 years agoCompute packet sums using sha512sum.
Pekka Riikonen [Thu, 10 Apr 2008 15:04:11 +0000 (18:04 +0300)]
Compute packet sums using sha512sum.

13 years agoMark scheduler task unscheduled after silc_schedule_unset_listen_fd.
Pekka Riikonen [Thu, 10 Apr 2008 15:03:46 +0000 (18:03 +0300)]
Mark scheduler task unscheduled after silc_schedule_unset_listen_fd.

Affects epoll() version of schduler.  If it isn't marked unscheduled
next time fd's events are changed they expect the fd to be in epoll()
which they are not.  Setting unscheduled will add them again to epoll().

13 years agoFixed QoS data limit handling in socket stream when reading data.
Pekka Riikonen [Thu, 10 Apr 2008 15:01:35 +0000 (18:01 +0300)]
Fixed QoS data limit handling in socket stream when reading data.

13 years agoFixed packet stream destroy crashes when closing connections.
Pekka Riikonen [Thu, 10 Apr 2008 14:59:59 +0000 (17:59 +0300)]
Fixed packet stream destroy crashes when closing connections.

Take a reference of the packet stream and then destroy it.  The final
reference is freed in the timeout callback.  Any operation in the mean
time will detect the stream is destroyed and won't do anything.

13 years agoAccept 0600 and 0640 for server private key permissions.
Pekka Riikonen [Tue, 8 Apr 2008 05:01:19 +0000 (08:01 +0300)]
Accept 0600 and 0640 for server private key permissions.

13 years agoFixed busy-loop in WATCH command when adding public keys.
Pekka Riikonen [Tue, 8 Apr 2008 05:00:40 +0000 (08:00 +0300)]
Fixed busy-loop in WATCH command when adding public keys.

If the public key decoding failed the command ended up
decoding and failing the same public key for ever.

13 years agoFixed possible buffer overflow in PKCS#1 message decoding.
Pekka Riikonen [Thu, 20 Mar 2008 06:35:48 +0000 (08:35 +0200)]
Fixed possible buffer overflow in PKCS#1 message decoding.

Vulnerability reported by Core Security Technologies.  Thanks.

13 years agoAdded doc/runtime.in/intro.html HTML documentation. 1.2.beta3
Pekka Riikonen [Fri, 14 Mar 2008 14:25:47 +0000 (16:25 +0200)]
Added doc/runtime.in/intro.html HTML documentation.

13 years agoAdded autodetecting to appropriate use of silc_va_copy.
Pekka Riikonen [Fri, 14 Mar 2008 14:24:52 +0000 (16:24 +0200)]
Added autodetecting to appropriate use of silc_va_copy.

13 years agoAdded silc_time_epoch, converting SilcTime to Epoch time value
Pekka Riikonen [Fri, 14 Mar 2008 14:24:19 +0000 (16:24 +0200)]
Added silc_time_epoch, converting SilcTime to Epoch time value

13 years agoAdded silc_net_bit2addr, silc_htonl, silc_ntohl, silc_htons, silc_ntohs
Pekka Riikonen [Fri, 14 Mar 2008 14:23:16 +0000 (16:23 +0200)]
Added silc_net_bit2addr, silc_htonl, silc_ntohl, silc_htons, silc_ntohs

13 years agoAdded support for detecting SSE4.1, SSE4.2, SSE5. Webpage changes.
Pekka Riikonen [Fri, 14 Mar 2008 14:22:31 +0000 (16:22 +0200)]
Added support for detecting SSE4.1, SSE4.2, SSE5.  Webpage changes.

13 years ago Fixed NEW_CLIENT packet processing crash when the packet doesn't
Pekka Riikonen [Thu, 13 Mar 2008 11:52:15 +0000 (11:52 +0000)]
Fixed NEW_CLIENT packet processing crash when the packet doesn't
include nickname.

13 years agoAdded ChangeLog in package and in web page. 1.2.beta2
Pekka Riikonen [Mon, 3 Mar 2008 19:37:41 +0000 (21:37 +0200)]
Added ChangeLog in package and in web page.

13 years agoDeliver some CFLAGS to the pkg-config file for applications using it.
Pekka Riikonen [Mon, 3 Mar 2008 19:15:12 +0000 (21:15 +0200)]
Deliver some CFLAGS to the pkg-config file for applications using it.

13 years agoDocumentation updates. The SRT webpage is now part of SRT docs itself.
Pekka Riikonen [Mon, 3 Mar 2008 19:14:36 +0000 (21:14 +0200)]
Documentation updates.  The SRT webpage is now part of SRT docs itself.

13 years agoFixed ROBODoc header.
Pekka Riikonen [Mon, 3 Mar 2008 19:13:05 +0000 (21:13 +0200)]
Fixed ROBODoc header.

13 years agoAdded small timeout balancing value from 40 to 60 in Scheduler.
Pekka Riikonen [Mon, 3 Mar 2008 19:12:33 +0000 (21:12 +0200)]
Added small timeout balancing value from 40 to 60 in Scheduler.

13 years agoAdded support for stacktrace compiled SRT for apps using the SRT.
Pekka Riikonen [Mon, 3 Mar 2008 19:11:59 +0000 (21:11 +0200)]
Added support for stacktrace compiled SRT for apps using the SRT.

13 years agoChanged MIME code to use SILC Rand API to create fragment ID.
Pekka Riikonen [Mon, 3 Mar 2008 19:10:44 +0000 (21:10 +0200)]
Changed MIME code to use SILC Rand API to create fragment ID.

13 years agoChanged SILC Stream API implementation static inline functions.
Pekka Riikonen [Mon, 3 Mar 2008 19:09:59 +0000 (21:09 +0200)]
Changed SILC Stream API implementation static inline functions.

13 years agoAdded reference counting the SilcStack.
Pekka Riikonen [Wed, 27 Feb 2008 17:21:48 +0000 (19:21 +0200)]
Added reference counting the SilcStack.

The reference counting makes it possible for a parent to be freed
underneath a child stack.  When the child is freed the parent will be
finally freed as well.

13 years agoAdded silc_dlist_init_static and silc_dlist_uninit_static
Pekka Riikonen [Wed, 27 Feb 2008 17:20:44 +0000 (19:20 +0200)]
Added silc_dlist_init_static and silc_dlist_uninit_static

13 years agoMajor rewrite of the SilcThreadQueue API
Pekka Riikonen [Sat, 23 Feb 2008 13:46:52 +0000 (15:46 +0200)]
Major rewrite of the SilcThreadQueue API

The new API allows creation of queues with multiple pipes.  Each pipe
is independently lockable and waitable.  A queue with one pipe is same
as the old SilcThreadQueue.

The queue now also supports FIFO order when popping data from the pipes.
By default the order is LIFO.

13 years agoAdded silc_list_pop
Pekka Riikonen [Sat, 23 Feb 2008 13:43:28 +0000 (15:43 +0200)]
Added silc_list_pop

The silc_list_pop removes the current head of the list and returns the
removed head.

Changed also documentation.

13 years agoShow milliseconds in SILC_LOG_DEBUG and family outputs
Pekka Riikonen [Sat, 23 Feb 2008 13:42:06 +0000 (15:42 +0200)]
Show milliseconds in SILC_LOG_DEBUG and family outputs

13 years agoAdded silc_mutex_trylock
Pekka Riikonen [Sat, 23 Feb 2008 13:41:33 +0000 (15:41 +0200)]
Added silc_mutex_trylock

13 years agoFixed silc_buffer_unformat return correct length with SILC_STR_ADVANCE
Pekka Riikonen [Sat, 23 Feb 2008 13:40:58 +0000 (15:40 +0200)]
Fixed silc_buffer_unformat return correct length with SILC_STR_ADVANCE

13 years agoAdded silc_rolc, silc_rorc, silc_rolc64 and silc_rorc64
Pekka Riikonen [Sat, 23 Feb 2008 13:39:16 +0000 (15:39 +0200)]
Added silc_rolc, silc_rorc, silc_rolc64 and silc_rorc64

13 years ago Fixed partial encryption in CTR mode. Does not affect interop
Pekka Riikonen [Fri, 22 Feb 2008 14:29:58 +0000 (14:29 +0000)]
Fixed partial encryption in CTR mode.   Does not affect interop
in SILC.

13 years agoRemoved lib/silcutil/DIRECTORY, not needed anymore.
Pekka Riikonen [Mon, 11 Feb 2008 14:46:23 +0000 (16:46 +0200)]
Removed lib/silcutil/DIRECTORY, not needed anymore.

13 years agoChanged the low level errno routines public.
Pekka Riikonen [Mon, 11 Feb 2008 14:46:03 +0000 (16:46 +0200)]
Changed the low level errno routines public.

13 years agoAdded memory corruption checks to stacktrace.c
Pekka Riikonen [Mon, 11 Feb 2008 14:45:24 +0000 (16:45 +0200)]
Added memory corruption checks to stacktrace.c

The stacktrace now produces backtraces using backtrace().

The stacktrace now supports basic memory corruption checks in
addition of memory leak checks.  It supports double free checks,
invalid free checks and out of bound checks.

Environment variables SILC_MALLOC_NO_FREE and SILC_MALLOC_DUMP
can be used to get even more information out of it.

13 years agoChanged silcdefs.h to runtimedefs.h, fixed silccruntime.h.
Pekka Riikonen [Mon, 4 Feb 2008 21:04:12 +0000 (23:04 +0200)]
Changed silcdefs.h to runtimedefs.h, fixed silccruntime.h.

13 years agoMoved silc_usleep from inline function to source file.
Pekka Riikonen [Mon, 4 Feb 2008 21:01:29 +0000 (23:01 +0200)]
Moved silc_usleep from inline function to source file.

13 years agoSILC Runtime Toolkit 1.2 Beta 1 1.2.beta1
Pekka Riikonen [Sun, 3 Feb 2008 16:43:05 +0000 (18:43 +0200)]
SILC Runtime Toolkit 1.2 Beta 1

The tree contains various changes to make the beta 1 release possible.
Changed all of the Robodoc header documentation to comply with the
latest version of the Robodoc.

13 years agoAdded silc_file_stat, silc_file_fstat and silc_file_fsize
Pekka Riikonen [Sun, 3 Feb 2008 15:51:02 +0000 (17:51 +0200)]
Added silc_file_stat, silc_file_fstat and silc_file_fsize

13 years agoRemoved util/ directory from the tree.
Pekka Riikonen [Sat, 2 Feb 2008 16:44:53 +0000 (18:44 +0200)]
Removed util/ directory from the tree.

13 years agoAdded SILC Rand API, SILC Global Variables API and silcruntime.h.in
Pekka Riikonen [Thu, 31 Jan 2008 17:23:02 +0000 (19:23 +0200)]
Added SILC Rand API, SILC Global Variables API and silcruntime.h.in

The SILC Rand API provides simple PRNG.  The PRNG implementation
uses the Mersenne Twister PRNG.  Added test program for it too.

The SILC Global Variables API provides portable way to add process
global or thread global variables.  On some platforms global
variables cannot be directly used and this API provides portable
way to use them.  Added support for Unix, Windows and Symbian.
Added test program too.

Other changes include the addition of silcruntime.h.in the main
SILC Runtime Toolkit header file.  Added also silc_hash_destructor,
a generic destructor callback for convenience.

13 years agoCreated SILC Runtime Toolkit git repository Part II.
Pekka Riikonen [Sat, 26 Jan 2008 19:29:28 +0000 (21:29 +0200)]
Created SILC Runtime Toolkit git repository Part II.

Added lib/silcutil/silcruntime.h.in, the file that is the main include
file for application programmers.

Added includes/silcompile.h which is included only during compilation
of the Runtime Toolkit.

Changed all files to use the silcruntime.h instead of silc.h header
file.

Made the many other changes in makefiles, configuration scripts and
other files to try to complete the creation of the Runtime git
repository.

13 years agoCreated SILC Runtime Toolkit git repository Part I.
Pekka Riikonen [Sat, 26 Jan 2008 19:20:15 +0000 (21:20 +0200)]
Created SILC Runtime Toolkit git repository Part I.

The new git repository contains the entire history of the SILC
utility library, now named the SILC Runtime Toolkit.  In addition
of that it contains the entire history of the SILC development
since the utility library has been part of that from the very
beginning.  None of the history has been removed.  Only things
that have been removed are unneeded branches and tags.

In this changeset we remove all unnecessary files and directories.

13 years ago Added SILC Thread Queue API
Pekka Riikonen [Fri, 18 Jan 2008 14:46:32 +0000 (14:46 +0000)]
Added SILC Thread Queue API

13 years ago Comment changes.
Pekka Riikonen [Thu, 17 Jan 2008 12:50:49 +0000 (12:50 +0000)]
Comment changes.

13 years ago Added ernno setting.
Pekka Riikonen [Thu, 17 Jan 2008 12:50:28 +0000 (12:50 +0000)]
Added ernno setting.

13 years ago Removed the previous backslash removin code.
Pekka Riikonen [Wed, 16 Jan 2008 18:41:21 +0000 (18:41 +0000)]
Removed the previous backslash removin code.

13 years ago Fixed *.ad (not configure.ad or Makefile.ad but other files)
Pekka Riikonen [Wed, 16 Jan 2008 16:30:06 +0000 (16:30 +0000)]
Fixed *.ad (not configure.ad or Makefile.ad but other files)
to correctly remove trailing slashes and copy the processed file.

13 years ago Added and implemented Silc DIR API.
Pekka Riikonen [Tue, 15 Jan 2008 17:52:24 +0000 (17:52 +0000)]
Added and implemented Silc DIR API.

13 years ago Comment and errno changes
Pekka Riikonen [Tue, 15 Jan 2008 06:36:54 +0000 (06:36 +0000)]
Comment and errno changes

13 years ago updates.
Pekka Riikonen [Sun, 13 Jan 2008 15:24:51 +0000 (15:24 +0000)]
updates.

13 years ago Added silc_subst, regex matching and substitution with the
Pekka Riikonen [Sun, 13 Jan 2008 15:24:26 +0000 (15:24 +0000)]
Added silc_subst, regex matching and substitution with the
familiar Sed syntax.

13 years ago Added SILC_STR_REPLACE. Removed SILC_STR_STRING_APPEND. Fixed
Pekka Riikonen [Sun, 13 Jan 2008 15:23:54 +0000 (15:23 +0000)]
Added SILC_STR_REPLACE.  Removed SILC_STR_STRING_APPEND.  Fixed
various SILC_STR_REGEX bugs.

13 years ago Comment changes.
Pekka Riikonen [Sun, 13 Jan 2008 15:20:37 +0000 (15:20 +0000)]
Comment changes.

13 years ago Fixed reallocation when reducing size.
Pekka Riikonen [Sun, 13 Jan 2008 15:19:59 +0000 (15:19 +0000)]
Fixed reallocation when reducing size.

13 years ago Fixed SilcBuffer reallocatinon when reducing buffer size.
Pekka Riikonen [Sun, 13 Jan 2008 15:19:19 +0000 (15:19 +0000)]
Fixed SilcBuffer reallocatinon when reducing buffer size.
Added silc_buffer_tail and silc_buffer_memcmp.

13 years ago Moved SILC id utility functions from utility library.
Pekka Riikonen [Tue, 8 Jan 2008 15:15:10 +0000 (15:15 +0000)]
Moved SILC id utility functions from utility library.

13 years ago Moved SILC protocol ID utility functions to SILC core library.
Pekka Riikonen [Tue, 8 Jan 2008 15:14:17 +0000 (15:14 +0000)]
Moved SILC protocol ID utility functions to SILC core library.