Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
packet-cose.h
1/* packet-cose.h
2 * Definitions for CBOR Object Signing and Encryption (COSE) dissection
3 * References:
4 * RFC 9052: https://tools.ietf.org/html/rfc9052
5 *
6 * Copyright 2019-2021, Brian Sipos <[email protected]>
7 *
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <[email protected]>
10 * Copyright 1998 Gerald Combs
11 *
12 * SPDX-License-Identifier: LGPL-2.1-or-later
13 */
14#ifndef __PACKET_COSE_H__
15#define __PACKET_COSE_H__
16
17#include <glib.h>
18
42// A header parameter or key-type parameter key
43typedef struct {
46 GVariant *principal;
47
50 GVariant *label;
52
55unsigned cose_param_key_hash(const void *ptr);
56
59gboolean cose_param_key_equal(const void *a, const void *b);
60
63void cose_param_key_free(void *ptr);
64
66typedef struct {
68 GVariant *principal;
70 GVariant *label;
72
73#endif /* __PACKET_COSE_H__ */
User data for header/key-parameter dissectors.
Definition packet-cose.h:66
GVariant * principal
Principal value (alg or kty) of the map, if defined.
Definition packet-cose.h:68
GVariant * label
Current label being processed.
Definition packet-cose.h:70
Definition packet-cose.h:43
GVariant * principal
Definition packet-cose.h:46
GVariant * label
Definition packet-cose.h:50