pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/silc-client Upgrade silc-client to version 1.1.4....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1c2ae1d09b1c
branches:  trunk
changeset: 544134:1c2ae1d09b1c
user:      tonnerre <tonnerre%pkgsrc.org@localhost>
date:      Sun Jul 13 12:04:11 2008 +0000

description:
Upgrade silc-client to version 1.1.4. This fixes two security issues and
various character set problems. The security issues fixed:
 * NICK_CHANGE buffer overflow: CVE-2007-3728.
 * pkcs_decode buffer overflow: CORE-2007-1212.

Changes since version 1.0.4.1:
 - Fixed NEW_CLIENT packet handling crash.
 - Fixed partial encryption in CTR mode in AES.
 - Fixed printable fingerprint buffer overflow.
 - Fixed UNIX signal delivery il SILC scheduler.
 - Reprocess JOIN command synchronously after resolving channel user list.
 - In JOIN command reply check if the channel key is already saved.
 - Remove all channel keys and hmacs after giving LEAVE command.
 - Added missing channel unreferencing in CMODE, CUMODE, TOPIC, INVITE,
   BAN and KICK command replies.
 - Fixed connection authentication with public keys to use correct public
   key as responder.
 - Zero tail of CTR mode IV in IV Included mode.
 - Fixed CTR mode rekey.
 - Rewrote the IV Included CTR mode encryption/decryption in packet engine.
 - Fixed non-IPv6 compilation error.
 - Fixed channel private key deleting when deleting the channel.
 - Fixed TIMEOUT handling in user info resolving during JOINing, fixes crash.
 - Fixed mandatory UN and HN SILC public key identifier checking.
 - Fixed alignment issues with 64-bit CPUs.
 - Added "There are now xx nick's" to "are xx nicks".
 - Fixed USERS command user mode handling (integer overflow).
 - Fixed big-endian issues from aes implementation.
 - Fixed lib/silcutil/silcatomic.h compilation on IA64.
 - Fixed public key identifier parsing to check lengths correctly.
 - In silc_client_free check that scheduler is allocated before trying to
   free it.
 - Fixed buffer overflow in NICK_CHANGE notify. The destination buffer for
   old nicknames was too small.
 - Added support for rekey with PFS when using CTR mode encryption.
 - Added silc_idcache_move that can be used to move entries between caches.
 - Added better checks for invalid argument and notify payloads.
 - Fixed SILC_PACKET_FLAG_LONG_PAD bitmask value.
 - Set the destination ID to packet stream as SKE responder if ID was
   present in key exchange packet.
 - Compile sources with _GNU_SOURCE on Linux systems.
 - Fixed Unix signal task dispatching to not lock the signals when
   dispatching the callback to avoid deadlocks.
 - Added SILC_VERSION macro for checking package versions at compile time.
 - Use SILC_VERIFY to assert that silc_rwlock_wrlock can be called only
   once per thread on Unix.
 - Fixed USERS command reply write-lock unlocking.
 - Fixed silc_create_key_pair to check for valid identifier.
 - Rewrite signed public message handling, adopting the new hilight interface.
 - Fix off by one error when loading modules.
 - Don't delete hilight entry (because it's just a pointer, not a copy).
 - Added __SILC_TOOLKIT_x_x_x macro to all Toolkit distribution which can
   be used to check for Toolkit version in third-party software.
 - Added support for channel@server channel name strings to client library
   (SILC protocol version 1.3 change).
 - Added full_nicknames and full_channel_names settings to SilcClientParams
   that can be used to specify whether client library returns full nickname
   and channel name strings. Full strings are nick@server and channel@server.
 - Fixed unix connecting failure to return error code correctly.
 - Fixed SKE timeout double free crash.
 - Fixed MIME multipart decoding buffer overflow.
 - Fixed connection auth protocol timeout crash.
 - Fixed FSM machine finishing to check for existing threads at the final
   free callback to allow time for the threads to finish.
 - Fixed silc_client_get_clients_local to check the nick's server also if
   nick@server nickname string is given to the function.
 - And many more, oh well. For the user this means: better charset support,
   less crashes, nick names now potentially user#23, server specific
   channels and more sanity.

