S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
user_authentication_bs.h File Reference
#include "b2c.h"
#include "constants.h"
#include "constants_statuscodes_bs.h"

Go to the source code of this file.

Functions

void user_authentication_bs__INITIALISATION (void)
 
void user_authentication_bs__allocate_authenticated_user (const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx, const constants__t_user_token_i user_authentication_bs__p_user_token, t_bool *const user_authentication_bs__p_is_allocated_user, constants__t_user_i *const user_authentication_bs__p_user)
 
void user_authentication_bs__allocate_x509_token_from_user (const constants__t_user_i user_authentication_bs__p_user, t_bool *const user_authentication_bs__p_valid_x509_token, constants__t_user_token_i *const user_authentication_bs__p_x509_token)
 
void user_authentication_bs__deallocate_user (const constants__t_user_i user_authentication_bs__p_user)
 
void user_authentication_bs__deallocate_x509_token (const constants__t_user_token_i user_authentication_bs__p_user_token)
 
void user_authentication_bs__decrypt_user_token (const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx, const constants__t_Nonce_i user_authentication_bs__p_server_nonce, const constants__t_SecurityPolicy user_authentication_bs__p_user_secu_policy, const constants__t_user_token_type_i user_authentication_bs__p_token_type, const constants__t_user_token_i user_authentication_bs__p_user_token, t_bool *const user_authentication_bs__p_sc_valid_user_token, constants__t_user_token_i *const user_authentication_bs__p_user_token_decrypted)
 
void user_authentication_bs__encrypt_user_token (const constants__t_channel_config_idx_i user_authentication_bs__p_channel_config_idx, const constants__t_byte_buffer_i user_authentication_bs__p_server_cert, const constants__t_Nonce_i user_authentication_bs__p_server_nonce, const constants__t_SecurityPolicy user_authentication_bs__p_user_secu_policy, const constants__t_user_token_type_i user_authentication_bs__p_token_type, const constants__t_user_token_i user_authentication_bs__p_user_token, t_bool *const user_authentication_bs__p_valid, constants__t_user_token_i *const user_authentication_bs__p_user_token_encrypted)
 
void user_authentication_bs__get_local_user (const constants__t_endpoint_config_idx_i user_authentication_bs__endpoint_config_idx, constants__t_user_i *const user_authentication_bs__p_user)
 
void user_authentication_bs__get_user_token_type_from_token (const constants__t_user_token_i user_authentication_bs__p_user_token, constants__t_user_token_type_i *const user_authentication_bs__p_user_token_type)
 
void user_authentication_bs__has_user_token_policy_available (const constants__t_channel_config_idx_i user_authentication_bs__p_channel_config_idx, const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx, t_bool *const user_authentication_bs__p_user_token_policy_available)
 
void user_authentication_bs__is_cert_comply_with_security_policy (const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx, const constants__t_user_token_type_i user_authentication_bs__p_token_type, const constants__t_user_token_i user_authentication_bs__p_user_token, const constants__t_SecurityPolicy user_authentication_bs__p_user_secu_policy, constants_statuscodes_bs__t_StatusCode_i *const user_authentication_bs__p_sc_valid_cert_sec_pol)
 
void user_authentication_bs__is_user_token_supported (const constants__t_user_token_type_i user_authentication_bs__p_user_token_type, const constants__t_user_token_i user_authentication_bs__p_user_token, const constants__t_channel_config_idx_i user_authentication_bs__p_channel_config_idx, const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx, t_bool *const user_authentication_bs__p_supported_user_token_type, constants__t_SecurityPolicy *const user_authentication_bs__p_user_security_policy)
 
void user_authentication_bs__is_valid_user_token_signature (const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx, const constants__t_user_token_type_i user_authentication_bs__p_token_type, const constants__t_user_token_i user_authentication_bs__p_user_token, const constants__t_SignatureData_i user_authentication_bs__p_user_token_signature, const constants__t_Nonce_i user_authentication_bs__p_server_nonce, const constants__t_SecurityPolicy user_authentication_bs__p_user_secu_policy, constants_statuscodes_bs__t_StatusCode_i *const user_authentication_bs__p_sc_valid_signature)
 
void user_authentication_bs__is_valid_user_x509_authentication (const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx, const constants__t_user_token_type_i user_authentication_bs__p_token_type, const constants__t_user_token_i user_authentication_bs__p_user_token, constants_statuscodes_bs__t_StatusCode_i *const user_authentication_bs__p_sc_valid_user)
 
void user_authentication_bs__is_valid_username_pwd_authentication (const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx, const constants__t_user_token_type_i user_authentication_bs__p_token_type, const constants__t_user_token_i user_authentication_bs__p_user_token, constants_statuscodes_bs__t_StatusCode_i *const user_authentication_bs__p_sc_valid_user)
 
void user_authentication_bs__shallow_copy_user_token (const constants__t_user_token_type_i user_authentication_bs__p_token_type, const constants__t_user_token_i user_authentication_bs__p_user_token, t_bool *const user_authentication_bs__p_valid, constants__t_user_token_i *const user_authentication_bs__p_user_token_copy)
 

Function Documentation

◆ user_authentication_bs__INITIALISATION()

void user_authentication_bs__INITIALISATION ( void )
extern

◆ user_authentication_bs__allocate_authenticated_user()

void user_authentication_bs__allocate_authenticated_user ( const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx,
const constants__t_user_token_i user_authentication_bs__p_user_token,
t_bool *const user_authentication_bs__p_is_allocated_user,
constants__t_user_i *const user_authentication_bs__p_user )
extern

◆ user_authentication_bs__allocate_x509_token_from_user()

