mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
(cherry picked from commit f382984966
)
This commit is contained in:
parent
dddbb26155
commit
b78f293cf0
2 changed files with 11 additions and 5 deletions
10
g10/packet.h
10
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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue