Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-ipsec.h
1 /* packet-ipsec.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10 
11 #ifndef __PACKET_IPSEC_H__
12 #define __PACKET_IPSEC_H__
13 
14 
15 /* Configure a new SA (programmatically, most likely from a private dissector).
16  The arugments here are deliberately in the same string formats as the UAT fields
17  in order to keep code paths common.
18  Note that an attempt to match with these entries will be made *before* entries
19  added through the UAT entry interface/file. */
20 WS_DLL_PUBLIC void esp_sa_record_add_from_dissector(guint8 protocol, const gchar *srcIP, const char *dstIP,
21  gchar *spi,
22  guint8 encryption_algo, /* values from esp_encryption_type_vals */
23  const gchar *encryption_key,
24  guint8 authentication_algo, /* values from esp_authentication_type_vals */
25  const gchar *authentication_key);
26 
27 #endif