Wireshark  4.3.0
The Wireshark network protocol analyzer
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 <brian.sipos@gmail.com>
7  *
8  * Wireshark - Network traffic analyzer
9  * By Gerald Combs <gerald@wireshark.org>
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 
43 // A header parameter or key-type parameter key
44 typedef struct {
47  GVariant *principal;
48 
51  GVariant *label;
53 
56 guint cose_param_key_hash(gconstpointer ptr);
57 
60 gboolean cose_param_key_equal(gconstpointer a, gconstpointer b);
61 
64 void cose_param_key_free(gpointer ptr);
65 
67 typedef struct {
69  GVariant *principal;
71  GVariant *label;
73 
74 #endif /* __PACKET_COSE_H__ */
User data for header/key-parameter dissectors.
Definition: packet-cose.h:67
GVariant * principal
Principal value (alg or kty) of the map, if defined.
Definition: packet-cose.h:69
GVariant * label
Current label being processed.
Definition: packet-cose.h:71
Definition: packet-cose.h:44
GVariant * principal
Definition: packet-cose.h:47
GVariant * label
Definition: packet-cose.h:51