X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/585ac3db0663f474fd3417ea91953b58022cc9d9..refs/heads/tcpdump-4.9:/signature.h diff --git a/signature.h b/signature.h index 3f664c5b..bbb63edf 100644 --- a/signature.h +++ b/signature.h @@ -12,13 +12,18 @@ * * Functions for signature and digest verification. * - * Original code by Hannes Gredler (hannes@juniper.net) + * Original code by Hannes Gredler (hannes@gredler.at) */ +/* for netdissect_options */ +#include "netdissect.h" + /* signature checking result codes */ #define SIGNATURE_VALID 0 #define SIGNATURE_INVALID 1 -#define CANT_CHECK_SIGNATURE 2 +#define CANT_ALLOCATE_COPY 2 +#define CANT_CHECK_SIGNATURE 3 extern const struct tok signature_check_values[]; -extern int signature_verify (const u_char *, u_int, u_char *); +extern int signature_verify(netdissect_options *, const u_char *, u_int, + const u_char *, void (*)(void *), const void *);