------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX keyserv.rc 472 RMD160 f34ba7fe7bb74ee979924a4fa683ba35811cdad0 SHA1 d90442bd19e63c04ff3e0d9d6a6f4ceef984f471 SHA256 97cdd5f9bb59f390e695738751ba9cf31485bfae089cdfb7768ea7ba7ddac271
MD5 70c6536deab96c324497ded5385e6b75 files/keyserv.rc 472
RMD160 f34ba7fe7bb74ee979924a4fa683ba35811cdad0 files/keyserv.rc 472
SHA256 97cdd5f9bb59f390e695738751ba9cf31485bfae089cdfb7768ea7ba7ddac271 files/keyserv.rc 472
+AUX nis-utils-gmp-fixes.patch 8681 RMD160 50ec200021ca8ffa246d8984f268493c9f1e6804 SHA1 c43c96e7e4909b6b1c26be9292e8ea7916257af8 SHA256 9aeaafbeb76ff6a7be43ff29765c2b5f5ababc3353d559d21c2e591ad1447166
+MD5 49384f7e369eef1d3181b441db4f5908 files/nis-utils-gmp-fixes.patch 8681
+RMD160 50ec200021ca8ffa246d8984f268493c9f1e6804 files/nis-utils-gmp-fixes.patch 8681
+SHA256 9aeaafbeb76ff6a7be43ff29765c2b5f5ababc3353d559d21c2e591ad1447166 files/nis-utils-gmp-fixes.patch 8681
DIST nis-utils-1.4.1.tar.bz2 387397 RMD160 c7cd0d289080efb7a08ae2e668163a0158ddfcb5 SHA1 a9da461566ddbf375855a258af1cba6367a53ad7 SHA256 bf559b3c48c4521fe79bf86efa9e20ab65ec9d85966a6a9268040af2f00ff6d1
EBUILD nis-utils-1.4.1-r1.ebuild 769 RMD160 5d932dff8922badbf19c5502c86f66f926b812c1 SHA1 569998455c5e04c2f9d9bd99dda922b148823746 SHA256 6baaa02c1c0f28a2b34f1a2fd8e206690bee62e1d7d9dba876c92b95d8bf1fe1
MD5 e84557b6095d73a190b77db084080369 nis-utils-1.4.1-r1.ebuild 769
RMD160 5d932dff8922badbf19c5502c86f66f926b812c1 nis-utils-1.4.1-r1.ebuild 769
SHA256 6baaa02c1c0f28a2b34f1a2fd8e206690bee62e1d7d9dba876c92b95d8bf1fe1 nis-utils-1.4.1-r1.ebuild 769
-MISC ChangeLog 1192 RMD160 52a5d1835638e6c980a02c0728e31b139975fb46 SHA1 5f1c86ac5a4dfa5fd15feb3523f83150bc7f109a SHA256 b507e65f56d87c0609d5dcef18060edc337ef0fdd67c6d6aef7051e03b042ded
-MD5 e5a958680b703bba232a7308be845ac6 ChangeLog 1192
-RMD160 52a5d1835638e6c980a02c0728e31b139975fb46 ChangeLog 1192
-SHA256 b507e65f56d87c0609d5dcef18060edc337ef0fdd67c6d6aef7051e03b042ded ChangeLog 1192
+EBUILD nis-utils-1.4.1-r2.ebuild 852 RMD160 d7b64a087b6845c21a6eb4afae86abcf1547be2f SHA1 9f9bf65afa440fe56792c3c514fb9dff9f507151 SHA256 b210d0dc86d20625ee6ba987ac8d4b10c1662fb5caf83d1f361f5861af819e9c
+MD5 0740321b1205a223ec4840cf8d2f29f7 nis-utils-1.4.1-r2.ebuild 852
+RMD160 d7b64a087b6845c21a6eb4afae86abcf1547be2f nis-utils-1.4.1-r2.ebuild 852
+SHA256 b210d0dc86d20625ee6ba987ac8d4b10c1662fb5caf83d1f361f5861af819e9c nis-utils-1.4.1-r2.ebuild 852
+MISC ChangeLog 1422 RMD160 21aef62cb81009195ac3b8a877d4be82a049b593 SHA1 9a9817709c9bf5eeb379d9fe0c128af852f4baf1 SHA256 19fe6c8259a986aced3ca2db58a3eadd73760260cb83423f13a5af6cf81b8398
+MD5 839b25717988bcb4fa748fac6b617372 ChangeLog 1422
+RMD160 21aef62cb81009195ac3b8a877d4be82a049b593 ChangeLog 1422
+SHA256 19fe6c8259a986aced3ca2db58a3eadd73760260cb83423f13a5af6cf81b8398 ChangeLog 1422
MISC metadata.xml 263 RMD160 2cbab7a3523e1d56e9291278e19531540f32f38d SHA1 27e9d5af27fd2f08837ce72163721dcc992657a4 SHA256 115231ba6f03c08aa2356f0df81fb7e474e109ddd403eb90221dbd465d8f540f
MD5 f46e7b74d7deb7bb7f0c3f31ec651871 metadata.xml 263
RMD160 2cbab7a3523e1d56e9291278e19531540f32f38d metadata.xml 263
MD5 21b0e7f94df25f825cdceeae04a59abb files/digest-nis-utils-1.4.1-r1 250
RMD160 c7cd7aed130359605b7ddc97c283321f9fd9a4c9 files/digest-nis-utils-1.4.1-r1 250
SHA256 f76b1600ee8cb15f56a222aa6169a26861fc4c422c1bffb8c72baf86a8c99b75 files/digest-nis-utils-1.4.1-r1 250
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5-ecc0.1.6 (GNU/Linux)
-
-iD8DBQFE3NUFKRy60XGEcJIRAiyKAJ95UFuyXc+Qx1J3V6kHdEa/Rg4NMACfcQ5Z
-nk4bSN+xUKUtEdq1PPDoMsg=
-=UdR5
------END PGP SIGNATURE-----
+MD5 21b0e7f94df25f825cdceeae04a59abb files/digest-nis-utils-1.4.1-r2 250
+RMD160 c7cd7aed130359605b7ddc97c283321f9fd9a4c9 files/digest-nis-utils-1.4.1-r2 250
+SHA256 f76b1600ee8cb15f56a222aa6169a26861fc4c422c1bffb8c72baf86a8c99b75 files/digest-nis-utils-1.4.1-r2 250
--- /dev/null
+diff -uNr nis-utils-1.4.1/lib/key_common/generic.c nis-utils-1.4.1-patch/lib/key_common/generic.c
+--- nis-utils-1.4.1/lib/key_common/generic.c 1998-10-11 12:19:44.000000000 -0400
++++ nis-utils-1.4.1-patch/lib/key_common/generic.c 2006-08-22 20:40:02.156181000 -0400
+@@ -27,7 +27,7 @@
+ * Mountain View, California 94043
+ */
+
+-#include <mp.h>
++#include <gmp.h>
+ #include <stdlib.h>
+ #include <rpc/key_prot.h>
+
+@@ -76,12 +76,20 @@
+ #define BASEBITS (8*sizeof(short) - 1)
+ #define BASE (1 << BASEBITS)
+
+- MINT *pk = itom (0);
+- MINT *sk = itom (0);
+- MINT *tmp;
+- MINT *base = itom (BASE);
+- MINT *root = itom (PROOT);
+- MINT *modulus = xtom (HEXMODULUS);
++ mpz_t pk;
++ mpz_t sk;
++ mpz_t tmp;
++ mpz_t base;
++ mpz_t root;
++ mpz_t modulus;
++
++ mpz_init_set_ui( pk, 0 );
++ mpz_init_set_ui( sk, 0 );
++ mpz_init( tmp );
++ mpz_init_set_ui( base, BASE );
++ mpz_init_set_ui( root, PROOT );
++ mpz_set_str( modulus, HEXMODULUS, 8 ); // init from null string, base 8
++
+ unsigned short r;
+ unsigned short seed[KEYSIZE / BASEBITS + 1];
+ char *xkey;
+@@ -90,22 +98,32 @@
+ for (i = 0; i < KEYSIZE / BASEBITS + 1; ++i)
+ {
+ r = seed[i] % ((unsigned short) BASE);
+- tmp = itom (r);
+- mult (sk, base, sk);
+- madd (sk, tmp, sk);
+- mfree (tmp);
++ mpz_set_ui( tmp, r );
++ mpz_mul( sk, base, sk );
++ mpz_add( sk, tmp, sk );
++ mpz_clear( tmp );
++
+ }
+- tmp = itom (0);
+- mdiv (sk, modulus, tmp, sk);
+- mfree (tmp);
+- pow (root, sk, modulus, pk);
+- xkey = mtox (sk);
++ mpz_init_set_ui( tmp, 0 );
++
++ mpz_tdiv_qr( tmp, sk, sk, modulus );
++ mpz_clear( tmp );
++ mpz_powm( pk, root, sk, modulus );
++
++ gmp_asprintf( &xkey, "%Zx", sk );
++
++// xkey = mtox (sk);
++
+ adjust (secret, xkey);
+- xkey = mtox (pk);
++
++ gmp_asprintf( &xkey, "%Zx", pk );
++// xkey = mtox (pk);
++
+ adjust (public, xkey);
+- mfree (sk);
+- mfree (base);
+- mfree (pk);
+- mfree (root);
+- mfree (modulus);
++
++ mpz_clear( sk );
++ mpz_clear( base );
++ mpz_clear( pk );
++ mpz_clear( root );
++ mpz_clear( modulus );
+ }
+diff -uNr nis-utils-1.4.1/lib/key_common/key_common.c nis-utils-1.4.1-patch/lib/key_common/key_common.c
+--- nis-utils-1.4.1/lib/key_common/key_common.c 1998-11-27 17:02:09.000000000 -0500
++++ nis-utils-1.4.1-patch/lib/key_common/key_common.c 2006-08-22 20:39:34.678463750 -0400
+@@ -35,7 +35,7 @@
+ #include <shadow.h>
+ #include <netdb.h>
+ #include <malloc.h>
+-#include <mp.h>
++#include <gmp.h>
+ #include <rpcsvc/nis.h>
+ #include <rpc/key_prot.h>
+ #include <locale.h>
+diff -uNr nis-utils-1.4.1/src/chkey/Makefile.in nis-utils-1.4.1-patch/src/chkey/Makefile.in
+--- nis-utils-1.4.1/src/chkey/Makefile.in 2001-04-24 01:29:55.000000000 -0400
++++ nis-utils-1.4.1-patch/src/chkey/Makefile.in 2006-08-22 20:40:02.156181000 -0400
+@@ -121,7 +121,7 @@
+
+ bin_PROGRAMS = chkey
+
+-chkey_LDADD = $(LDADD) $(top_builddir)/lib/key_common/libkey_common.a $(top_builddir)/lib/compat/libcompat.a -lmp
++chkey_LDADD = $(LDADD) $(top_builddir)/lib/key_common/libkey_common.a $(top_builddir)/lib/compat/libcompat.a -lgmp
+
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_HEADER = ../../config.h
+diff -uNr nis-utils-1.4.1/src/keyserv/Makefile.in nis-utils-1.4.1-patch/src/keyserv/Makefile.in
+--- nis-utils-1.4.1/src/keyserv/Makefile.in 2001-04-24 01:29:59.000000000 -0400
++++ nis-utils-1.4.1-patch/src/keyserv/Makefile.in 2006-08-22 20:40:02.156181000 -0400
+@@ -106,7 +106,7 @@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@ -s -m 555
+
+ CFLAGS = @EXTRA_CFLAGS@ @CFLAGS@
+-LDADD = @INTLLIBS@ -lmp @LIBDOOR@
++LDADD = @INTLLIBS@ -lgmp @LIBDOOR@
+
+ localedir = $(datadir)/locale
+ INCLUDES = -DLOCALEDIR=\"$(localedir)\" -I$(top_srcdir)/intl -I$(srcdir)
+diff -uNr nis-utils-1.4.1/src/keyserv/setkey.c nis-utils-1.4.1-patch/src/keyserv/setkey.c
+--- nis-utils-1.4.1/src/keyserv/setkey.c 1998-11-28 16:53:15.000000000 -0500
++++ nis-utils-1.4.1-patch/src/keyserv/setkey.c 2006-08-22 20:44:45.717902500 -0400
+@@ -42,7 +42,7 @@
+ * Cache the common keys, so the expensive computation is avoided.
+ */
+ #include <stdio.h>
+-#include <mp.h>
++#include <gmp.h>
+ #include <rpc/rpc.h>
+ #include <rpc/key_prot.h>
+ #include <rpc/des_crypt.h>
+@@ -55,7 +55,7 @@
+
+ extern keystatus pk_get_conv_key (uid_t, keybuf, cryptkeyres *);
+
+-static MINT *MODULUS;
++static mpz_t *MODULUS;
+ static char *fetchsecretkey (uid_t);
+ static keystatus pk_crypt (uid_t, char *, netobj *, des_block *, int);
+ static int nodefaultkeys = 0;
+@@ -80,7 +80,7 @@
+ void
+ setmodulus (const char *modx)
+ {
+- MODULUS = xtom (modx);
++ mpz_init_set_str( MODULUS, modx, 16 );
+ }
+
+ /*
+@@ -138,26 +138,31 @@
+ * overwriting the lower order bits by setting parity.
+ */
+ static void
+-extractdeskey (MINT *ck, des_block *deskey)
++extractdeskey (mpz_t *ck, des_block *deskey)
+ {
+- MINT *a;
++ mpz_t a;
++
+ short r;
+ int i;
+ short base = (1 << 8);
+ char *k;
+
+- a = itom (0);
+- move (ck, a);
++ mpz_init_set_ui( a, 0 );
++ mpz_set( a, ck );
++
+ for (i = 0; i < ((KEYSIZE - 64) / 2) / 8; i++)
+- sdiv (a, base, a, &r);
++ mpz_tdiv_qr_ui( a, &r, a, base );
++
++// sdiv (a, base, a, &r);
+
+ k = deskey->c;
+ for (i = 0; i < 8; i++)
+ {
+- sdiv (a, base, a, &r);
++ mpz_tdiv_qr_ui( a, &r, a, base );
++// sdiv (a, base, a, &r);
+ *k++ = r;
+ }
+- mfree (a);
++ mpz_clear(a);
+ des_setparity ((char *) deskey);
+ }
+
+@@ -173,9 +178,8 @@
+ char xsecret_hold[1024];
+ des_block deskey;
+ int err;
+- MINT *public;
+- MINT *secret;
+- MINT *common;
++
++ mpz_t public, secret, common;
+ char zero[8];
+
+ xsecret = fetchsecretkey (uid);
+@@ -203,19 +207,20 @@
+
+ if (!readcache (xpublic, xsecret, &deskey))
+ {
+- public = xtom (xpublic);
+- secret = xtom (xsecret);
++ mpz_init_set_str( public, xpublic, 16 );
++ mpz_init_set_str( secret, xsecret, 16 );
++
+ /* Sanity Check on public and private keys */
+ if ((public == NULL) || (secret == NULL))
+ return (KEY_SYSTEMERR);
+
+- common = itom (0);
+- pow (public, secret, MODULUS, common);
++ mpz_init_set_ui( common, 0 );
++ mpz_powm( common, public, secret, MODULUS );
+ extractdeskey (common, &deskey);
+ writecache (xpublic, xsecret, &deskey);
+- mfree (secret);
+- mfree (public);
+- mfree (common);
++ mpz_clear( secret );
++ mpz_clear( public );
++ mpz_clear( common );
+ }
+ err = ecb_crypt ((char *) &deskey, (char *) key, sizeof (des_block),
+ DES_HW | mode);
+@@ -229,9 +234,9 @@
+ {
+ char *xsecret;
+ char xsecret_hold[1024];
+- MINT *public;
+- MINT *secret;
+- MINT *common;
++
++ mpz_t public, secret, common;
++
+ char zero[8];
+
+ xsecret = fetchsecretkey (uid);
+@@ -250,19 +255,20 @@
+
+ if (!readcache (xpublic, xsecret, &result->cryptkeyres_u.deskey))
+ {
+- public = xtom (xpublic);
+- secret = xtom (xsecret);
++ mpz_init_set_str( public, xpublic, 16 );
++ mpz_init_set_str( secret, xsecret, 16 );
++
+ /* Sanity Check on public and private keys */
+ if ((public == NULL) || (secret == NULL))
+ return (KEY_SYSTEMERR);
+
+- common = itom (0);
+- pow (public, secret, MODULUS, common);
++ mpz_init_set_ui( common, 0 );
++ mpz_powm( common, public, secret, MODULUS );
+ extractdeskey (common, &result->cryptkeyres_u.deskey);
+ writecache (xpublic, xsecret, &result->cryptkeyres_u.deskey);
+- mfree (secret);
+- mfree (public);
+- mfree (common);
++ mpz_clear( secret );
++ mpz_clear( public );
++ mpz_clear( common );
+ }
+
+ return (KEY_SUCCESS);
+diff -uNr nis-utils-1.4.1/src/newkey/Makefile.in nis-utils-1.4.1-patch/src/newkey/Makefile.in
+--- nis-utils-1.4.1/src/newkey/Makefile.in 2001-04-24 01:30:00.000000000 -0400
++++ nis-utils-1.4.1-patch/src/newkey/Makefile.in 2006-08-22 20:40:02.156181000 -0400
+@@ -119,7 +119,7 @@
+
+ bin_PROGRAMS = newkey
+
+-newkey_LDADD = $(LDADD) $(top_builddir)/lib/key_common/libkey_common.a -lmp
++newkey_LDADD = $(LDADD) $(top_builddir)/lib/key_common/libkey_common.a -lgmp
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_HEADER = ../../config.h
+ CONFIG_CLEAN_FILES =
+diff -uNr nis-utils-1.4.1/src/nisaddcred/Makefile.in nis-utils-1.4.1-patch/src/nisaddcred/Makefile.in
+--- nis-utils-1.4.1/src/nisaddcred/Makefile.in 2001-04-24 01:30:03.000000000 -0400
++++ nis-utils-1.4.1-patch/src/nisaddcred/Makefile.in 2006-08-22 20:40:02.156181000 -0400
+@@ -122,7 +122,7 @@
+
+ bin_PROGRAMS = nisaddcred
+
+-nisaddcred_LDADD = $(LDADD) $(top_builddir)/lib/key_common/libkey_common.a -lmp
++nisaddcred_LDADD = $(LDADD) $(top_builddir)/lib/key_common/libkey_common.a -lgmp
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_HEADER = ../../config.h
+ CONFIG_CLEAN_FILES =