diff options
Diffstat (limited to 'common/tlv.c')
-rw-r--r-- | common/tlv.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/common/tlv.c b/common/tlv.c index 7fb7bde..abef83a 100644 --- a/common/tlv.c +++ b/common/tlv.c @@ -32,21 +32,13 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <assert.h> - -#if GNUPG_MAJOR_VERSION == 1 -#define GPG_ERR_EOF (-1) -#define GPG_ERR_BAD_BER (1) /*G10ERR_GENERAL*/ -#define GPG_ERR_INV_SEXP (45) /*G10ERR_INV_ARG*/ -typedef int gpg_error_t; -#define gpg_make_err(x,n) (n) -#else #include <gpg-error.h> -#endif + #include "util.h" #include "tlv.h" + static const unsigned char * do_find_tlv (const unsigned char *buffer, size_t length, int tag, size_t *nbytes, int nestlevel) |