diff options
author | Werner Koch <wk@gnupg.org> | 2002-05-16 17:11:21 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2002-05-16 17:11:21 +0000 |
commit | 848c32beeb723d8e06499ec119222dae77a3cd8e (patch) | |
tree | 1c29feda82dc9927881d6706e8f9338c77e86b2d /src/global.c | |
parent | 9e93c817955b8e876227df3c1ae0285f911c138a (diff) | |
download | libgcrypt-848c32beeb723d8e06499ec119222dae77a3cd8e.tar.gz |
* tsexp.c (back_and_forth): Very minimal test of the new functions.
* missing-string.c: New.
* gcrypt.h: Add new error codes GCRYERR_SEXP_ and typedefs
GcryMPI, GcrySexp, GcryCipherHd, GcryMDHd as aliases for the old
ones using an underscore.
* global.c (gcry_strerror): Add strings fro the new error codes.
* sexp.c (gcry_sexp_canon_len): Use a macro to convert from new to
old error codes.
(gcry_sexp_create,gcry_sexp_new): New.
Diffstat (limited to 'src/global.c')
-rw-r--r-- | src/global.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/global.c b/src/global.c index 7d922b70..192cf503 100644 --- a/src/global.c +++ b/src/global.c @@ -280,6 +280,19 @@ gcry_strerror( int ec ) X(CONFLICT, N_("conflict")) X(INV_CIPHER_MODE,N_("invalid cipher mode")) + X(SEXP_INV_LEN_SPEC ,N_("invalid length specification")) + X(SEXP_STRING_TOO_LONG,N_("string too long")) + X(SEXP_UNMATCHED_PAREN,N_("unmatched parenthesis")) + X(SEXP_NOT_CANONICAL ,N_("not a canonical S-expression")) + X(SEXP_BAD_CHARACTER ,N_("bad character")) + X(SEXP_BAD_QUOTATION ,N_("invalid hex/octal value or bad quotation")) + X(SEXP_ZERO_PREFIX ,N_("a length may not begin with zero")) + X(SEXP_NESTED_DH ,N_("nested display hints")) + X(SEXP_UNMATCHED_DH ,N_("unmatched display hint close")) + X(SEXP_UNEXPECTED_PUNC,N_("unexpected reserved punctuation")) + X(SEXP_BAD_HEX_CHAR, N_("invalid hex character")) + X(SEXP_ODD_HEX_NUMBERS,N_("odd number of hex characters")) + X(SEXP_BAD_OCT_CHAR, N_("invalid octal character")) default: sprintf( buf, "ec=%d", ec ); |