Struct anjay_security_instance_t

Struct Documentation

struct anjay_security_instance_t

Public Members

anjay_ssid_t ssid

Resource: Short Server ID

const char *server_uri

Resource: LwM2M Server URI

bool bootstrap_server

Resource: Bootstrap Server

anjay_security_mode_t security_mode

Resource: Security Mode

int32_t client_holdoff_s

Resource: Client Hold Off Time

int32_t bootstrap_timeout_s

Resource: Bootstrap Server Account Timeout

const uint8_t *public_cert_or_psk_identity

Resource: Public Key Or Identity

size_t public_cert_or_psk_identity_size
const uint8_t *private_cert_or_psk_key

Resource: Secret Key

size_t private_cert_or_psk_key_size
const uint8_t *server_public_key

Resource: Server Public Key

size_t server_public_key_size
anjay_sms_security_mode_t sms_security_mode

Resource: SMS Security Mode

const uint8_t *sms_key_parameters

Resource: SMS Binding Key Parameters

size_t sms_key_parameters_size
const uint8_t *sms_secret_key

Resource: SMS Binding Secret Key(s)

size_t sms_secret_key_size
const char *server_sms_number

Resource: LwM2M Server SMS Number

const uint8_t *matching_type

Resource: Matching Type (NULL for not present)

const char *server_name_indication

Resource: SNI

const uint8_t *certificate_usage

Resource: Certificate Usage (NULL for not present)

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.

const anjay_iid_t *oscore_iid

Resource: OSCORE Security Mode (NULL for not present)

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.

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.

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.

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.

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.

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.