diff options
author | Werner Koch <wk@gnupg.org> | 2013-11-11 11:07:56 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2013-11-11 19:15:20 +0100 |
commit | 8b3eecee2d89179297e43de7d650f74759c61a58 (patch) | |
tree | d66c4c6bd224b74c107dbb1ae475fc179c59d39f /src/gcrypt.h.in | |
parent | 7b26586e35a6d407ca31b41528b0810b1408fd4b (diff) | |
download | libgcrypt-8b3eecee2d89179297e43de7d650f74759c61a58.tar.gz |
mpi: Add special format GCRYMPI_FMT_OPAQUE.
* src/gcrypt.h.in (GCRYMPI_FMT_OPAQUE): New.
(_gcry_sexp_nth_opaque_mpi): Remove.
* src/sexp.c (gcry_sexp_nth_mpi): Add support for GCRYMPI_FMT_OPAQUE.
(_gcry_sexp_vextract_param): Replace removed function by
GCRYMPI_FMT_OPAQUE.
--
Using a new formatting mode is easier than to add a dedicated
extraction function for opaque MPIs.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/gcrypt.h.in')
-rw-r--r-- | src/gcrypt.h.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in index 234e8a4a..fffc15ca 100644 --- a/src/gcrypt.h.in +++ b/src/gcrypt.h.in @@ -489,7 +489,8 @@ enum gcry_mpi_format GCRYMPI_FMT_PGP = 2, /* As used by OpenPGP (unsigned only). */ GCRYMPI_FMT_SSH = 3, /* As used by SSH (like STD but with length). */ GCRYMPI_FMT_HEX = 4, /* Hex format. */ - GCRYMPI_FMT_USG = 5 /* Like STD but unsigned. */ + GCRYMPI_FMT_USG = 5, /* Like STD but unsigned. */ + GCRYMPI_FMT_OPAQUE = 8 /* Opaque format (some functions only). */ }; /* Flags used for creating big integers. */ |