Mon Feb 22 17:19:09 2010 UTC ()
fix a problem with the curses widget and non-UTF8 locales: keys which
used less bytes in the system encoding than in the UTF8 passed to
the caller caused that the passphrase got truncated because only
the input length was accounted for
bump PKGREVISION


(drochner)
diff -r1.24 -r1.25 pkgsrc/security/pinentry/Makefile
diff -r1.5 -r1.6 pkgsrc/security/pinentry/distinfo
diff -r0 -r1.3 pkgsrc/security/pinentry/patches/patch-aa

cvs diff -r1.24 -r1.25 pkgsrc/security/pinentry/Makefile (expand / switch to unified diff)

--- pkgsrc/security/pinentry/Makefile 2010/02/08 11:44:39 1.24
+++ pkgsrc/security/pinentry/Makefile 2010/02/22 17:19:09 1.25
@@ -1,17 +1,18 @@ @@ -1,17 +1,18 @@
1# $NetBSD: Makefile,v 1.24 2010/02/08 11:44:39 drochner Exp $ 1# $NetBSD: Makefile,v 1.25 2010/02/22 17:19:09 drochner Exp $
2# 2#
3 3
4DISTNAME= pinentry-0.7.6 4DISTNAME= pinentry-0.7.6
 5PKGREVISION= 1
5CATEGORIES= security 6CATEGORIES= security
6MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/pinentry/ 7MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/pinentry/
7 8
8MAINTAINER= shannonjr@NetBSD.org 9MAINTAINER= shannonjr@NetBSD.org
9HOMEPAGE= ftp://ftp.gnupg.org/gcrypt/pinentry/ 10HOMEPAGE= ftp://ftp.gnupg.org/gcrypt/pinentry/
10COMMENT= Applications for entering PINs or Passphrases 11COMMENT= Applications for entering PINs or Passphrases
11 12
12PKG_DESTDIR_SUPPORT= user-destdir 13PKG_DESTDIR_SUPPORT= user-destdir
13 14
14GNU_CONFIGURE= yes 15GNU_CONFIGURE= yes
15CONFIGURE_ARGS+= --with-libiconv-prefix=${BUILDLINK_PREFIX.iconv} 16CONFIGURE_ARGS+= --with-libiconv-prefix=${BUILDLINK_PREFIX.iconv}
16 17
17INFO_FILES= yes 18INFO_FILES= yes

cvs diff -r1.5 -r1.6 pkgsrc/security/pinentry/distinfo (expand / switch to unified diff)

--- pkgsrc/security/pinentry/distinfo 2009/12/15 19:50:47 1.5
+++ pkgsrc/security/pinentry/distinfo 2010/02/22 17:19:09 1.6
@@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
1$NetBSD: distinfo,v 1.5 2009/12/15 19:50:47 drochner Exp $ 1$NetBSD: distinfo,v 1.6 2010/02/22 17:19:09 drochner Exp $
2 2
3SHA1 (pinentry-0.7.6.tar.gz) = 0c525ce81e5589bc9a4f2eb72705bed2b3e9a8b9 3SHA1 (pinentry-0.7.6.tar.gz) = 0c525ce81e5589bc9a4f2eb72705bed2b3e9a8b9
4RMD160 (pinentry-0.7.6.tar.gz) = 6e69eee88b5cbb919ced79971cd4794f5e659023 4RMD160 (pinentry-0.7.6.tar.gz) = 6e69eee88b5cbb919ced79971cd4794f5e659023
5Size (pinentry-0.7.6.tar.gz) = 475101 bytes 5Size (pinentry-0.7.6.tar.gz) = 475101 bytes
 6SHA1 (patch-aa) = cd30ad4f3a3737687dc5786ebd861ef3b17c600e

File Added: pkgsrc/security/pinentry/patches/Attic/patch-aa
$NetBSD: patch-aa,v 1.3 2010/02/22 17:19:09 drochner Exp $

--- pinentry/pinentry-curses.c.orig	2009-04-16 15:06:53.000000000 +0000
+++ pinentry/pinentry-curses.c
@@ -819,8 +819,10 @@ dialog_run (pinentry_t pinentry, const c
       if (pin_utf8)
 	{
 	  pinentry_setbufferlen (pinentry, strlen (pin_utf8) + 1);
-	  if (pinentry->pin)
+	  if (pinentry->pin) {
 	    strcpy (pinentry->pin, pin_utf8);
+	    diag.pin_len = strlen (pin_utf8);
+	  }
 	  secmem_free (pin_utf8);
 	  pinentry->locale_err = 0;
 	}