Talked over a while ago with wiz with no objections.

diffstat:

 chat/silc-client/Makefile         |  13 ++++----
 chat/silc-client/Makefile.common  |   4 +-
 chat/silc-client/PLIST            |  14 ++------
 chat/silc-client/PLIST.perl       |  18 ++++++++----
 chat/silc-client/distinfo         |  17 ++++++-----
 chat/silc-client/options.mk       |   3 +-
 chat/silc-client/patches/patch-aa |  37 ++++++++----------------
 chat/silc-client/patches/patch-ab |  58 ++++++++++++++++++++++++++------------
 chat/silc-client/patches/patch-ac |  24 ++++++++--------
 chat/silc-client/patches/patch-ad |  39 ++++++++------------------
 chat/silc-client/patches/patch-ae |  13 ++++++++
 11 files changed, 124 insertions(+), 116 deletions(-)

diffs (truncated from 382 to 300 lines):

diff -r 1557d43f5ee3 -r 1c2ae1d09b1c chat/silc-client/Makefile
--- a/chat/silc-client/Makefile Sun Jul 13 11:17:58 2008 +0000
+++ b/chat/silc-client/Makefile Sun Jul 13 12:04:11 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.48 2007/11/12 18:17:28 heinz Exp $
+# $NetBSD: Makefile,v 1.49 2008/07/13 12:04:11 tonnerre Exp $
 #
 
 DISTNAME=              ${SILC_CLIENT_DISTNAME}
@@ -13,6 +13,7 @@
 HOMEPAGE=              http://www.silcnet.org/
 COMMENT=               Client for the Secure Internet Live Conferencing (SILC) protocol
 
+.include "../../mk/bsd.prefs.mk"
 .include "../../chat/silc-client/Makefile.common"
 
 GNU_CONFIGURE=         YES
@@ -24,22 +25,20 @@
 PKG_SYSCONFSUBDIR?=    ${PKGBASE}
 
 EGDIR=                 ${PREFIX}/share/examples/${PKGBASE}
-MAKE_ENV+=             examplesdir=${EGDIR:Q}
+MAKE_ENV+=             examplesdir=${EGDIR}
 
 CONF_FILES+=           ${EGDIR}/silc.conf.default ${PKG_SYSCONFDIR}/silc.conf
 
 CONFIGURE_ARGS+=       --libdir=${PREFIX}/lib/${PKGBASE}
 CONFIGURE_ARGS+=       --with-helpdir=${PREFIX}/share/${PKGBASE}/help
 CONFIGURE_ARGS+=       --with-docdir=${PREFIX}/share/doc/${PKGBASE}
-CONFIGURE_ARGS+=       --with-etcdir=${PKG_SYSCONFDIR:Q}
+CONFIGURE_ARGS+=       --with-etcdir=${PKG_SYSCONFDIR}
 CONFIGURE_ARGS+=       --with-simdir=${PREFIX}/lib/${PKGBASE}/modules
-CONFIGURE_ARGS+=       --with-iconv=${BUILDLINK_DIR:Q}
+CONFIGURE_ARGS+=       --with-iconv=${BUILDLINK_DIR}
 CONFIGURE_ARGS+=       --with-terminfo
 CONFIGURE_ARGS+=       --enable-shared
 CONFIGURE_ARGS+=       --without-libtoolfix
 
-.include "../../mk/bsd.prefs.mk"
-
 # Use native curses library.
 .if (${OPSYS} == "NetBSD") || (${OPSYS} == "SunOS")
 CONFIGURE_ARGS+=       --with-vcurses
@@ -59,12 +58,12 @@
 .include "options.mk"
 
 PLIST_SRC+=            ${PKGDIR}/PLIST
