Home
last modified time | relevance | path

Searched refs:tls_config (Results 1 – 9 of 9) sorted by relevance

/Zephyr-Core-3.7.0/subsys/net/lib/mqtt/
Dmqtt_transport_socket_tls.c24 struct mqtt_sec_config *tls_config = &client->transport.tls.config; in mqtt_client_tls_connect() local
48 &tls_config->peer_verify, in mqtt_client_tls_connect()
49 sizeof(tls_config->peer_verify)); in mqtt_client_tls_connect()
54 if (tls_config->cipher_list != NULL && tls_config->cipher_count > 0) { in mqtt_client_tls_connect()
56 TLS_CIPHERSUITE_LIST, tls_config->cipher_list, in mqtt_client_tls_connect()
57 sizeof(int) * tls_config->cipher_count); in mqtt_client_tls_connect()
63 if (tls_config->sec_tag_list != NULL && tls_config->sec_tag_count > 0) { in mqtt_client_tls_connect()
65 TLS_SEC_TAG_LIST, tls_config->sec_tag_list, in mqtt_client_tls_connect()
66 sizeof(sec_tag_t) * tls_config->sec_tag_count); in mqtt_client_tls_connect()
73 if (tls_config->alpn_protocol_name_list != NULL && in mqtt_client_tls_connect()
[all …]
/Zephyr-Core-3.7.0/samples/net/cloud/aws_iot_mqtt/src/
Dmain.c265 struct mqtt_sec_config *const tls_config = &client_ctx.transport.tls.config; in aws_client_setup() local
267 tls_config->peer_verify = TLS_PEER_VERIFY_REQUIRED; in aws_client_setup()
268 tls_config->cipher_list = NULL; in aws_client_setup()
269 tls_config->sec_tag_list = sec_tls_tags; in aws_client_setup()
270 tls_config->sec_tag_count = ARRAY_SIZE(sec_tls_tags); in aws_client_setup()
271 tls_config->hostname = CONFIG_AWS_ENDPOINT; in aws_client_setup()
272 tls_config->cert_nocopy = TLS_CERT_NOCOPY_NONE; in aws_client_setup()
274 tls_config->alpn_protocol_name_list = alpn_list; in aws_client_setup()
275 tls_config->alpn_protocol_name_count = ARRAY_SIZE(alpn_list); in aws_client_setup()
/Zephyr-Core-3.7.0/samples/net/secure_mqtt_sensor_actuator/src/
Dmqtt_client.c487 struct mqtt_sec_config *tls_config; in app_mqtt_init() local
497 tls_config = &client->transport.tls.config; in app_mqtt_init()
498 tls_config->peer_verify = TLS_PEER_VERIFY_REQUIRED; in app_mqtt_init()
499 tls_config->cipher_list = NULL; in app_mqtt_init()
500 tls_config->sec_tag_list = m_sec_tags; in app_mqtt_init()
501 tls_config->sec_tag_count = ARRAY_SIZE(m_sec_tags); in app_mqtt_init()
503 tls_config->hostname = TLS_SNI_HOSTNAME; in app_mqtt_init()
505 tls_config->hostname = NULL; in app_mqtt_init()
/Zephyr-Core-3.7.0/samples/net/cloud/mqtt_azure/src/
Dmain.c148 struct mqtt_sec_config *tls_config; in client_init() local
182 tls_config = &client->transport.tls.config; in client_init()
184 tls_config->peer_verify = TLS_PEER_VERIFY_REQUIRED; in client_init()
185 tls_config->cipher_list = NULL; in client_init()
186 tls_config->sec_tag_list = m_sec_tags; in client_init()
187 tls_config->sec_tag_count = ARRAY_SIZE(m_sec_tags); in client_init()
188 tls_config->hostname = TLS_SNI_HOSTNAME; in client_init()
/Zephyr-Core-3.7.0/samples/net/mqtt_publisher/src/
Dmain.c326 struct mqtt_sec_config *tls_config = &client->transport.tls.config; in client_init() local
328 tls_config->peer_verify = TLS_PEER_VERIFY_REQUIRED; in client_init()
329 tls_config->cipher_list = NULL; in client_init()
330 tls_config->sec_tag_list = m_sec_tags; in client_init()
331 tls_config->sec_tag_count = ARRAY_SIZE(m_sec_tags); in client_init()
333 tls_config->hostname = TLS_SNI_HOSTNAME; in client_init()
335 tls_config->hostname = NULL; in client_init()
/Zephyr-Core-3.7.0/samples/net/secure_mqtt_sensor_actuator/
DCMakeLists.txt11 zephyr_include_directories(${APPLICATION_SOURCE_DIR}/src/tls_config)
DREADME.rst88 - In :file:`tls_config/cert.h`, set ``ca_certificate[]`` to the contents of the cert.
/Zephyr-Core-3.7.0/tests/subsys/jwt/
DCMakeLists.txt10 zephyr_include_directories(${APPLICATION_SOURCE_DIR}/src/tls_config)
/Zephyr-Core-3.7.0/doc/connectivity/networking/api/
Dmqtt.rst146 struct mqtt_sec_config *tls_config = &client_ctx.transport.tls.config;
148 tls_config->peer_verify = TLS_PEER_VERIFY_REQUIRED;
149 tls_config->cipher_list = NULL;
150 tls_config->sec_tag_list = m_sec_tags;
151 tls_config->sec_tag_count = ARRAY_SIZE(m_sec_tags);
152 tls_config->hostname = MQTT_BROKER_HOSTNAME;