aboutsummaryrefslogtreecommitdiffstats
path: root/g10/packet.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-01-29 17:20:34 +0000
committerWerner Koch <[email protected]>2019-01-29 17:20:34 +0000
commitf382984966a31a4cbe572bce5370590c5490ed1e (patch)
treee01bafffc5543ade4375183160f7ba32779c1c98 /g10/packet.h
parentcommon: New helper functions for OpenPGP curve OIDs. (diff)
downloadgnupg-f382984966a31a4cbe572bce5370590c5490ed1e.tar.gz
gnupg-f382984966a31a4cbe572bce5370590c5490ed1e.zip
common: Provide some convenient OpenPGP related constants.
* common/openpgpdefs.h (OPENPGP_MAX_NPKEY): New. (OPENPGP_MAX_NSKEY): New. (OPENPGP_MAX_NSIG): New. (OPENPGP_MAX_NENC): New. * g10/packet.h: Define PUBKEY_MAX using the new consts. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/packet.h')
-rw-r--r--g10/packet.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/g10/packet.h b/g10/packet.h
index 78a57bacf..6160d0b01 100644
--- a/g10/packet.h
+++ b/g10/packet.h
@@ -34,11 +34,11 @@
#define DEBUG_PARSE_PACKET 1
-/* Constants to allocate static MPI arrays. */
-#define PUBKEY_MAX_NPKEY 5
-#define PUBKEY_MAX_NSKEY 7
-#define PUBKEY_MAX_NSIG 2
-#define PUBKEY_MAX_NENC 2
+/* Constants to allocate static MPI arrays. */
+#define PUBKEY_MAX_NPKEY OPENPGP_MAX_NPKEY
+#define PUBKEY_MAX_NSKEY OPENPGP_MAX_NSKEY
+#define PUBKEY_MAX_NSIG OPENPGP_MAX_NSIG
+#define PUBKEY_MAX_NENC OPENPGP_MAX_NENC
/* Usage flags */
#define PUBKEY_USAGE_SIG GCRY_PK_USAGE_SIGN /* Good for signatures. */