+INSTALLATION_DIRS+=    ${PREFIX}/libexec/${PKGBASE}/scripts
 
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/apps/irssi/config.h ${SILC_CLIENT_CONFIG_H}
        ${INSTALL_DATA} ${WRKSRC}/apps/irssi/irssi-config ${SILC_CLIENT_CONFIG}
 .if !empty(PKG_OPTIONS:Mperl)
-       ${INSTALL_DATA_DIR} ${PREFIX}/libexec/${PKGBASE}/scripts
        ${INSTALL_DATA} ${WRKSRC}/apps/irssi/scripts/*.pl       \
                ${PREFIX}/libexec/${PKGBASE}/scripts
 # Create PLIST fragment for Perl modules.
diff -r 1557d43f5ee3 -r 1c2ae1d09b1c chat/silc-client/Makefile.common
--- a/chat/silc-client/Makefile.common  Sun Jul 13 11:17:58 2008 +0000
+++ b/chat/silc-client/Makefile.common  Sun Jul 13 12:04:11 2008 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.common,v 1.10 2007/05/18 21:04:25 salo Exp $
+# $NetBSD: Makefile.common,v 1.11 2008/07/13 12:04:11 tonnerre Exp $
 #
 
 # Distribution specific information.
 #
-SILC_CLIENT_VERSION=           1.0.4.1
+SILC_CLIENT_VERSION=           1.1.4
 SILC_CLIENT_DISTNAME=          silc-client-${SILC_CLIENT_VERSION}
 SILC_CLIENT_EXTRACT_SUFX=      .tar.bz2
 SILC_CLIENT_DISTFILE=          ${SILC_CLIENT_DISTNAME}${SILC_CLIENT_EXTRACT_SUFX}
diff -r 1557d43f5ee3 -r 1c2ae1d09b1c chat/silc-client/PLIST
--- a/chat/silc-client/PLIST    Sun Jul 13 11:17:58 2008 +0000
+++ b/chat/silc-client/PLIST    Sun Jul 13 12:04:11 2008 +0000
@@ -1,16 +1,7 @@
-@comment $NetBSD: PLIST,v 1.22 2007/05/18 21:04:25 salo Exp $
+@comment $NetBSD: PLIST,v 1.23 2008/07/13 12:04:11 tonnerre Exp $
 bin/silc
 lib/silc-client/libsilc.la
 lib/silc-client/libsilcclient.la
-lib/silc-client/modules/aes.sim.so
-lib/silc-client/modules/blowfish.sim.so
-lib/silc-client/modules/cast.sim.so
-lib/silc-client/modules/md5.sim.so
-lib/silc-client/modules/none.sim.so
-lib/silc-client/modules/rc5.sim.so
-lib/silc-client/modules/rsa.sim.so
-lib/silc-client/modules/sha1.sim.so
-lib/silc-client/modules/twofish.sim.so
 man/man1/silc.1
 share/doc/silc-client/CHANGES
 share/doc/silc-client/COPYING
@@ -18,6 +9,7 @@
 share/doc/silc-client/FAQ
 share/doc/silc-client/INSTALL
 share/doc/silc-client/README
+share/doc/silc-client/README.PLUGIN
 share/doc/silc-client/TODO
 share/doc/silc-client/formats.txt
 share/doc/silc-client/manual.txt
@@ -85,6 +77,7 @@
 share/silc-client/help/ping
 share/silc-client/help/query
 share/silc-client/help/quit
+share/silc-client/help/recode
 share/silc-client/help/reconnect
 share/silc-client/help/reload
 share/silc-client/help/rmreconns
@@ -116,6 +109,7 @@
 share/silc-client/help/window
 share/silc-client/irssi-config
 share/silc-client/themes/default.theme
+share/silc-client/themes/plugin.theme
 @dirrm share/silc-client/themes
 @dirrm share/silc-client/help
 @dirrm share/silc-client
diff -r 1557d43f5ee3 -r 1c2ae1d09b1c chat/silc-client/PLIST.perl
--- a/chat/silc-client/PLIST.perl       Sun Jul 13 11:17:58 2008 +0000
+++ b/chat/silc-client/PLIST.perl       Sun Jul 13 12:04:11 2008 +0000
@@ -1,12 +1,18 @@
-@comment $NetBSD: PLIST.perl,v 1.6 2007/05/18 21:04:25 salo Exp $
+@comment $NetBSD: PLIST.perl,v 1.7 2008/07/13 12:04:11 tonnerre Exp $
 libexec/silc-client/scripts/autoop.pl
-libexec/silc-client/scripts/beep.pl
-libexec/silc-client/scripts/clones.pl
+libexec/silc-client/scripts/autorejoin.pl
+libexec/silc-client/scripts/buf.pl
+libexec/silc-client/scripts/command.pl
 libexec/silc-client/scripts/dns.pl
-libexec/silc-client/scripts/hello.pl
-libexec/silc-client/scripts/mail-maildir.pl
+libexec/silc-client/scripts/kills.pl
 libexec/silc-client/scripts/mail.pl
-libexec/silc-client/scripts/silc-mime.pl
+libexec/silc-client/scripts/mlock.pl
+libexec/silc-client/scripts/msg-event.pl
+libexec/silc-client/scripts/quitmsg.pl
+libexec/silc-client/scripts/redirect.pl
+libexec/silc-client/scripts/scriptassist.pl
 libexec/silc-client/scripts/silc.pl
+libexec/silc-client/scripts/splitlong.pl
+libexec/silc-client/scripts/usercount.pl
 @dirrm libexec/silc-client/scripts
 @dirrm libexec/silc-client
diff -r 1557d43f5ee3 -r 1c2ae1d09b1c chat/silc-client/distinfo
--- a/chat/silc-client/distinfo Sun Jul 13 11:17:58 2008 +0000
+++ b/chat/silc-client/distinfo Sun Jul 13 12:04:11 2008 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.31 2007/05/18 21:04:25 salo Exp $
+$NetBSD: distinfo,v 1.32 2008/07/13 12:04:11 tonnerre Exp $
 
-SHA1 (silc-client-1.0.4.1.tar.bz2) = 29d8cd4208db23e997bedf6271fc0dfd0cb84e6c
-RMD160 (silc-client-1.0.4.1.tar.bz2) = 46abb8312d37842e20e01f79566460ee486c1bbf
-Size (silc-client-1.0.4.1.tar.bz2) = 1445091 bytes
-SHA1 (patch-aa) = cbb65b6a6eb312d79b0e1ab5915841ed7730321d
-SHA1 (patch-ab) = 41bc37c379be30cab6540a3c30cad3163d30dff0
-SHA1 (patch-ac) = 8267934b89e67c3d3168bb290abcac53b9b17658
-SHA1 (patch-ad) = bd414db383a0c7d9c235523053f4d96c50be8199
+SHA1 (silc-client-1.1.4.tar.bz2) = 043fd02ffc0bb420d411c4ca14ad307b48beaa06
+RMD160 (silc-client-1.1.4.tar.bz2) = 519ba59912da4bb514330ca8e87979844f957ad0
+Size (silc-client-1.1.4.tar.bz2) = 1624696 bytes
+SHA1 (patch-aa) = 59bfbaf78235e919b4e09f194d88d029630a4160
+SHA1 (patch-ab) = 873c65a78da7195b8baddb33d1c71300fce704f1
+SHA1 (patch-ac) = 576299d98ea63f6c42cc341bf31ad7ec903f93c8
+SHA1 (patch-ad) = 490e3b2a99e14683b9a0005494d29b5a91186755
+SHA1 (patch-ae) = b437cb3433093592573802e70b600c7556ee5834
diff -r 1557d43f5ee3 -r 1c2ae1d09b1c chat/silc-client/options.mk
--- a/chat/silc-client/options.mk       Sun Jul 13 11:17:58 2008 +0000
+++ b/chat/silc-client/options.mk       Sun Jul 13 12:04:11 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.4 2005/08/06 06:19:04 jlam Exp $
+# $NetBSD: options.mk,v 1.5 2008/07/13 12:04:11 tonnerre Exp $
 #
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.silc-client
@@ -21,6 +21,7 @@
 DEPENDS+=              p5-File-MMagic>=1.20:../../misc/p5-File-MMagic
 PLIST_SRC+=            ${PKGDIR}/PLIST.perl
 PLIST_SRC+=            ${WRKDIR}/PLIST.perl
+USE_TOOLS+=            perl
 .else
 CONFIGURE_ARGS+=       --with-perl=no
 .endif
diff -r 1557d43f5ee3 -r 1c2ae1d09b1c chat/silc-client/patches/patch-aa
--- a/chat/silc-client/patches/patch-aa Sun Jul 13 11:17:58 2008 +0000
+++ b/chat/silc-client/patches/patch-aa Sun Jul 13 12:04:11 2008 +0000
@@ -1,26 +1,13 @@
-$NetBSD: patch-aa,v 1.12 2007/05/18 21:04:25 salo Exp $
+$NetBSD: patch-aa,v 1.13 2008/07/13 12:04:11 tonnerre Exp $
 
---- Makefile.in.orig   2006-01-06 14:46:28.000000000 +0100
-+++ Makefile.in        2006-01-08 20:45:25.000000000 +0100
-@@ -763,18 +763,18 @@
- 
- 
- @with_irssi_TRUE@install-dirs-client:
--@with_irssi_TRUE@     -mkdir -p $(etcdir)
-+@with_irssi_TRUE@     -mkdir -p $(examplesdir)
- @with_irssi_TRUE@     -mkdir -p $(helpdir)
- @with_irssi_TRUE@     -mkdir -p $(mandir)/man1
- 
- @with_irssi_TRUE@doc-install-client:
--@with_irssi_TRUE@     $(INSTALL_DATA) $(srcdir)/apps/irssi/silc.conf $(docdir)/example_silc.conf
-+@with_irssi_TRUE@     $(INSTALL_DATA) $(srcdir)/apps/irssi/silc.conf $(examplesdir)/silc.conf.default
- @with_irssi_TRUE@     -@if test -f $(srcdir)/doc/silc.1 ; then         $(INSTALL_DATA) $(srcdir)/doc/silc.1 $(mandir)/man1;   fi
- 
- @with_irssi_TRUE@etc-install-client:
- @with_irssi_TRUE@     -@if test '!' -d $(srcdir)/apps/irssi ; then      if test '!' -f $(etcdir)/silc.conf ; then         $(INSTALL_DATA) $(srcdir)/apps/irssi/silc.conf              
$(etcdir)/silc.conf;      fi;   fi
- 
--@with_irssi_TRUE@install-data-hook:   install-dirs-client     doc-install-client      etc-install-client
-+@with_irssi_TRUE@install-data-hook:   install-dirs-client     doc-install-client
- 
- @INCLUDE_DEFINES_INT@
- 
+--- apps/irssi/docs/help/Makefile.in.orig      2007-12-07 18:10:34.000000000 +0100
++++ apps/irssi/docs/help/Makefile.in   2007-12-07 18:10:48.000000000 +0100
+@@ -211,7 +211,7 @@
+ target_alias = @target_alias@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-@SILCPLUGIN_FALSE@helpdir = $(datadir)/silc/help
++@SILCPLUGIN_FALSE@helpdir = $(datadir)/silc-client/help
+ @SILCPLUGIN_TRUE@helpdir = $(datadir)/irssi/help/silc
+ @SILCPLUGIN_FALSE@SILCHELP = 
+ @SILCPLUGIN_TRUE@SILCHELP = silc
diff -r 1557d43f5ee3 -r 1c2ae1d09b1c chat/silc-client/patches/patch-ab
--- a/chat/silc-client/patches/patch-ab Sun Jul 13 11:17:58 2008 +0000
+++ b/chat/silc-client/patches/patch-ab Sun Jul 13 12:04:11 2008 +0000
@@ -1,22 +1,44 @@
-$NetBSD: patch-ab,v 1.12 2007/05/18 21:04:25 salo Exp $
+$NetBSD: patch-ab,v 1.13 2008/07/13 12:04:11 tonnerre Exp $
 
---- apps/irssi/Makefile.in.orig        2007-03-07 19:02:19.000000000 +0000
-+++ apps/irssi/Makefile.in     2007-05-18 20:19:04.000000000 +0000
-@@ -282,7 +282,7 @@ sysconfdir = @sysconfdir@
- target_alias = @target_alias@
- @BUILD_PLUGINS_TRUE@PLUGINS = plugins
- @BUILD_SERVERTEST_TRUE@SERVERTEST = servertest
--SUBDIRS = src docs scripts
-+SUBDIRS = src docs
- 
- #
- # INCLUDE defines
-@@ -297,7 +297,7 @@ INCLUDES = $(ADD_INCLUDES) $(SILC_CFLAGS
+--- apps/irssi/Makefile.in.orig        2007-11-06 15:45:06.000000000 +0100
++++ apps/irssi/Makefile.in     2007-12-07 17:25:54.000000000 +0100
+@@ -291,7 +291,7 @@
  #confdir = $(sysconfdir)
  confdir = $(silc_etcdir)
  conffile = silc.conf
--themedir = $(datadir)/silc/themes
-+themedir = $(datadir)/silc-client/themes
- theme_DATA = default.theme
- noinst_HEADERS = irssi-version.h.in
- EXTRA_DIST = \
+-@SILCPLUGIN_FALSE@themedir = $(datadir)/silc/themes
++@SILCPLUGIN_FALSE@themedir = $(datadir)/silc-client/themes
+ @SILCPLUGIN_TRUE@themedir = $(datadir)/irssi/themes
+ @SILCPLUGIN_FALSE@theme_DATA = default.theme plugin.theme
+ @SILCPLUGIN_TRUE@theme_DATA = plugin.theme
+@@ -815,7 +815,8 @@
+       -mkdir -p $(mandir)/man1
+ 
+ doc-install-client:
+-      $(INSTALL_DATA) $(silc_top_srcdir)/apps/irssi/silc.conf $(docdir)/example_silc.conf
++      $(INSTALL) -d $(examplesdir)/
++      $(INSTALL_DATA) $(silc_top_srcdir)/apps/irssi/silc.conf $(examplesdir)/silc.conf.default
+       -@if test -f $(silc_top_srcdir)/doc/silc.1 ; then \
+        $(INSTALL_DATA) $(silc_top_srcdir)/doc/silc.1 $(mandir)/man1; \
+       fi
+@@ -823,16 +824,16 @@
+ etc-install-client:
+       -@if test -d $(silc_top_srcdir)/apps/irssi ; then \
+         mkdir -p $(etcdir) ; \
+-        if test '!' -f $(etcdir)/silc.conf ; then \
++        if test '!' -f $(examplesdir)/silc.conf.default ; then \
+           $(INSTALL_DATA) $(silc_top_srcdir)/apps/irssi/silc.conf \
+-              $(etcdir)/silc.conf; \
++              $(examplesdir)/silc.conf.default; \
+         fi; \
+       fi
+ 
+ install-data-hook:            \
+       install-dirs-client     \
+-      doc-install-client      \
+-      $(ETCINSTALL)
++      doc-install-client
++
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
diff -r 1557d43f5ee3 -r 1c2ae1d09b1c chat/silc-client/patches/patch-ac
--- a/chat/silc-client/patches/patch-ac Sun Jul 13 11:17:58 2008 +0000
+++ b/chat/silc-client/patches/patch-ac Sun Jul 13 12:04:11 2008 +0000
@@ -1,13 +1,13 @@
-$NetBSD: patch-ac,v 1.9 2007/05/18 21:04:25 salo Exp $
+$NetBSD: patch-ac,v 1.10 2008/07/13 12:04:11 tonnerre Exp $
 
---- apps/irssi/src/perl/Makefile.in.orig       2006-01-06 14:46:28.000000000 +0100



Home | Main Index | Thread Index | Old Index