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

Definitions for permutations of policy configurations. More...

#include <inttypes.h>
#include <stdio.h>
#include <jansson.h>
#include <BPSecLib_Private.h>
#include <policy_provider/SamplePolicyProvider.h>
#include <security_context/rfc9173.h>
#include <CryptoInterface.h>
#include "policy_registry.h"
+ Include dependency graph for policy_config.h:
+ This graph shows which files directly or indirectly include this file:

Typedefs

typedef uint32_t bsl_mock_policy_configuration_t
 Bitwise Diagram of the mock bpa config data structure:
 

Functions

void mock_bpa_handle_policy_config (char *policies, BSLP_PolicyProvider_t *policy, mock_bpa_policy_registry_t *reg)
 
void mock_bpa_handle_policy_config_from_json (const char *pp_cfg_file_path, BSLP_PolicyProvider_t *policy)
 
int mock_bpa_key_registry_init (const char *pp_cfg_file_path)
 
int bsl_mock_bpa_rfc9173_bcb_cek (unsigned char *buf, int len)
 

Detailed Description

Definitions for permutations of policy configurations.

Typedef Documentation

◆ bsl_mock_policy_configuration_t

Bitwise Diagram of the mock bpa config data structure:

uint32_t : bsl_mock_policy_configuration_t
[ x x x x | x x x x | x x x x | x x x x ]
[ --------- unused -------] | | [---] [---] [---] | |
| | | | | | |
"Don't care": set EIDs s.t. -| | | | | | |
bundle doens't match any rule -| | | | | | |
| | | | | |
Use Wrapped Key for BCB -| | | | | |
| | | | |
BSL Role: 00 - source, 01 - verifier, -| | | | |
10 - acceptor, 11: undefined -| | | | |
| | | |
Policy Action: 00 - nothing, 01 - drop block, -| | | |
10 - drop bundle, 11: undefined -| | | |
| | |
Target Block Type: 00 - primary, 01 - payload, -| | |
10 - private/experimental (192), 11 - bundle age -| | |
| |
Target Block Type: -| | |
Policy Location: 0 - CLOUT, 1 - CLIN -| |
|
Sec Block Type: 0 - BIB, 1 - BCB -|