wickr-crypto-c

Data Structures | Functions
wickr_packet_meta

## Data Structures
struct | wickr_ephemeral_info
| Message destruction control metadata. More...
struct | wickr_packet_meta
| control metadata found in the encrypted payload of a packet More...

## Functions
wickr_packet_meta_t * | wickr_packet_meta_create (wickr_ephemeral_info_t ephemerality_settings, wickr_buffer_t *channel_tag, uint16_t content_type)
wickr_packet_meta_t * | wickr_packet_meta_copy (const wickr_packet_meta_t *source)
void | wickr_packet_meta_destroy (wickr_packet_meta_t **meta)

## Detailed Description

## Function Documentation

## ◆ wickr_packet_meta_copy()

wickr_packet_meta_t* wickr_packet_meta_copy | ( | const wickr_packet_meta_t * | source | ) |

Copy an packet metadata set

Parameters

  source | the packet metadata set to copy

Returns
  a newly packet metadata set holding a deep copy of the properties of 'source'

## ◆ wickr_packet_meta_create()

wickr_packet_meta_t* wickr_packet_meta_create | ( | wickr_ephemeral_info_t | ephemerality_settings,
|  | wickr_buffer_t * | channel_tag,
|  | uint16_t | content_type
| ) |  |

Construct packet metadata from components

Parameters

  ephemerality_settings | see 'wickr_packet_meta' property documentation property documentation
  channel_tag | see 'wickr_packet_meta' property documentation property documentation
  content_type | see 'wickr_packet_meta' property documentation property documentation

Returns
  a newly allocated packet metadata set owning the properties passed in

## ◆ wickr_packet_meta_destroy()

void wickr_packet_meta_destroy | ( | wickr_packet_meta_t ** | meta | ) |

Destroy packet metadata set

Parameters

  meta | a pointer to the result to destroy. All properties of '*meta' will also be destroyed