MAX_RESOURCES under 1.0.7
David T-G
davidtg-gnupg@justpickone.org
Thu May 9 16:03:02 2002
--+7rrzlhIo6Qem03M
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi, all --
Since around version 1.0.2 I have tweaked MAX_RESOURCES with a simple
patch
diff -urN gnupg-1.0.4-orig/g10/ringedit.c gnupg-1.0.4/g10/ringedit.c
--- gnupg-1.0.4-orig/g10/ringedit.c Wed Sep 13 10:05:42 2000
+++ gnupg-1.0.4/g10/ringedit.c Mon Oct 23 16:03:02 2000
@@ -79,7 +79,7 @@
};
typedef struct resource_table_struct RESTBL;
=20
-#define MAX_RESOURCES 10
+#define MAX_RESOURCES 100
static RESTBL resource_table[MAX_RESOURCES];
static int default_public_resource;
static int default_secret_resource;
(I was doing it by hand before 1.0.4) to allow me to have lots of
keyrings. When building 1.0.7, I found that not only is ringedit.c gone
but MAX_RESOURCES is nowhere to be found in the sources. "Great!", I
said to myself, thinking that this was probably now a dynamic allocation,
and away I went to build. Sure enough, after make finished I could
./g10/gpg --list-keys
and get 'em all, so I happily installed the new version (after, of
course, carefully moving 1.0.6 aside -- and I'm sure glad I did!).
Unfortunately, trying to sign an email message gives me
gpg: keyblock resource `/home/davidtg/.gnupg/pubring.corporate+group.gpg'=
: resource limit
gpg: keyblock resource `/home/davidtg/.gnupg/pubring.rsa-keys.gpg': resou=
rce limit
gpg: keyblock resource `/home/davidtg/.gnupg/pubring.other-old-keys.gpg':=
resource limit
gpg: keyblock resource `/home/davidtg/.gnupg/pubring.tlinux.gpg': resourc=
e limit
gpg: keyblock resource `/home/davidtg/.gnupg/pubring.freenet.gpg': resour=
ce limit
gpg: keyblock resource `/home/davidtg/.gnupg/pubring.mutt.gpg': resource =
limit
gpg: keyblock resource `/home/davidtg/.gnupg/pubring.redhatusers.gpg': re=
source limit
gpg: keyblock resource `/home/davidtg/.gnupg/pubring.misclists.gpg': reso=
urce limit
gpg: keyblock resource `/home/davidtg/.gnupg/pubring.misc.gpg': resource =
limit
gpg: keyblock resource `/home/davidtg/.gnupg/pubring.diaries.gpg': resour=
ce limit
gpg: keyblock resource `/home/davidtg/.gnupg/pubring.move.gpg': resource =
limit
gpg: keyblock resource `/home/davidtg/.gnupg/pubring.catch-all-keys.gpg':=
resource limit
much like in the old days of an un-tweaked MAX_RESOURCES value. The
question now, though, is how do I make that same sort of tweak?
TIA & HAND
:-D
--=20
David T-G * It's easier to fight for one's principles
(play) davidtg@justpickone.org * than to live up to them. -- fortune cookie
(work) davidtgwork@justpickone.org
http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
--+7rrzlhIo6Qem03M
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE82oHqGb7uCXufRwARAk7ZAKCodfgpoUApBROPrye/HE5vcU4MOgCeJNFS
RGSZ4JEBI3dZmgol5M5yQyk=
=joqY
-----END PGP SIGNATURE-----
--+7rrzlhIo6Qem03M--