BSL v0.0.0 - 0.g33cf081
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
bundle.h File Reference

Declarations for Bundle storage. More...

#include "eid.h"
#include <m-deque.h>
#include <m-bptree.h>
+ Include dependency graph for bundle.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  MockBPA_CreationTimestamp_t
 Timestamp according to Section 4.2.7 of RFC 9171 [6]. More...
 
struct  MockBPA_PrimaryBlock_t
 Structure of the primary block according to Section 4.3.1 of RFC 9171 [6]. More...
 
struct  MockBPA_CanonicalBlock_t
 Structure of each canonical block according to Section 4.3.2 of RFC 9171 [6]. More...
 
struct  MockBPA_Bundle_t
 

Functions

int MockBPA_Bundle_Init (MockBPA_Bundle_t *bundle)
 Initialize an empty not-really-valid bundle.
 
int MockBPA_Bundle_Deinit (MockBPA_Bundle_t *bundle)
 Deinitialize any bundle storage.
 

Detailed Description

Declarations for Bundle storage.

Function Documentation

◆ MockBPA_Bundle_Deinit()

int MockBPA_Bundle_Deinit ( MockBPA_Bundle_t bundle)

Deinitialize any bundle storage.

This includes freeing any BTSD.

Parameters
[out]bundleThe struct.

References MockBPA_Bundle_t::blocks, MockBPA_Bundle_t::blocks_num, BSL_Data_Deinit(), BSL_FREE, BSL_HostEID_Deinit(), BSL_LOG_DEBUG, MockBPA_CanonicalBlock_t::btsd, and MockBPA_PrimaryBlock_t::encoded.

◆ MockBPA_Bundle_Init()

int MockBPA_Bundle_Init ( MockBPA_Bundle_t bundle)

Initialize an empty not-really-valid bundle.

Parameters
[out]bundleThe struct.

References MockBPA_Bundle_t::blocks, and MockBPA_Bundle_t::blocks_num.