mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
common: New function cmp_canon_sexp.
* common/sexputil.c (cmp_canon_sexp): New. (cmp_canon_sexp_def_tcmp): New. * common/t-sexputil.c (test_cmp_canon_sexp): Add a simple test. -- To be used to fix GnuPG-bug-id: 5061 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
9a94db1f66
commit
b6ba6a79ce
4 changed files with 200 additions and 2 deletions
|
@ -185,6 +185,12 @@ gpg_error_t make_canon_sexp_pad (gcry_sexp_t sexp, int secure,
|
|||
gpg_error_t keygrip_from_canon_sexp (const unsigned char *key, size_t keylen,
|
||||
unsigned char *grip);
|
||||
int cmp_simple_canon_sexp (const unsigned char *a, const unsigned char *b);
|
||||
int cmp_canon_sexp (const unsigned char *a, size_t alen,
|
||||
const unsigned char *b, size_t blen,
|
||||
int (*tcmp)(void *ctx, int depth,
|
||||
const unsigned char *aval, size_t avallen,
|
||||
const unsigned char *bval, size_t bvallen),
|
||||
void *tcmpctx);
|
||||
unsigned char *make_simple_sexp_from_hexstr (const char *line,
|
||||
size_t *nscanned);
|
||||
int hash_algo_from_sigval (const unsigned char *sigval);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue