Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Attributes | List of all members
cose_param_key_t Struct Reference

#include <packet-cose.h>

Public Attributes

GVariant * principal
 
GVariant * label
 

Detailed Description

COSE message dissectors are registered multiple ways:

  1. The unit-keyed dissector table "cose.msgtag" with keys being IANA-registered CBOR tag values (e.g., 18 is COSE_Sign1).
  2. The string-keyed dissector table "media_type" with the IANA-registered key "application/cose" and subtypes registered in dissector table "cose.mediasub" (e.g., "cose-sign1" is COSE_Sign1).
  3. The registered dissectors for names "cose" and message names in all-lowercase form (e.g., "cose_sign1").

COSE message dissectors use the tag (wscbor_tag_t *) value, if used to discriminate the message type, as the user data pointer.

COSE header label dissectors are registered with the dissector table "cose.header" and key parameter dissectors with the table "cose.keyparam" both with cose_param_key_t* keys. The header/parameter dissectors use a cose_header_context_t* as the user data pointer.

An additional dissector "cose.msg.headers" will dissect an individual header map structure outside of a COSE message.

Member Data Documentation

◆ label

GVariant* cose_param_key_t::label

Label simple value (int or tstr) as variant. Object owned by this struct.

◆ principal

GVariant* cose_param_key_t::principal

The Algorithm or Key Type context or NULL for all-context keys.


The documentation for this struct was generated from the following file: