Fri Mar 7 16:16:22 2008 UTC ()
Update to 1.4.0:

Noteworthy changes in version 1.4.0 (2007-12-10)
------------------------------------------------

 * New configure option --disable-padlock-support which is mostly
   useful in case of build problems.

Noteworthy changes in version 1.3.2 (2007-12-03)
------------------------------------------------

 * The visibility attribute is now used if supported by the toolchain.

 * The ACE engine of VIA processors is now used for AES-128.

 * The ASN.1 DER template for SHA-224 has been fixed.

Noteworthy changes in version 1.3.1 (2007-10-26)
------------------------------------------------

 * The entire library is now under the LGPL. The helper programs and
   the manual are under the GPL.  Kudos to Peter Gutmann for giving
   permissions to relicense the rndw32 and rndunix modules.

 * The Camellia cipher is now under the LGPL and included by default.

 * Fixed a bug in the detection of symbol prefixes which inhibited the
   build of optimzied assembler code on certain systems.

 * Updated the entropy gatherer for W32.

Noteworthy changes in version 1.3.0 (2007-05-04)
------------------------------------------------

 * Changed the way the RNG gets initialized. This allows to keep it
   uninitialized as long as no random numbers are used.  To override
   this, the new macro gcry_fast_random_poll may be used.  It is in
   general a good idea to spread this macro into the application code
   to make sure that these polls happen often enough.

 * Made the RNG immune against fork without exec.

 * Reading and writing the random seed file is now protected by a
   fcntl style file lock on systems that provide this function.

 * Support for SHA-224 and HMAC using SHA-384 and SHA-512.

 * Support for the SEED cipher.

 * Support for the Camellia cipher.  Note that Camellia is disabled by
   default, and that enabling it changes the license of libgcrypt from
   LGPL to GPL.

 * Support for OFB encryption mode.

 * gcry_mpi_rshift does not anymore truncate the shift count.

 * Reserved algorithm ranges for use by applications.

 * Support for DSA2.

 * The new function gcry_md_debug should be used instead of the
   gcry_md_start_debug and gcry_md_stop_debug macros.

 * New configure option --enable-random-daemon to support a system
   wide random daemon.  The daemon code is experimental and not yet
   very well working.  It will eventually allow to keep a global
   random pool for the sake of short living processes.

 * Non executable stack support is now used by default on systems
   supporting it.

 * Support for Microsoft Windows.

 * Assembler support for the AMD64 architecture.

 * New configure option --enable-mpi-path for optimized builds.

 * Experimental support for ECDSA; should only be used for testing.

 * New control code GCRYCTL_PRINT_CONFIG to print the build
   configuration.

 * Minor changes to some function declarations.  Buffer arguments are
   now typed as void pointer.  This should not affect any compilation.
   Fixed two bugs in return values and clarified documentation.

 * Interface changes relative to the 1.2.0 release:
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 gcry_fast_random_poll	 NEW
 gcry_md_debug           NEW
 gcry_sexp_nth_string    NEW
 GCRY_MD_SHA224          NEW
 GCRY_PK_USAGE_CERT      NEW
 GCRY_PK_USAGE_AUTH      NEW
 GCRY_PK_USAGE_UNKN      NEW
 GCRY_PK_ECDSA           NEW
 GCRY_CIPHER_SEED        NEW
 GCRY_CIPHER_CAMELLIA128 NEW
 GCRY_CIPHER_CAMELLIA192 NEW
 GCRY_CIPHER_CAMELLIA256 NEW
 GCRYCTL_FAKED_RANDOM_P  NEW
 GCRYCTL_PRINT_CONFIG    NEW
 GCRYCTL_SET_RNDEGD_SOCKET  NEW.
 gcry_mpi_scan           CHANGED: Argument BUFFER is now void*.
 gcry_pk_algo_name       CHANGED: Returns "?" instead of NULL.
 gcry_cipher_algo_name   CHANGED: Returns "?" instead of "".
 gcry_pk_spec_t          CHANGED: Element ALIASES is now const ptr.
 gcry_md_write_t         CHANGED: Argument BUF is now a const void*.
 gcry_md_ctl             CHANGED: Argument BUFFER is now void*.
 gcry_cipher_encrypt     CHANGED: Arguments IN and OUT are now void*.
 gcry_cipher_decrypt     CHANGED: Arguments IN and OUT are now void*.
 gcry_sexp_sprint        CHANGED: Argument BUFFER is now void*.
 gcry_create_nonce       CHANGED: Argument BUFFER is now void*.
 gcry_randomize          CHANGED: Argument BUFFER is now void*.
 gcry_cipher_register    CHANGED: Argument ALGORITHM_ID is now int*.


