aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ipsec.h
blob: 1170ea5d5471639756a0cfce9c110e2471373745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* packet-ipsec.h
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef __PACKET_IPSEC_H__
#define __PACKET_IPSEC_H__


/* Configure a new SA (programmatically, most likely from a private dissector).
   The arugments here are deliberately in the same string formats as the UAT fields
   in order to keep code paths common.
   Note that an attempt to match with these entries will be made *before* entries
   added through the UAT entry interface/file. */
WS_DLL_PUBLIC void esp_sa_record_add_from_dissector(guint8 protocol, const gchar *srcIP, const char *dstIP,
                                                    gchar *spi,
                                                    guint8 encryption_algo,           /* values from esp_encryption_type_vals */
                                                    const gchar *encryption_key,
                                                    guint8 authentication_algo,       /* values from esp_authentication_type_vals */
                                                    const gchar *authentication_key);

#endif