diff options
author | agc <agc@pkgsrc.org> | 2013-12-20 17:16:48 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2013-12-20 17:16:48 +0000 |
commit | dd262a3680878450db99266bcd471834ca3554da (patch) | |
tree | f014dde51517f1039819d9f4108de838c0b9a2c0 /security | |
parent | 6d5cab1845f0800127aeed8ff92c75ccf55fef67 (diff) | |
download | pkgsrc-dd262a3680878450db99266bcd471834ca3554da.tar.gz |
Update netpgpverify and libnetpgpverify to version 20131219
Fix a call to mp_radix_size to use a pointer to the BIGNUM, not the
address of the pointer, when accessing. Fixes a problem observed in
other software when using the same code. The problem was obscured
from the compiler because of the use of __UNCONST(). This makes the
BN_dec2bn() and BN_hex2bn() functions (in libnetpgpverify) work
properly.
OK: wiz
Diffstat (limited to 'security')
-rw-r--r-- | security/libnetpgpverify/files/src/libbn/bignum.c | 2 | ||||
-rw-r--r-- | security/libnetpgpverify/files/src/libverify/verify.h | 4 | ||||
-rw-r--r-- | security/netpgpverify/Makefile | 4 | ||||
-rw-r--r-- | security/netpgpverify/files/bignum.c | 2 | ||||
-rw-r--r-- | security/netpgpverify/files/verify.h | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/security/libnetpgpverify/files/src/libbn/bignum.c b/security/libnetpgpverify/files/src/libbn/bignum.c index 341468ec0da..2002c78c1a4 100644 --- a/security/libnetpgpverify/files/src/libbn/bignum.c +++ b/security/libnetpgpverify/files/src/libbn/bignum.c @@ -5155,7 +5155,7 @@ getbn(BIGNUM **a, const char *str, int radix) if (mp_getradix_num(*a, radix, __UNCONST(str)) != MP_OKAY) { return 0; } - mp_radix_size(__UNCONST(a), radix, &len); + mp_radix_size(__UNCONST(*a), radix, &len); return len - 1; } diff --git a/security/libnetpgpverify/files/src/libverify/verify.h b/security/libnetpgpverify/files/src/libverify/verify.h index 36ffaacab5b..9e545abad43 100644 --- a/security/libnetpgpverify/files/src/libverify/verify.h +++ b/security/libnetpgpverify/files/src/libverify/verify.h @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2012 Alistair Crooks <agc@NetBSD.org> + * Copyright (c) 2012,2013 Alistair Crooks <agc@NetBSD.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -23,7 +23,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef NETPGP_VERIFY_H_ -#define NETPGP_VERIFY_H_ 20120928 +#define NETPGP_VERIFY_H_ 20131219 #include <sys/types.h> diff --git a/security/netpgpverify/Makefile b/security/netpgpverify/Makefile index eb3814e8bf3..0d7c4cd454b 100644 --- a/security/netpgpverify/Makefile +++ b/security/netpgpverify/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.3 2013/04/26 23:24:55 agc Exp $ +# $NetBSD: Makefile,v 1.4 2013/12/20 17:16:48 agc Exp $ -DISTNAME= netpgpverify-20130426 +DISTNAME= netpgpverify-20131219 CATEGORIES= security MASTER_SITES= # empty DISTFILES= # empty diff --git a/security/netpgpverify/files/bignum.c b/security/netpgpverify/files/bignum.c index c825b30c501..e983005328a 100644 --- a/security/netpgpverify/files/bignum.c +++ b/security/netpgpverify/files/bignum.c @@ -5157,7 +5157,7 @@ getbn(BIGNUM **a, const char *str, int radix) if (mp_getradix_num(*a, radix, __UNCONST(str)) != MP_OKAY) { return 0; } - mp_radix_size(__UNCONST(a), radix, &len); + mp_radix_size(__UNCONST(*a), radix, &len); return len - 1; } diff --git a/security/netpgpverify/files/verify.h b/security/netpgpverify/files/verify.h index fbeb48d1152..11f0345ebc3 100644 --- a/security/netpgpverify/files/verify.h +++ b/security/netpgpverify/files/verify.h @@ -23,9 +23,9 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef NETPGP_VERIFY_H_ -#define NETPGP_VERIFY_H_ 20130426 +#define NETPGP_VERIFY_H_ 20131219 -#define NETPGPVERIFY_VERSION "netpgpverify portable 20130426" +#define NETPGPVERIFY_VERSION "netpgpverify portable 20131219" #include <sys/types.h> |