common: Provide some convenient OpenPGP related constants.
authorWerner Koch <wk@gnupg.org>
Tue, 29 Jan 2019 17:20:34 +0000 (18:20 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 29 Jan 2019 17:20:34 +0000 (18:20 +0100)
commitf382984966a31a4cbe572bce5370590c5490ed1e
treee01bafffc5543ade4375183160f7ba32779c1c98
parent4a1558d0c7190cf13d35385e47291a7aa121be3e
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 <wk@gnupg.org>
common/openpgpdefs.h
g10/packet.h