diff options
author | drochner <drochner@pkgsrc.org> | 2012-04-17 18:35:33 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2012-04-17 18:35:33 +0000 |
commit | e3be6b2a538512c4dab9f524e6cddf7502190717 (patch) | |
tree | db491651f973264e2e2260a21b970e7c527efd0e /security | |
parent | 2b686df871540afb2359741f041f350233c60865 (diff) | |
download | pkgsrc-e3be6b2a538512c4dab9f524e6cddf7502190717.tar.gz |
update to 2.0.19
changes:
-cmd line UI improvements
-Ukrainian translation
Diffstat (limited to 'security')
-rw-r--r-- | security/gnupg2/Makefile | 5 | ||||
-rw-r--r-- | security/gnupg2/PLIST | 3 | ||||
-rw-r--r-- | security/gnupg2/distinfo | 10 | ||||
-rw-r--r-- | security/gnupg2/patches/patch-ah | 241 | ||||
-rw-r--r-- | security/gnupg2/patches/patch-ap | 13 |
5 files changed, 8 insertions, 264 deletions
diff --git a/security/gnupg2/Makefile b/security/gnupg2/Makefile index 006f82f5df1..e95d4982884 100644 --- a/security/gnupg2/Makefile +++ b/security/gnupg2/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.38 2011/11/16 07:39:45 sbd Exp $ +# $NetBSD: Makefile,v 1.39 2012/04/17 18:35:33 drochner Exp $ -DISTNAME= gnupg-2.0.18 +DISTNAME= gnupg-2.0.19 PKGNAME= ${DISTNAME:S/gnupg/gnupg2/} -PKGREVISION= 2 CATEGORIES= security MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/gnupg/ EXTRACT_SUFX= .tar.bz2 diff --git a/security/gnupg2/PLIST b/security/gnupg2/PLIST index fba3a244271..19b6dfc4f0b 100644 --- a/security/gnupg2/PLIST +++ b/security/gnupg2/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.4 2009/12/15 20:10:41 drochner Exp $ +@comment $NetBSD: PLIST,v 1.5 2012/04/17 18:35:33 drochner Exp $ bin/gpg-agent libexec/gpg-preset-passphrase libexec/gpg-protect-tool @@ -30,5 +30,6 @@ share/locale/ru/LC_MESSAGES/gnupg2.mo share/locale/sk/LC_MESSAGES/gnupg2.mo share/locale/sv/LC_MESSAGES/gnupg2.mo share/locale/tr/LC_MESSAGES/gnupg2.mo +share/locale/uk/LC_MESSAGES/gnupg2.mo share/locale/zh_CN/LC_MESSAGES/gnupg2.mo share/locale/zh_TW/LC_MESSAGES/gnupg2.mo diff --git a/security/gnupg2/distinfo b/security/gnupg2/distinfo index 56d1e2fdc52..eab990f9958 100644 --- a/security/gnupg2/distinfo +++ b/security/gnupg2/distinfo @@ -1,11 +1,9 @@ -$NetBSD: distinfo,v 1.24 2011/09/12 17:38:33 drochner Exp $ +$NetBSD: distinfo,v 1.25 2012/04/17 18:35:33 drochner Exp $ -SHA1 (gnupg-2.0.18.tar.bz2) = 5ec2f718760cc3121970a140aeea004b64545c46 -RMD160 (gnupg-2.0.18.tar.bz2) = 15e3de278285a3989563d9a8e2ad133113f1cd91 -Size (gnupg-2.0.18.tar.bz2) = 4016606 bytes -SHA1 (patch-ah) = 0c9e061611ebfe22441a161aca016436a70ccc60 +SHA1 (gnupg-2.0.19.tar.bz2) = 190c09e6688f688fb0a5cf884d01e240d957ac1f +RMD160 (gnupg-2.0.19.tar.bz2) = 026b5c5fa2b21c3586f325f48ff1420c987b88a7 +Size (gnupg-2.0.19.tar.bz2) = 4187460 bytes SHA1 (patch-ai) = 4445d30150518f71f996e3b368a81523daded2e2 SHA1 (patch-aj) = bfd21504e0d55f99df543912b1cdf2c573de2f98 SHA1 (patch-al) = ef7c698ed102c4e27bbf707ae5d1fce4c2b5d8d4 SHA1 (patch-ao) = 2f91b33271d5e79d48b392cc58978da08ee46e8a -SHA1 (patch-ap) = 50c6dca1d16a589491bbd91a7267f76e4f90a75c diff --git a/security/gnupg2/patches/patch-ah b/security/gnupg2/patches/patch-ah deleted file mode 100644 index 8783ef974f8..00000000000 --- a/security/gnupg2/patches/patch-ah +++ /dev/null @@ -1,241 +0,0 @@ -$NetBSD: patch-ah,v 1.5 2009/12/15 20:10:41 drochner Exp $ - ---- g10/encr-data.c.orig 2009-06-05 13:58:27.000000000 +0000 -+++ g10/encr-data.c -@@ -37,35 +37,14 @@ static int mdc_decode_filter ( void *opa - static int decode_filter ( void *opaque, int control, IOBUF a, - byte *buf, size_t *ret_len); - --typedef struct decode_filter_context_s -+typedef struct - { - gcry_cipher_hd_t cipher_hd; - gcry_md_hd_t mdc_hash; - char defer[22]; - int defer_filled; - int eof_seen; -- int refcount; --} *decode_filter_ctx_t; -- -- --/* Helper to release the decode context. */ --static void --release_dfx_context (decode_filter_ctx_t dfx) --{ -- if (!dfx) -- return; -- -- assert (dfx->refcount); -- if ( !--dfx->refcount ) -- { -- gcry_cipher_close (dfx->cipher_hd); -- dfx->cipher_hd = NULL; -- gcry_md_close (dfx->mdc_hash); -- dfx->mdc_hash = NULL; -- xfree (dfx); -- } --} -- -+} decode_filter_ctx_t; - - - /**************** -@@ -81,11 +60,7 @@ decrypt_data( void *procctx, PKT_encrypt - unsigned blocksize; - unsigned nprefix; - -- dfx = xtrycalloc (1, sizeof *dfx); -- if (!dfx) -- return gpg_error_from_syserror (); -- dfx->refcount = 1; -- -+ memset( &dfx, 0, sizeof dfx ); - if ( opt.verbose && !dek->algo_info_printed ) - { - if (!openpgp_cipher_test_algo (dek->algo)) -@@ -107,13 +82,13 @@ decrypt_data( void *procctx, PKT_encrypt - - if ( ed->mdc_method ) - { -- if (gcry_md_open (&dfx->mdc_hash, ed->mdc_method, 0 )) -+ if (gcry_md_open (&dfx.mdc_hash, ed->mdc_method, 0 )) - BUG (); - if ( DBG_HASHING ) -- gcry_md_start_debug (dfx->mdc_hash, "checkmdc"); -+ gcry_md_start_debug (dfx.mdc_hash, "checkmdc"); - } - -- rc = openpgp_cipher_open (&dfx->cipher_hd, dek->algo, -+ rc = openpgp_cipher_open (&dfx.cipher_hd, dek->algo, - GCRY_CIPHER_MODE_CFB, - (GCRY_CIPHER_SECURE - | ((ed->mdc_method || dek->algo >= 100)? -@@ -127,7 +102,7 @@ decrypt_data( void *procctx, PKT_encrypt - - - /* log_hexdump( "thekey", dek->key, dek->keylen );*/ -- rc = gcry_cipher_setkey (dfx->cipher_hd, dek->key, dek->keylen); -+ rc = gcry_cipher_setkey (dfx.cipher_hd, dek->key, dek->keylen); - if ( gpg_err_code (rc) == GPG_ERR_WEAK_KEY ) - { - log_info(_("WARNING: message was encrypted with" -@@ -146,7 +121,7 @@ decrypt_data( void *procctx, PKT_encrypt - goto leave; - } - -- gcry_cipher_setiv (dfx->cipher_hd, NULL, 0); -+ gcry_cipher_setiv (dfx.cipher_hd, NULL, 0); - - if ( ed->len ) - { -@@ -167,8 +142,8 @@ decrypt_data( void *procctx, PKT_encrypt - temp[i] = c; - } - -- gcry_cipher_decrypt (dfx->cipher_hd, temp, nprefix+2, NULL, 0); -- gcry_cipher_sync (dfx->cipher_hd); -+ gcry_cipher_decrypt (dfx.cipher_hd, temp, nprefix+2, NULL, 0); -+ gcry_cipher_sync (dfx.cipher_hd); - p = temp; - /* log_hexdump( "prefix", temp, nprefix+2 ); */ - if (dek->symmetric -@@ -178,18 +153,17 @@ decrypt_data( void *procctx, PKT_encrypt - goto leave; - } - -- if ( dfx->mdc_hash ) -- gcry_md_write (dfx->mdc_hash, temp, nprefix+2); -- -- dfx->refcount++; -+ if ( dfx.mdc_hash ) -+ gcry_md_write (dfx.mdc_hash, temp, nprefix+2); -+ - if ( ed->mdc_method ) -- iobuf_push_filter ( ed->buf, mdc_decode_filter, dfx ); -+ iobuf_push_filter( ed->buf, mdc_decode_filter, &dfx ); - else -- iobuf_push_filter ( ed->buf, decode_filter, dfx ); -+ iobuf_push_filter( ed->buf, decode_filter, &dfx ); - - proc_packets ( procctx, ed->buf ); - ed->buf = NULL; -- if ( ed->mdc_method && dfx->eof_seen == 2 ) -+ if ( ed->mdc_method && dfx.eof_seen == 2 ) - rc = gpg_error (GPG_ERR_INV_PACKET); - else if ( ed->mdc_method ) - { -@@ -208,28 +182,26 @@ decrypt_data( void *procctx, PKT_encrypt - bytes are appended. */ - int datalen = gcry_md_get_algo_dlen (ed->mdc_method); - -- assert (dfx->cipher_hd); -- assert (dfx->mdc_hash); -- gcry_cipher_decrypt (dfx->cipher_hd, dfx->defer, 22, NULL, 0); -- gcry_md_write (dfx->mdc_hash, dfx->defer, 2); -- gcry_md_final (dfx->mdc_hash); -+ gcry_cipher_decrypt (dfx.cipher_hd, dfx.defer, 22, NULL, 0); -+ gcry_md_write (dfx.mdc_hash, dfx.defer, 2); -+ gcry_md_final (dfx.mdc_hash); - -- if (dfx->defer[0] != '\xd3' || dfx->defer[1] != '\x14' ) -+ if (dfx.defer[0] != '\xd3' || dfx.defer[1] != '\x14' ) - { - log_error("mdc_packet with invalid encoding\n"); - rc = gpg_error (GPG_ERR_INV_PACKET); - } - else if (datalen != 20 -- || memcmp (gcry_md_read (dfx->mdc_hash, 0), -- dfx->defer+2,datalen )) -+ || memcmp (gcry_md_read (dfx.mdc_hash, 0),dfx.defer+2,datalen)) - rc = gpg_error (GPG_ERR_BAD_SIGNATURE); -- /* log_printhex("MDC message:", dfx->defer, 22); */ -- /* log_printhex("MDC calc:", gcry_md_read (dfx->mdc_hash,0), datalen); */ -+ /* log_printhex("MDC message:", dfx.defer, 22); */ -+ /* log_printhex("MDC calc:", gcry_md_read (dfx.mdc_hash,0), datalen); */ - } - - - leave: -- release_dfx_context (dfx); -+ gcry_cipher_close (dfx.cipher_hd); -+ gcry_md_close (dfx.mdc_hash); - return rc; - } - -@@ -240,7 +212,7 @@ static int - mdc_decode_filter (void *opaque, int control, IOBUF a, - byte *buf, size_t *ret_len) - { -- decode_filter_ctx_t dfx = opaque; -+ decode_filter_ctx_t *dfx = opaque; - size_t n, size = *ret_len; - int rc = 0; - int c; -@@ -252,11 +224,11 @@ mdc_decode_filter (void *opaque, int con - } - else if( control == IOBUFCTRL_UNDERFLOW ) - { -- assert (a); -- assert ( size > 44 ); -+ assert(a); -+ assert( size > 44 ); - - /* Get at least 22 bytes and put it somewhere ahead in the buffer. */ -- for (n=22; n < 44 ; n++ ) -+ for(n=22; n < 44 ; n++ ) - { - if( (c = iobuf_get(a)) == -1 ) - break; -@@ -305,10 +277,8 @@ mdc_decode_filter (void *opaque, int con - - if ( n ) - { -- if ( dfx->cipher_hd ) -- gcry_cipher_decrypt (dfx->cipher_hd, buf, n, NULL, 0); -- if ( dfx->mdc_hash ) -- gcry_md_write (dfx->mdc_hash, buf, n); -+ gcry_cipher_decrypt (dfx->cipher_hd, buf, n, NULL, 0); -+ gcry_md_write (dfx->mdc_hash, buf, n); - } - else - { -@@ -317,10 +287,6 @@ mdc_decode_filter (void *opaque, int con - } - *ret_len = n; - } -- else if ( control == IOBUFCTRL_FREE ) -- { -- release_dfx_context (dfx); -- } - else if ( control == IOBUFCTRL_DESC ) - { - *(char**)buf = "mdc_decode_filter"; -@@ -332,7 +298,7 @@ mdc_decode_filter (void *opaque, int con - static int - decode_filter( void *opaque, int control, IOBUF a, byte *buf, size_t *ret_len) - { -- decode_filter_ctx_t fc = opaque; -+ decode_filter_ctx_t *fc = opaque; - size_t n, size = *ret_len; - int rc = 0; - -@@ -343,18 +309,11 @@ decode_filter( void *opaque, int control - if ( n == -1 ) - n = 0; - if ( n ) -- { -- if (fc->cipher_hd) -- gcry_cipher_decrypt (fc->cipher_hd, buf, n, NULL, 0); -- } -+ gcry_cipher_decrypt (fc->cipher_hd, buf, n, NULL, 0); - else - rc = -1; /* EOF */ - *ret_len = n; - } -- else if ( control == IOBUFCTRL_FREE ) -- { -- release_dfx_context (fc); -- } - else if ( control == IOBUFCTRL_DESC ) - { - *(char**)buf = "decode_filter"; diff --git a/security/gnupg2/patches/patch-ap b/security/gnupg2/patches/patch-ap deleted file mode 100644 index 008d47f11d9..00000000000 --- a/security/gnupg2/patches/patch-ap +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ap,v 1.1 2011/09/12 17:38:33 drochner Exp $ - ---- configure.orig 2011-08-04 14:27:00.000000000 +0000 -+++ configure -@@ -9384,7 +9384,7 @@ else - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext - /* end confdefs.h. */ --include <curl/curl.h> -+#include <curl/curl.h> - int - main () - { |