+Sun Nov 4 11:43:53 EET 2001 Pekka Riikonen <priikone@silcnet.org>
+
+ * Better installation directory handling. Configure module
+ paths and other paths automatically to example_silc* files
+ in doc/. A patch by toma.
+
+ * Fixed compiler warning from MPI library, and from SILC RNG.
+ A patch by johnny.
+
Sat Nov 3 23:48:23 EET 2001 Pekka Riikonen <priikone@silcnet.org>
* Find correct make to use in prepare-clean. A patch by
========================================
SILC (Secure Internet Live Conferencing) is a protocol which provides
-secure conferencing services in the Internet over insecure channel.
-SILC is IRC like software although internally they are very different.
-Biggest similarity between SILC and IRC is that they both provide
-conferencing services and that SILC has almost same commands as IRC. Other
-than that they are nothing alike. Biggest differences are that SILC is
-secure what IRC is not in any way. The network model is also entirely
+secure conferencing services on the Internet over insecure channel.
+SILC is IRC-like software although internally they are very different.
+The biggest similarity between SILC and IRC is that they both provide
+conferencing services and that SILC has almost the same commands as IRC.
+Other than that they are nothing alike. Major differences are that SILC
+is secure what IRC is not in any way. The network model is also entirely
different compared to IRC.
# Default installation destination
AC_PREFIX_DEFAULT(/usr/local/silc)
+if test "x$prefix" != xNONE; then
+ silc_prefix="$prefix"
+else
+ silc_prefix="$ac_default_prefix"
+fi
+
# etc directory
-ETCDIR="/etc/silc"
+#ETCDIR="/etc/silc"
+if test "x$sysconfdir" != 'x${prefix}/etc'; then
+ ETCDIR="$sysconfdir"
+else
+ ETCDIR="$silc_prefix/etc"
+fi
AC_ARG_WITH(etcdir,
[ --with-etcdir[=PATH] Directory for system files [/etc/silc]],
[ case "$withval" in
AC_DEFINE_UNQUOTED(SILC_ETCDIR, "$ETCDIR")
# help directory
-HELPDIR="help"
+#HELPDIR="help"
+HELPDIR="$silc_prefix/help"
AC_ARG_WITH(helpdir,
[ --with-helpdir[=PATH] Directory for SILC help files [PREFIX/help]],
[ case "$withval" in
AC_DEFINE_UNQUOTED(SILC_HELPDIR, "$HELPDIR")
# doc directory
-DOCDIR="doc"
+#DOCDIR="doc"
+DOCDIR="$silc_prefix/doc"
AC_ARG_WITH(docdir,
[ --with-docdir[=PATH] Directory for SILC documentation [PREFIX/doc]],
[ case "$withval" in
AC_DEFINE_UNQUOTED(SILC_DOCDIR, "$DOCDIR")
# SIM modules directory
-MODULESDIR="modules"
+#MODULESDIR="modules"
+MODULESDIR="$silc_prefix/modules"
AC_ARG_WITH(simdir,
[ --with-simdir[=PATH] Directory for SIM modules [PREFIX/modules]],
[ case "$withval" in
AC_DEFINE_UNQUOTED(SILC_MODULESDIR, "$MODULESDIR")
# Logs directory
-LOGSDIR="logs"
+#LOGSDIR="logs"
+LOGSDIR="$silc_prefix/logs"
AC_ARG_WITH(logsdir,
[ --with-logsdir[=PATH] Directory for Server logs [PREFIX/logs]],
[ case "$withval" in
lib/silcutil/win32/Makefile
lib/silcsftp/Makefile
lib/silcsftp/tests/Makefile
+doc/example_silc.conf
+doc/example_silcd.conf
)
if test "x$silc_dist" = "xsilc-client" ||
ever they want. For example, ciphers are implemented currently in this
way. They define common SILC Cipher API but the actual implementation
of algorithms uses their own naming convention. Another example is
-the GMP math library that uses its own function naming but we have our
+the MPI math library that uses its own function naming but we have our
own SILC MP API over it that has been defined using common SILC naming
convention.
is about helps a lot when you go back to it after six months. Static
functions should be commented as well.
-The commenting of functions in SILC has been made into the source files,
-and not in the header files where the function prototypes reside. Header
-files usually includes structure comments, macro comments and perhaps
-some other relevant commenting but usually not function comments.
-It is also Ok to comment the code inside function when it is needed.
+When writing a new header it is preferred that the header file is
+immediately written in the ROBOdoc documentation format. This is
+important when you are doing library code under lib/. There are plenty
+of examples of this format. The ROBOdoc is used automatically generate
+the Toolkit documentation.
Comments should use normal C-language comments /* */ and not C++ comments.
Gotos are used in the SILC code quite often. If you know how to use
goto's properly then it is ok to use them for example to optimize the
-code. However, if you don't know how to use goto's do not use them.
+code. If you use goto's then use them only to make forward jumps, try
+to avoid backward jumps at all cost. If you don't know how to use goto's
+do not use them.
Debug Messages
Copyrights of the Code
======================
-The original code in SILC is GPL licensed. GMP is GPL licensed as well
+The original code in SILC is GPL licensed. MPI is GPL licensed as well
and zlib is with free license as well. New code will be accepted to
the official SILC source tree if it is coded in GPL or similiar free
license as GPL is, and of course if it is public domain. Code with
# If the cipher is builtin the <module path> maybe omitted.
#
[cipher]
-aes-256-cbc:/usr/local/silc/modules/aes.sim.so:32:16
-aes-192-cbc:/usr/local/silc/modules/aes.sim.so:24:16
-aes-128-cbc:/usr/local/silc/modules/aes.sim.so:16:16
-twofish-256-cbc:/usr/local/silc/modules/twofish.sim.so:32:16
-twofish-192-cbc:/usr/local/silc/modules/twofish.sim.so:24:16
-twofish-128-cbc:/usr/local/silc/modules/twofish.sim.so:16:16
-mars-256-cbc:/usr/local/silc/modules/mars.sim.so:32:16
-mars-192-cbc:/usr/local/silc/modules/mars.sim.so:24:16
-mars-128-cbc:/usr/local/silc/modules/mars.sim.so:16:16
-none:/usr/local/silc/modules/none.sim.so:0:0
+aes-256-cbc:@MODULESDIR@/aes.sim.so:32:16
+aes-192-cbc:@MODULESDIR@/aes.sim.so:24:16
+aes-128-cbc:@MODULESDIR@/aes.sim.so:16:16
+twofish-256-cbc:@MODULESDIR@/twofish.sim.so:32:16
+twofish-192-cbc:@MODULESDIR@/twofish.sim.so:24:16
+twofish-128-cbc:@MODULESDIR@/twofish.sim.so:16:16
+mars-256-cbc:@MODULESDIR@/mars.sim.so:32:16
+mars-192-cbc:@MODULESDIR@/mars.sim.so:24:16
+mars-128-cbc:@MODULESDIR@/mars.sim.so:16:16
+none:@MODULESDIR@/none.sim.so:0:0
#
# Configured hash functions.
# If the cipher is builtin the <module path> maybe omitted.
#
[Cipher]
-aes-256-cbc:/usr/local/silc/modules/aes.sim.so:32:16
-aes-192-cbc:/usr/local/silc/modules/aes.sim.so:24:16
-aes-128-cbc:/usr/local/silc/modules/aes.sim.so:16:16
-twofish-256-cbc:/usr/local/silc/modules/twofish.sim.so:32:16
-twofish-192-cbc:/usr/local/silc/modules/twofish.sim.so:24:16
-twofish-128-cbc:/usr/local/silc/modules/twofish.sim.so:16:16
-mars-256-cbc:/usr/local/silc/modules/mars.sim.so:32:16
-mars-192-cbc:/usr/local/silc/modules/mars.sim.so:24:16
-mars-128-cbc:/usr/local/silc/modules/mars.sim.so:16:16
-none:/usr/local/silc/modules/none.sim.so:0:0
+aes-256-cbc:@MODULESDIR@/aes.sim.so:32:16
+aes-192-cbc:@MODULESDIR@/aes.sim.so:24:16
+aes-128-cbc:@MODULESDIR@/aes.sim.so:16:16
+twofish-256-cbc:@MODULESDIR@/twofish.sim.so:32:16
+twofish-192-cbc:@MODULESDIR@/twofish.sim.so:24:16
+twofish-128-cbc:@MODULESDIR@/twofish.sim.so:16:16
+mars-256-cbc:@MODULESDIR@/mars.sim.so:32:16
+mars-192-cbc:@MODULESDIR@/mars.sim.so:24:16
+mars-128-cbc:@MODULESDIR@/mars.sim.so:16:16
+none:@MODULESDIR@/none.sim.so:0:0
#
# Configured hash functions.
# Format: +<public key>:<private key>
#
[ServerKeys]
-/etc/silc/silcd.pub:/etc/silc/silcd.prv
+@ETCDIR@/silcd.pub:@ETCDIR@/silcd.prv
#
# Listenning ports.
# fatallogile:<path>:<max byte size>
#
[Logging]
-infologfile:/usr/local/silc/logs/silcd.log:10000
-#warninglogfile:/usr/local/silc/logs/silcd_warning.log:10000
-#errorlogfile:/usr/local/silc/logs/error.log:10000
-#fatallogfile:/usr/local/silc/logs/silcd_error.log:
+infologfile:@LOGSDIR@/silcd.log:10000
+#warninglogfile:@LOGSDIR@/silcd_warning.log:10000
+#errorlogfile:@LOGSDIR@/error.log:10000
+#fatallogfile:@LOGSDIR@/silcd_error.log:
#
# Connection classes.
#include "silcincludes.h"
+#ifdef HAVE_GETSID
+extern __pid_t getsid (__pid_t __pid);
+#endif
+
+#ifdef HAVE_GETPGID
+extern __pid_t getpgid (__pid_t __pid);
+#endif
+
#undef SILC_RNG_DEBUG
/*#define SILC_RNG_DEBUG*/
if (!filename)
fp = stderr;
-
- if (filename) {
+ else {
/* Purge the log file if the max size is defined. */
if (maxsize) {
fp = fopen(filename, "r");