diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-12-27 17:59:56 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-12-27 17:59:56 -0800 |
commit | 59caec8a010375386ba91fb8a581f882912f2733 (patch) | |
tree | c6535d631353432b3b686a88b647bea52ff875a6 /signature.h | |
parent | 20f164f5e4825a605d97906b9ac6bf4222b9eef4 (diff) | |
download | tcpdump-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.h | 3 |
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 *); |