(wiz)
diff -r1.39 -r1.40 pkgsrc/security/libgcrypt/Makefile
diff -r1.8 -r1.9 pkgsrc/security/libgcrypt/PLIST
diff -r1.21 -r1.22 pkgsrc/security/libgcrypt/distinfo
diff -r1.5 -r1.6 pkgsrc/security/libgcrypt/patches/patch-ac
diff -r1.3 -r1.4 pkgsrc/security/libgcrypt/patches/patch-ae
diff -r1.1 -r0 pkgsrc/security/libgcrypt/patches/patch-ai

cvs diff -r1.39 -r1.40 pkgsrc/security/libgcrypt/Makefile (expand / switch to unified diff)

--- pkgsrc/security/libgcrypt/Makefile 2007/08/29 23:11:37 1.39
+++ pkgsrc/security/libgcrypt/Makefile 2008/03/07 16:16:22 1.40
@@ -1,35 +1,37 @@ @@ -1,35 +1,37 @@
1# $NetBSD: Makefile,v 1.39 2007/08/29 23:11:37 wiz Exp $ 1# $NetBSD: Makefile,v 1.40 2008/03/07 16:16:22 wiz Exp $
2 2
3DISTNAME= libgcrypt-1.2.4 3DISTNAME= libgcrypt-1.4.0
4CATEGORIES= security 4CATEGORIES= security
5MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/libgcrypt/ \ 5MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/libgcrypt/ \
6 http://gd.tuwien.ac.at/privacy/gnupg/libgcrypt/ 6 http://gd.tuwien.ac.at/privacy/gnupg/libgcrypt/
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://directory.fsf.org/security/libgcrypt.html 9HOMEPAGE= http://directory.fsf.org/security/libgcrypt.html
10COMMENT= GNU cryptographic library 10COMMENT= GNU cryptographic library
11 11
12PKG_INSTALLATION_TYPES= overwrite pkgviews 12PKG_INSTALLATION_TYPES= overwrite pkgviews
13PKG_DESTDIR_SUPPORT= user-destdir 13PKG_DESTDIR_SUPPORT= user-destdir
14 14
15USE_LIBTOOL= yes 15USE_LIBTOOL= yes
16GNU_CONFIGURE= yes 16GNU_CONFIGURE= yes
17 17
18TEST_TARGET= check 18TEST_TARGET= check
19 19
20TEXINFO_REQD= 4.0 20TEXINFO_REQD= 4.0
21INFO_FILES= yes # PLIST 21INFO_FILES= yes # PLIST
22 22
 23#LICENSE= gnu-gpl-v2 gnu-lgpl-v21
 24
23.include "../../mk/bsd.prefs.mk" 25.include "../../mk/bsd.prefs.mk"
24 26
25.if empty(MACHINE_PLATFORM:MNetBSD-*-i386) && \ 27.if empty(MACHINE_PLATFORM:MNetBSD-*-i386) && \
26 empty(MACHINE_PLATFORM:MNetBSD-*-alpha) && \ 28 empty(MACHINE_PLATFORM:MNetBSD-*-alpha) && \
27 empty(MACHINE_PLATFORM:MNetBSD-*-sparc) && \ 29 empty(MACHINE_PLATFORM:MNetBSD-*-sparc) && \
28 empty(MACHINE_PLATFORM:M*-*-hppa) 30 empty(MACHINE_PLATFORM:M*-*-hppa)
29CONFIGURE_ARGS+= --disable-asm 31CONFIGURE_ARGS+= --disable-asm
30.endif 32.endif
31 33
32.include "options.mk" 34.include "options.mk"
33 35
34.include "../../security/libgpg-error/buildlink3.mk" 36.include "../../security/libgpg-error/buildlink3.mk"
35.include "../../mk/pthread.buildlink3.mk" 37.include "../../mk/pthread.buildlink3.mk"

cvs diff -r1.8 -r1.9 pkgsrc/security/libgcrypt/PLIST (expand / switch to unified diff)

--- pkgsrc/security/libgcrypt/PLIST 2006/03/31 23:56:29 1.8
+++ pkgsrc/security/libgcrypt/PLIST 2008/03/07 16:16:22 1.9
@@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
1@comment $NetBSD: PLIST,v 1.8 2006/03/31 23:56:29 jlam Exp $ 1@comment $NetBSD: PLIST,v 1.9 2008/03/07 16:16:22 wiz Exp $
 2bin/dumpsexp
2bin/libgcrypt-config 3bin/libgcrypt-config
3include/gcrypt-module.h 4include/gcrypt-module.h
4include/gcrypt.h 5include/gcrypt.h
5info/gcrypt.info 6info/gcrypt.info
6lib/libgcrypt.la 7lib/libgcrypt.la
7share/aclocal/libgcrypt.m4 8share/aclocal/libgcrypt.m4

