2 * Definitions for Bundle Protocol Version 7 Security (BPSec) dissection
4 * RFC 9172: https://www.rfc-editor.org/rfc/rfc9172.html
6 * Copyright 2019-2021, Brian Sipos <brian.sipos@gmail.com>
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
12 * SPDX-License-Identifier: LGPL-2.1-or-later
14 #ifndef PACKET_BPSEC_H
15 #define PACKET_BPSEC_H
17 #include <ws_symbol_export.h>
18 #include <epan/tvbuff.h>
19 #include "packet-bpv7.h"
26 * BPSec per-context parameter types and result types are registered with the
27 * dissector table "bpsec.param" and "bpsec.result" respectively.
28 * Both use bpsec_id_t* table keys, to identify both the context and the type
32 /** Abstract Security Block Security Context Flags.
33 * RFC 9172 Section 3.6.
36 /// Security Context Parameters present
37 BPSEC_ASB_HAS_PARAMS
= 0x01,
40 /// Parameter/Result dissector lookup
42 /// Security context ID
44 /// Parameter/Result ID
49 /// Specific type being dissected
51 /// Pointer to containing block/bundle context
52 const bp_dissector_data_t
*bp
;
53 } bpsec_dissector_data_t
;
55 /** Construct a new ID.
58 bpsec_id_t
* bpsec_id_new(wmem_allocator_t
*alloc
, int64_t context_id
, int64_t type_id
);
60 /** Function to match the GDestroyNotify signature.
63 void bpsec_id_free(wmem_allocator_t
*alloc
, void *ptr
);
65 /** Function to match the GCompareFunc signature.
68 gboolean
bpsec_id_equal(const void *a
, const void *b
);
70 /** Function to match the GHashFunc signature.
73 unsigned bpsec_id_hash(const void *key
);
79 #endif /* PACKET_BPSEC_H */