BSL v1.1.1 - 88.g2613f3a
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
BundleRefState.h File Reference

Declaration of BSL state within bundle references. More...

#include "AbsSecBlock.h"
#include <m-dict.h>
#include <m-rbtree.h>
#include <m-shared-ptr.h>
+ Include dependency graph for BundleRefState.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  BSL_BundleRefState_t
 Internal BSL state associated with each bundle at each interaction point. More...
 

Functions

void BSL_BundleRefState_Init (BSL_BundleRefState_t *obj)
 Initialize an empty reference state.
 
void BSL_BundleRefState_Deinit (BSL_BundleRefState_t *obj)
 De-initialize an empty reference state.
 
int BSL_BundleRefState_CacheASB (BSL_BundleRefState_t *obj, const BSL_BundleRef_t *bundle, const BSL_CanonicalBlock_t *block)
 Decode and cache an existing ASB.
 
void BSL_BundleRefState_RepopulateTgts (BSLB_AsbPtrSetMap_t map, BSL_AbsSecBlockPtr_t *asb_ptr)
 Re-populate a target map for an existing ASB.
 

Detailed Description

Declaration of BSL state within bundle references.

Function Documentation

◆ BSL_BundleRefState_CacheASB()

int BSL_BundleRefState_CacheASB ( BSL_BundleRefState_t *  obj,
const BSL_BundleRef_t *  bundle,
const BSL_CanonicalBlock_t *  block 
)

Decode and cache an existing ASB.

Parameters
[in]objThe state to cache into.
[in]bundleThe BTSD reading context..
[in]blockThe block info to read from.

◆ BSL_BundleRefState_Deinit()

void BSL_BundleRefState_Deinit ( BSL_BundleRefState_t *  obj)

De-initialize an empty reference state.

Parameters
[in]objThe struct to de-initialize.

References ASSERT_ARG_NONNULL, BSL_BundleRefState_t::bcb_tgts, BSL_BundleRefState_t::bcbs, BSL_BundleRefState_t::bib_tgts, BSL_BundleRefState_t::bibs, and BSL_BundleRefState_t::correlations.

Referenced by BSL_BundleRef_Deinit().

◆ BSL_BundleRefState_Init()

void BSL_BundleRefState_Init ( BSL_BundleRefState_t *  obj)

Initialize an empty reference state.

Parameters
[out]objThe struct to initialize.

References ASSERT_ARG_NONNULL, BSL_BundleRefState_t::bcb_tgts, BSL_BundleRefState_t::bcbs, BSL_BundleRefState_t::bib_tgts, BSL_BundleRefState_t::bibs, and BSL_BundleRefState_t::correlations.

Referenced by BSL_BundleRef_Init().

◆ BSL_BundleRefState_RepopulateTgts()

void BSL_BundleRefState_RepopulateTgts ( BSLB_AsbPtrSetMap_t  map,
BSL_AbsSecBlockPtr_t *  asb_ptr 
)