signature.h revision 1.1.1.4 1 1.1.1.3 christos /*
2 1.1 christos * Redistribution and use in source and binary forms, with or without
3 1.1 christos * modification, are permitted provided that: (1) source code
4 1.1 christos * distributions retain the above copyright notice and this paragraph
5 1.1 christos * in its entirety, and (2) distributions including binary code include
6 1.1 christos * the above copyright notice and this paragraph in its entirety in
7 1.1 christos * the documentation or other materials provided with the distribution.
8 1.1 christos * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
9 1.1 christos * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
10 1.1 christos * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
11 1.1 christos * FOR A PARTICULAR PURPOSE.
12 1.1 christos *
13 1.1 christos * Functions for signature and digest verification.
14 1.1 christos *
15 1.1 christos * Original code by Hannes Gredler (hannes (at) juniper.net)
16 1.1 christos */
17 1.1 christos
18 1.1.1.3 christos /* for netdissect_options */
19 1.1.1.3 christos #include "netdissect.h"
20 1.1 christos
21 1.1 christos /* signature checking result codes */
22 1.1 christos #define SIGNATURE_VALID 0
23 1.1 christos #define SIGNATURE_INVALID 1
24 1.1.1.4 christos #define CANT_ALLOCATE_COPY 2
25 1.1.1.4 christos #define CANT_CHECK_SIGNATURE 3
26 1.1 christos
27 1.1 christos extern const struct tok signature_check_values[];
28 1.1.1.4 christos extern int signature_verify(netdissect_options *, const u_char *, u_int,
29 1.1.1.4 christos const u_char *, void (*)(void *), const void *);
30