summaryrefslogtreecommitdiff
path: root/signature.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-12-27 17:59:56 -0800
committerGuy Harris <guy@alum.mit.edu>2015-12-27 17:59:56 -0800
commit59caec8a010375386ba91fb8a581f882912f2733 (patch)
treec6535d631353432b3b686a88b647bea52ff875a6 /signature.h
parent20f164f5e4825a605d97906b9ac6bf4222b9eef4 (diff)
downloadtcpdump-59caec8a010375386ba91fb8a581f882912f2733.tar.gz
Have signature_verify() do the copying and clearing.
Just pass it a pointer to a routine to do the clearing and a pointer to the data that needs to be cleared; signature_verify() will relocate all pointers to stuff that needs to be cleared to point into the copy, clear the signature itself, and call the routine to clear anything else.
Diffstat (limited to 'signature.h')
-rw-r--r--signature.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/signature.h b/signature.h
index 6df7227d..239ee3e8 100644
--- a/signature.h
+++ b/signature.h
@@ -25,4 +25,5 @@
#define CANT_CHECK_SIGNATURE 3
extern const struct tok signature_check_values[];
-extern int signature_verify(netdissect_options *, 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 *);