BSL v0.0.0
AMMOS Bundle Protocol Security Library (BSL)
|
Definitions for Agent initialization. More...
#include <BPSecLib_Public.h>
#include <BPSecLib_Private.h>
#include <assert.h>
#include "bsl_mock_bpa.h"
#include "bsl_mock_bpa_eid.h"
#include "bsl_mock_bpa_eidpat.h"
#include "bsl_mock_bpa_encode.h"
#include "bsl_mock_bpa_decode.h"
Go to the source code of this file.
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[block_id_array_capacity], 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 | bsl_mock_bpa_init (void) |
Register this mock BPA for the current process. | |
void | bsl_mock_bpa_deinit (void) |
Clean up the mock BPA for the current process. | |
Definitions for Agent initialization.
Definition in file bsl_mock_bpa.c.
void bsl_mock_bpa_deinit | ( | void | ) |
Clean up the mock BPA for the current process.
Definition at line 280 of file bsl_mock_bpa.c.
References BSL_HostDescriptors_Get(), BSL_HostDescriptors_Set(), and BSL_HostDescriptors_t::user_data.
int bsl_mock_bpa_init | ( | void | ) |
Register this mock BPA for the current process.
Definition at line 249 of file bsl_mock_bpa.c.
References BSL_HostDescriptors_Set(), 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.
int MockBPA_Bundle_Deinit | ( | MockBPA_Bundle_t * | bundle | ) |
Definition at line 36 of file bsl_mock_bpa.c.
int MockBPA_CreateBlock | ( | BSL_BundleRef_t * | bundle_ref, |
uint64_t | block_type_code, | ||
uint64_t * | result_block_num | ||
) |
Definition at line 171 of file bsl_mock_bpa.c.
int MockBPA_GetBlockMetadata | ( | const BSL_BundleRef_t * | bundle_ref, |
uint64_t | block_num, | ||
BSL_CanonicalBlock_t * | result_canonical_block | ||
) |
Definition at line 100 of file bsl_mock_bpa.c.
int MockBPA_GetBlockNums | ( | const BSL_BundleRef_t * | bundle_ref, |
size_t | block_id_array_capacity, | ||
uint64_t | block_id_array_result[block_id_array_capacity], | ||
size_t * | result_count | ||
) |
Definition at line 82 of file bsl_mock_bpa.c.
int MockBPA_GetBundleMetadata | ( | const BSL_BundleRef_t * | bundle_ref, |
BSL_PrimaryBlock_t * | result_primary_block | ||
) |
Definition at line 55 of file bsl_mock_bpa.c.
int MockBPA_ReallocBTSD | ( | BSL_BundleRef_t * | bundle_ref, |
uint64_t | block_num, | ||
size_t | bytesize | ||
) |
Definition at line 134 of file bsl_mock_bpa.c.
int MockBPA_RemoveBlock | ( | BSL_BundleRef_t * | bundle_ref, |
uint64_t | block_num | ||
) |
Definition at line 203 of file bsl_mock_bpa.c.