cvs diff -r1.21 -r1.22 pkgsrc/security/libgcrypt/distinfo (expand / switch to unified diff)

--- pkgsrc/security/libgcrypt/distinfo 2007/08/29 23:11:38 1.21
+++ pkgsrc/security/libgcrypt/distinfo 2008/03/07 16:16:22 1.22
@@ -1,16 +1,12 @@ @@ -1,16 +1,12 @@
1$NetBSD: distinfo,v 1.21 2007/08/29 23:11:38 wiz Exp $ 1$NetBSD: distinfo,v 1.22 2008/03/07 16:16:22 wiz Exp $
2 2
3SHA1 (libgcrypt-1.2.4-idea.diff.bz2) = 092458ed8ed3e5fd2230c25b384f05ba99db6d1e 3SHA1 (libgcrypt-1.4.0.tar.gz) = 69183b7100b60da8eb1648f49836a611454541bb
4RMD160 (libgcrypt-1.2.4-idea.diff.bz2) = 199cfb4224b6cebc940f4cfb876deb700e9dc044 4RMD160 (libgcrypt-1.4.0.tar.gz) = e40d171e5dcc9344ae1a0a92fa0ea0013cc305cb
5Size (libgcrypt-1.2.4-idea.diff.bz2) = 2924 bytes 5Size (libgcrypt-1.4.0.tar.gz) = 1204533 bytes
6SHA1 (libgcrypt-1.2.4.tar.gz) = d279e7a4464cccf0cc4e29c374a1e8325fc65b9a 
7RMD160 (libgcrypt-1.2.4.tar.gz) = 6a5ba284efe48c6963e21d8558a69096aea03d84 
8Size (libgcrypt-1.2.4.tar.gz) = 1013625 bytes 
9SHA1 (patch-aa) = d8f659e4aac872abb152252731fd29bdaac635e3 6SHA1 (patch-aa) = d8f659e4aac872abb152252731fd29bdaac635e3
10SHA1 (patch-ab) = bd713f7cbc6782ced8c2fd2b5541ac52d2a10fbe 7SHA1 (patch-ab) = bd713f7cbc6782ced8c2fd2b5541ac52d2a10fbe
11SHA1 (patch-ac) = 7c0db64d351c3bdd8b9763d94714db84f05b0a96 8SHA1 (patch-ac) = e264795e3f0f5bcbcb0979cf8f7b22f6b2ef2438
12SHA1 (patch-ad) = f32281612b51c5bb3788cf03c6f5615bdfc0d3e8 9SHA1 (patch-ad) = f32281612b51c5bb3788cf03c6f5615bdfc0d3e8
13SHA1 (patch-ae) = 7285281151403af32837e24b795959899d6a3bcb 10SHA1 (patch-ae) = 4606cff84fe77c7799081883dd9b3f25d54a5868
14SHA1 (patch-af) = f62f9f5b8ebc9e5f3a2570ec609de66e2d77e587 11SHA1 (patch-af) = f62f9f5b8ebc9e5f3a2570ec609de66e2d77e587
15SHA1 (patch-ag) = 104bbbbb20317e9b12a7d2f645f31fa039294b41 12SHA1 (patch-ag) = 104bbbbb20317e9b12a7d2f645f31fa039294b41
16SHA1 (patch-ai) = 95e72bf9ba6980f0509f2bcd8ad4e0a6cf9e7b41 

cvs diff -r1.5 -r1.6 pkgsrc/security/libgcrypt/patches/Attic/patch-ac (expand / switch to unified diff)

