anjay
anjay_security_instance_t Struct Reference

#include <security.h>

Data Fields

anjay_ssid_t ssid
 
const char * server_uri
 
bool bootstrap_server
 
anjay_security_mode_t security_mode
 
int32_t client_holdoff_s
 
int32_t bootstrap_timeout_s
 
const uint8_t * public_cert_or_psk_identity
 
size_t public_cert_or_psk_identity_size
 
const uint8_t * private_cert_or_psk_key
 
size_t private_cert_or_psk_key_size
 
const uint8_t * server_public_key
 
size_t server_public_key_size
 
anjay_sms_security_mode_t sms_security_mode
 
const uint8_t * sms_key_parameters
 
size_t sms_key_parameters_size
 
const uint8_t * sms_secret_key
 
size_t sms_secret_key_size
 
const char * server_sms_number
 
const uint8_t * matching_type
 
const char * server_name_indication
 
const uint8_t * certificate_usage
 
avs_net_socket_tls_ciphersuites_t ciphersuites
 
avs_crypto_certificate_chain_info_t public_cert
 
avs_crypto_private_key_info_t private_key
 
avs_crypto_psk_identity_info_t psk_identity
 
avs_crypto_psk_key_info_t psk_key
 
avs_crypto_psk_identity_info_t sms_psk_identity
 
avs_crypto_psk_key_info_t sms_psk_key
 

Field Documentation

◆ bootstrap_server

bool bootstrap_server

Resource: Bootstrap Server

◆ bootstrap_timeout_s

int32_t bootstrap_timeout_s

Resource: Bootstrap Server Account Timeout

◆ certificate_usage

const uint8_t* certificate_usage

Resource: Certificate Usage (NULL for not present)

◆ ciphersuites

avs_net_socket_tls_ciphersuites_t ciphersuites

Resource: DTLS/TLS Ciphersuite; Note: Passing a value with num_ids == 0 (default) will cause the resource to be absent, resulting in a fallback to defaults.

◆ client_holdoff_s

int32_t client_holdoff_s

Resource: Client Hold Off Time

◆ matching_type

const uint8_t* matching_type

Resource: Matching Type (NULL for not present)

◆ private_cert_or_psk_key

const uint8_t* private_cert_or_psk_key

Resource: Secret Key

◆ private_cert_or_psk_key_size

size_t private_cert_or_psk_key_size

◆ private_key

avs_crypto_private_key_info_t private_key

Resource: Secret Key; This is an alternative to the private_cert_or_psk_key and psk_key fields that may be used only if security_mode is either ANJAY_SECURITY_CERTIFICATE or ANJAY_SECURITY_EST; it is also an error to specify non-empty values for more than one of these fields at the same time.

◆ psk_identity

avs_crypto_psk_identity_info_t psk_identity

Resource: Public Key Or Identity; This is an alternative to the public_cert_or_psk_identity and public_cert fields that may be used only if security_mode is ANJAY_SECURITY_PSK; it is also an error to specify non-empty values for more than one of these fields at the same time.

◆ psk_key

avs_crypto_psk_key_info_t psk_key

Resource: Secret Key; This is an alternative to the private_cert_or_psk_key and private_key fields that may be used only if security_mode is ANJAY_SECURITY_PSK; it is also an error to specify non-empty values for more than one of these fields at the same time.

◆ public_cert

avs_crypto_certificate_chain_info_t public_cert

Resource: Public Key Or Identity; This is an alternative to the public_cert_or_psk_identity and psk_identity fields that may be used only if security_mode is either ANJAY_SECURITY_CERTIFICATE or ANJAY_SECURITY_EST; it is also an error to specify non-empty values for more than one of these fields at the same time.

◆ public_cert_or_psk_identity

const uint8_t* public_cert_or_psk_identity

Resource: Public Key Or Identity

◆ public_cert_or_psk_identity_size

size_t public_cert_or_psk_identity_size

◆ security_mode

anjay_security_mode_t security_mode

Resource: Security Mode

◆ server_name_indication

const char* server_name_indication

Resource: SNI

◆ server_public_key

const uint8_t* server_public_key

Resource: Server Public Key

◆ server_public_key_size

size_t server_public_key_size

◆ server_sms_number

const char* server_sms_number

Resource: LwM2M Server SMS Number

◆ server_uri

const char* server_uri

Resource: LwM2M Server URI

◆ sms_key_parameters

const uint8_t* sms_key_parameters

Resource: SMS Binding Key Parameters

◆ sms_key_parameters_size

size_t sms_key_parameters_size

◆ sms_psk_identity

avs_crypto_psk_identity_info_t sms_psk_identity

Resource: SMS Binding Key Parameters; This is an alternative to the sms_key_parameters field that may be used only if sms_security_mode is ANJAY_SMS_SECURITY_DTLS_PSK; it is also an error to specify non-empty values for both fields at the same time.

◆ sms_psk_key

avs_crypto_psk_key_info_t sms_psk_key

Resource: SMS Binding Secret Key(s); This is an alternative to the sms_secret_key field that may be used only if sms_security_mode is ANJAY_SMS_SECURITY_DTLS_PSK; it is also an error to specify non-empty values for both fields at the same time.

◆ sms_secret_key

const uint8_t* sms_secret_key

Resource: SMS Binding Secret Key(s)

◆ sms_secret_key_size

size_t sms_secret_key_size

◆ sms_security_mode

anjay_sms_security_mode_t sms_security_mode

Resource: SMS Security Mode

◆ ssid

Resource: Short Server ID


The documentation for this struct was generated from the following file: