BSL v0.0.0
AMMOS Bundle Protocol Security Library (BSL)
Loading...
Searching...
No Matches
mock_bpa_ctr.h
1/*
2 * Copyright (c) 2025 The Johns Hopkins University Applied Physics
3 * Laboratory LLC.
4 *
5 * This file is part of the Bundle Protocol Security Library (BSL).
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 * This work was performed for the Jet Propulsion Laboratory, California
18 * Institute of Technology, sponsored by the United States Government under
19 * the prime contract 80NM0018D0004 between the Caltech and NASA under
20 * subcontract 1700763.
21 */
22#ifndef TEST_BPA_MOCK_BPA_CTR_H_
23#define TEST_BPA_MOCK_BPA_CTR_H_
24
25#include <m-core.h>
26
27#include <BPSecLib_Private.h>
28#include <BPSecLib_Public.h>
29#include "bsl_mock_bpa.h"
30
32typedef struct
33{
38 // MockBPA_Bundle_t *bundle;
40
41void mock_bpa_ctr_init(mock_bpa_ctr_t *ctr);
42
43void mock_bpa_ctr_init_move(mock_bpa_ctr_t *ctr, mock_bpa_ctr_t *src);
44
45void mock_bpa_ctr_deinit(mock_bpa_ctr_t *ctr);
46
47int mock_bpa_decode(mock_bpa_ctr_t *ctr, BSL_LibCtx_t *bsl);
48
49int mock_bpa_encode(mock_bpa_ctr_t *ctr);
50
51#define M_OPL_mock_bpa_ctr_t() \
52 (INIT(API_2(mock_bpa_ctr_init)), INIT_MOVE(API_6(mock_bpa_ctr_init_move)), CLEAR(API_2(mock_bpa_ctr_deinit)))
53
54#endif /* TEST_BPA_MOCK_BPA_CTR_H_ */
Single entry-point include file for all of the BPSec Lib (BSL) frontend API.
Single entry-point include file for all of the "Public" BPSec Lib (BSL) frontend API.
Declarations for Agent initialization.
Reference to a Bundle owned and stored in the host BPA.
Heap data storage and views.
Concrete definition of library context.
A container for encoded and decoded bundle data.
BSL_Data_t encoded
Encoded PDU.
BSL_BundleRef_t bundle_ref
The decoded bundle.