--- pkgsrc/security/libgcrypt/patches/Attic/patch-ac 2007/02/03 00:08:51 1.5
+++ pkgsrc/security/libgcrypt/patches/Attic/patch-ac 2008/03/07 16:16:22 1.6
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1$NetBSD: patch-ac,v 1.5 2007/02/03 00:08:51 wiz Exp $ 1$NetBSD: patch-ac,v 1.6 2008/03/07 16:16:22 wiz Exp $
2 2
3--- src/gcrypt.h.orig 2007-02-01 18:43:13.000000000 +0000 3--- src/gcrypt.h.orig 2007-12-10 09:05:46.000000000 +0000
4+++ src/gcrypt.h 4+++ src/gcrypt.h
5@@ -171,6 +171,11 @@ enum gcry_thread_option 5@@ -171,6 +171,11 @@ gcry_err_code_t gcry_error_from_errno (i
6 #define _GCRY_PTH_SOCKADDR void 6
7 #define _GCRY_PTH_SOCKLEN_T int 7
8 #define _GCRY_PTH_MSGHDR void 8 enum gcry_thread_option
9+#elif defined(__INTERIX) 9+#elif defined(__INTERIX)
10+#define _GCRY_PTH_FD_SET fd_set 10+#define _GCRY_PTH_FD_SET fd_set
11+#define _GCRY_PTH_SOCKADDR struct sockaddr 11+#define _GCRY_PTH_SOCKADDR struct sockaddr
12+#define _GCRY_PTH_SOCKLEN_T int 12+#define _GCRY_PTH_SOCKLEN_T int
13+#define _GCRY_PTH_MSGHDR void 13+#define _GCRY_PTH_MSGHDR void
14 #else 14 {
15 #define _GCRY_PTH_FD_SET fd_set 15 GCRY_THREAD_OPTION_DEFAULT = 0,
16 #define _GCRY_PTH_SOCKADDR struct sockaddr 16 GCRY_THREAD_OPTION_USER = 1,

cvs diff -r1.3 -r1.4 pkgsrc/security/libgcrypt/patches/Attic/patch-ae (expand / switch to unified diff)

--- pkgsrc/security/libgcrypt/patches/Attic/patch-ae 2005/10/06 12:20:41 1.3
+++ pkgsrc/security/libgcrypt/patches/Attic/patch-ae 2008/03/07 16:16:22 1.4
@@ -1,32 +1,32 @@ @@ -1,32 +1,32 @@
1$NetBSD: patch-ae,v 1.3 2005/10/06 12:20:41 wiz Exp $ 1$NetBSD: patch-ae,v 1.4 2008/03/07 16:16:22 wiz Exp $
2 2
3--- src/ath.h.orig 2005-07-29 15:45:42.000000000 +0200 3--- src/ath.h.orig 2007-02-22 11:15:20.000000000 +0000
4+++ src/ath.h 4+++ src/ath.h
5@@ -31,6 +31,12 @@ 5@@ -31,6 +31,12 @@
6  6
7 #include <config.h> 7 #include <config.h>
8  8
9+#ifdef HAVE_SYS_SELECT_H 9+#ifdef HAVE_SYS_SELECT_H
10+# include <sys/select.h> 10+# include <sys/select.h>
11+#else 11+#else
12+# include <sys/time.h> 12+# include <sys/time.h>
13+#endif 13+#endif
14+ 14+
15  15
16 /* Define _ATH_EXT_SYM_PREFIX if you want to give all external symbols 16 /* Define _ATH_EXT_SYM_PREFIX if you want to give all external symbols
17 a prefix. */ 17 a prefix. */
18@@ -83,6 +89,14 @@ struct ath_ops 18@@ -83,6 +89,14 @@ struct ath_ops
19 int (*connect) (int s, void *addr, socklen_t length); 19 int (*connect) (int s, void *addr, int length);
20 int (*sendmsg) (int s, const void *msg, int flags); 20 int (*sendmsg) (int s, const void *msg, int flags);
21 int (*recvmsg) (int s, void *msg, int flags); 21 int (*recvmsg) (int s, void *msg, int flags);
22+#elif defined(__INTERIX) 22+#elif defined(__INTERIX)
23+ ssize_t (*select) (int nfd, fd_set *rset, fd_set *wset, fd_set *eset, 23+ ssize_t (*select) (int nfd, fd_set *rset, fd_set *wset, fd_set *eset,
24+ struct timeval *timeout); 24+ struct timeval *timeout);
25+ ssize_t (*waitpid) (pid_t pid, int *status, int options); 25+ ssize_t (*waitpid) (pid_t pid, int *status, int options);
26+ int (*accept) (int s, struct sockaddr *addr, socklen_t *length_ptr); 26+ int (*accept) (int s, struct sockaddr *addr, socklen_t *length_ptr);
27+ int (*connect) (int s, struct sockaddr *addr, socklen_t length); 27+ int (*connect) (int s, struct sockaddr *addr, socklen_t length);
28+ int (*sendmsg) (int s, const void *msg, int flags); 28+ int (*sendmsg) (int s, const void *msg, int flags);
29+ int (*recvmsg) (int s, void *msg, int flags); 29+ int (*recvmsg) (int s, void *msg, int flags);
30 #else 30 #else
31 ssize_t (*select) (int nfd, fd_set *rset, fd_set *wset, fd_set *eset, 31 ssize_t (*select) (int nfd, fd_set *rset, fd_set *wset, fd_set *eset,
32 struct timeval *timeout); 32 struct timeval *timeout);

File Deleted: pkgsrc/security/libgcrypt/patches/Attic/patch-ai