BSL v0.0.0 - 0.geda3e66
AMMOS Bundle Protocol Security Library (BSL)
|
Definitions for Agent initialization. More...
#include <BPSecLib_Public.h>
#include <BPSecLib_Private.h>
#include <assert.h>
#include "agent.h"
#include "eid.h"
#include "eidpat.h"
#include "encode.h"
#include "decode.h"
Functions | |
int | MockBPA_Bundle_Deinit (MockBPA_Bundle_t *bundle) |
int | MockBPA_GetBundleMetadata (const BSL_BundleRef_t *bundle_ref, BSL_PrimaryBlock_t *result_primary_block) |
int | MockBPA_GetBlockNums (const BSL_BundleRef_t *bundle_ref, size_t block_id_array_capacity, uint64_t *block_id_array_result, size_t *result_count) |
int | MockBPA_GetBlockMetadata (const BSL_BundleRef_t *bundle_ref, uint64_t block_num, BSL_CanonicalBlock_t *result_canonical_block) |
int | MockBPA_ReallocBTSD (BSL_BundleRef_t *bundle_ref, uint64_t block_num, size_t bytesize) |
int | MockBPA_CreateBlock (BSL_BundleRef_t *bundle_ref, uint64_t block_type_code, uint64_t *result_block_num) |
int | MockBPA_RemoveBlock (BSL_BundleRef_t *bundle_ref, uint64_t block_num) |
int | MockBPA_DeleteBundle (BSL_BundleRef_t *bundle_ref) |
int | bsl_mock_bpa_agent_init (void) |
Register this mock BPA for the current process. | |
void | bsl_mock_bpa_agent_deinit (void) |
Clean up the mock BPA for the current process. | |
Definitions for Agent initialization.
int bsl_mock_bpa_agent_init | ( | void | ) |
Register this mock BPA for the current process.
References BSL_HostDescriptors_Set(), BSL_MALLOC, bsl_mock_decode_eid(), bsl_mock_encode_eid(), mock_bpa_eid_from_text(), MockBPA_EID_Deinit(), MockBPA_EID_Init(), and BSL_HostDescriptors_t::user_data.