void user_authentication_bs__allocate_x509_token_from_user ( const constants__t_user_i user_authentication_bs__p_user,
t_bool *const user_authentication_bs__p_valid_x509_token,
constants__t_user_token_i *const user_authentication_bs__p_x509_token )
extern

◆ user_authentication_bs__deallocate_user()

void user_authentication_bs__deallocate_user ( const constants__t_user_i user_authentication_bs__p_user)
extern

◆ user_authentication_bs__deallocate_x509_token()

void user_authentication_bs__deallocate_x509_token ( const constants__t_user_token_i user_authentication_bs__p_user_token)
extern

◆ user_authentication_bs__decrypt_user_token()

void user_authentication_bs__decrypt_user_token ( const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx,
const constants__t_Nonce_i user_authentication_bs__p_server_nonce,
const constants__t_SecurityPolicy user_authentication_bs__p_user_secu_policy,
const constants__t_user_token_type_i user_authentication_bs__p_token_type,
const constants__t_user_token_i user_authentication_bs__p_user_token,
t_bool *const user_authentication_bs__p_sc_valid_user_token,
constants__t_user_token_i *const user_authentication_bs__p_user_token_decrypted )
extern

◆ user_authentication_bs__encrypt_user_token()

void user_authentication_bs__encrypt_user_token ( const constants__t_channel_config_idx_i user_authentication_bs__p_channel_config_idx,
const constants__t_byte_buffer_i user_authentication_bs__p_server_cert,
const constants__t_Nonce_i user_authentication_bs__p_server_nonce,
const constants__t_SecurityPolicy user_authentication_bs__p_user_secu_policy,
const constants__t_user_token_type_i user_authentication_bs__p_token_type,
const constants__t_user_token_i user_authentication_bs__p_user_token,
t_bool *const user_authentication_bs__p_valid,
constants__t_user_token_i *const user_authentication_bs__p_user_token_encrypted )
extern

◆ user_authentication_bs__get_local_user()

void user_authentication_bs__get_local_user ( const constants__t_endpoint_config_idx_i user_authentication_bs__endpoint_config_idx,
constants__t_user_i *const user_authentication_bs__p_user )
extern

◆ user_authentication_bs__get_user_token_type_from_token()

void user_authentication_bs__get_user_token_type_from_token ( const constants__t_user_token_i user_authentication_bs__p_user_token,
constants__t_user_token_type_i *const user_authentication_bs__p_user_token_type )
extern

◆ user_authentication_bs__has_user_token_policy_available()

void user_authentication_bs__has_user_token_policy_available ( const constants__t_channel_config_idx_i user_authentication_bs__p_channel_config_idx,
const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx,
t_bool *const user_authentication_bs__p_user_token_policy_available )
extern

◆ user_authentication_bs__is_cert_comply_with_security_policy()

void user_authentication_bs__is_cert_comply_with_security_policy ( const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx,
const constants__t_user_token_type_i user_authentication_bs__p_token_type,
const constants__t_user_token_i user_authentication_bs__p_user_token,
const constants__t_SecurityPolicy user_authentication_bs__p_user_secu_policy,
constants_statuscodes_bs__t_StatusCode_i *const user_authentication_bs__p_sc_valid_cert_sec_pol )
extern

◆ user_authentication_bs__is_user_token_supported()

void user_authentication_bs__is_user_token_supported ( const constants__t_user_token_type_i user_authentication_bs__p_user_token_type,
const constants__t_user_token_i user_authentication_bs__p_user_token,
const constants__t_channel_config_idx_i user_authentication_bs__p_channel_config_idx,
const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx,
t_bool *const user_authentication_bs__p_supported_user_token_type,
constants__t_SecurityPolicy *const user_authentication_bs__p_user_security_policy )
extern

◆ user_authentication_bs__is_valid_user_token_signature()

void user_authentication_bs__is_valid_user_token_signature ( const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx,
const constants__t_user_token_type_i user_authentication_bs__p_token_type,
const constants__t_user_token_i user_authentication_bs__p_user_token,
const constants__t_SignatureData_i user_authentication_bs__p_user_token_signature,
const constants__t_Nonce_i user_authentication_bs__p_server_nonce,
const constants__t_SecurityPolicy user_authentication_bs__p_user_secu_policy,
constants_statuscodes_bs__t_StatusCode_i *const user_authentication_bs__p_sc_valid_signature )
extern

◆ user_authentication_bs__is_valid_user_x509_authentication()

void user_authentication_bs__is_valid_user_x509_authentication ( const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx,
const constants__t_user_token_type_i user_authentication_bs__p_token_type,
const constants__t_user_token_i user_authentication_bs__p_user_token,
constants_statuscodes_bs__t_StatusCode_i *const user_authentication_bs__p_sc_valid_user )
extern

◆ user_authentication_bs__is_valid_username_pwd_authentication()

void user_authentication_bs__is_valid_username_pwd_authentication ( const constants__t_endpoint_config_idx_i user_authentication_bs__p_endpoint_config_idx,
const constants__t_user_token_type_i user_authentication_bs__p_token_type,
const constants__t_user_token_i user_authentication_bs__p_user_token,
constants_statuscodes_bs__t_StatusCode_i *const user_authentication_bs__p_sc_valid_user )
extern

◆ user_authentication_bs__shallow_copy_user_token()

void user_authentication_bs__shallow_copy_user_token ( const constants__t_user_token_type_i user_authentication_bs__p_token_type,
const constants__t_user_token_i user_authentication_bs__p_user_token,
t_bool *const user_authentication_bs__p_valid,
constants__t_user_token_i *const user_authentication_bs__p_user_token_copy )
extern