Home
last modified time | relevance | path

Searched refs:tls_credential_add (Results 1 – 25 of 30) sorted by relevance

12

/Zephyr-latest/samples/net/prometheus/src/
Dmain.c116 err = tls_credential_add(HTTP_SERVER_CERTIFICATE_TAG, TLS_CREDENTIAL_CA_CERTIFICATE, in setup_tls()
123 err = tls_credential_add(HTTP_SERVER_CERTIFICATE_TAG, TLS_CREDENTIAL_SERVER_CERTIFICATE, in setup_tls()
129 err = tls_credential_add(HTTP_SERVER_CERTIFICATE_TAG, TLS_CREDENTIAL_PRIVATE_KEY, in setup_tls()
136 err = tls_credential_add(PSK_TAG, TLS_CREDENTIAL_PSK, psk, sizeof(psk)); in setup_tls()
141 err = tls_credential_add(PSK_TAG, TLS_CREDENTIAL_PSK_ID, psk_id, sizeof(psk_id) - 1); in setup_tls()
/Zephyr-latest/samples/net/sockets/echo_server/src/
Decho-server.c146 err = tls_credential_add(SERVER_CERTIFICATE_TAG, in init_app()
155 err = tls_credential_add(SERVER_CERTIFICATE_TAG, in init_app()
164 err = tls_credential_add(SERVER_CERTIFICATE_TAG, in init_app()
172 err = tls_credential_add(PSK_TAG, in init_app()
179 err = tls_credential_add(PSK_TAG, in init_app()
/Zephyr-latest/tests/net/lib/tls_credentials/src/
Dmain.c29 ret = tls_credential_add(i, TLS_CREDENTIAL_CA_CERTIFICATE, in test_credential_add()
37 ret = tls_credential_add(common_tag, TLS_CREDENTIAL_SERVER_CERTIFICATE, in test_credential_add()
42 ret = tls_credential_add(common_tag, TLS_CREDENTIAL_PRIVATE_KEY, in test_credential_add()
49 ret = tls_credential_add(unused_tag, TLS_CREDENTIAL_CA_CERTIFICATE, in test_credential_add()
54 ret = tls_credential_add(common_tag, TLS_CREDENTIAL_PRIVATE_KEY, in test_credential_add()
/Zephyr-latest/tests/net/lib/http_server/tls/src/
Dmain.c236 ret = tls_credential_add(CA_CERTIFICATE_TAG, in setup()
241 ret = tls_credential_add(SERVER_CERTIFICATE_TAG, in setup()
246 ret = tls_credential_add(SERVER_CERTIFICATE_TAG, in setup()
251 ret = tls_credential_add(CLIENT_CERTIFICATE_TAG, in setup()
256 ret = tls_credential_add(CLIENT_CERTIFICATE_TAG, in setup()
/Zephyr-latest/samples/subsys/mgmt/updatehub/src/
Dmain.c91 if (tls_credential_add(CA_CERTIFICATE_TAG, in main()
99 if (tls_credential_add(CA_CERTIFICATE_TAG, in main()
/Zephyr-latest/tests/net/socket/tls_configurations/src/
Dmain.c153 err = tls_credential_add(CA_CERTIFICATE_TAG, in setup_credentials()
164 err = tls_credential_add(PSK_TAG, in setup_credentials()
171 err = tls_credential_add(PSK_TAG, in setup_credentials()
/Zephyr-latest/tests/net/socket/tls_ext/src/
Dmain.c444 r = tls_credential_add(CA_CERTIFICATE_TAG, in setup()
449 r = tls_credential_add(SERVER_CERTIFICATE_TAG, in setup()
454 r = tls_credential_add(SERVER_CERTIFICATE_TAG, in setup()
459 r = tls_credential_add(CLIENT_CERTIFICATE_TAG, in setup()
464 r = tls_credential_add(CLIENT_CERTIFICATE_TAG, in setup()
/Zephyr-latest/include/zephyr/net/
Dtls_credentials.h92 int tls_credential_add(sec_tag_t tag, enum tls_credential_type type,
/Zephyr-latest/samples/net/sockets/http_server/src/
Dmain.c314 err = tls_credential_add(HTTP_SERVER_CERTIFICATE_TAG, in setup_tls()
322 err = tls_credential_add(HTTP_SERVER_CERTIFICATE_TAG, in setup_tls()
330 err = tls_credential_add(PSK_TAG, in setup_tls()
338 err = tls_credential_add(PSK_TAG, in setup_tls()
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_engine/src/
Dstubs.h49 DECLARE_FAKE_VALUE_FUNC(int, tls_credential_add, sec_tag_t, enum tls_credential_type, const void *,
83 FUNC(tls_credential_add) \
Dstubs.c35 DEFINE_FAKE_VALUE_FUNC(int, tls_credential_add, sec_tag_t, enum tls_credential_type, const void *,
/Zephyr-latest/samples/net/sockets/echo_client/src/
Decho-client.c349 int err = tls_credential_add(CA_CERTIFICATE_TAG, in init_app()
358 err = tls_credential_add(PSK_TAG, in init_app()
365 err = tls_credential_add(PSK_TAG, in init_app()
/Zephyr-latest/samples/subsys/mgmt/hawkbit/src/
Dmain.c90 tls_credential_add(CA_CERTIFICATE_TAG, TLS_CREDENTIAL_CA_CERTIFICATE, in main()
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/
Dmain.c71 ret = tls_credential_add(TLS_TAG_DEVICE_CERTIFICATE, TLS_CREDENTIAL_SERVER_CERTIFICATE, in setup_credentials()
78 ret = tls_credential_add(TLS_TAG_DEVICE_PRIVATE_KEY, TLS_CREDENTIAL_PRIVATE_KEY, in setup_credentials()
85 ret = tls_credential_add(TLS_TAG_AWS_CA_CERTIFICATE, TLS_CREDENTIAL_CA_CERTIFICATE, ca_cert, in setup_credentials()
/Zephyr-latest/samples/net/sockets/http_get/src/
Dhttp_get.c69 tls_credential_add(CA_CERTIFICATE_TAG, TLS_CREDENTIAL_CA_CERTIFICATE, in main()
/Zephyr-latest/samples/net/mqtt_publisher/src/
Dmain.c81 err = tls_credential_add(APP_CA_CERT_TAG, TLS_CREDENTIAL_CA_CERTIFICATE, in tls_init()
90 err = tls_credential_add(APP_PSK_TAG, TLS_CREDENTIAL_PSK, in tls_init()
97 err = tls_credential_add(APP_PSK_TAG, TLS_CREDENTIAL_PSK_ID, in tls_init()
/Zephyr-latest/samples/net/sockets/dumb_http_server_mt/src/
Dmain.c415 int err = tls_credential_add(SERVER_CERTIFICATE_TAG, in main()
423 err = tls_credential_add(SERVER_CERTIFICATE_TAG, in main()
/Zephyr-latest/subsys/net/lib/tls_credentials/
Dtls_credentials.c124 int tls_credential_add(sec_tag_t tag, enum tls_credential_type type, in tls_credential_add() function
Dtls_credentials_trusted.c326 int tls_credential_add(sec_tag_t tag, enum tls_credential_type type, in tls_credential_add() function
/Zephyr-latest/modules/thrift/src/thrift/transport/
DTSSLSocket.cpp452 const int status = tls_credential_add(Thrift_TLS_SERVER_CERT_TAG, in loadCertificateFromBuffer()
489 tls_credential_add(Thrift_TLS_PRIVATE_KEY, TLS_CREDENTIAL_PRIVATE_KEY, in loadPrivateKeyFromBuffer()
522 const int status = tls_credential_add(Thrift_TLS_CA_CERT_TAG, TLS_CREDENTIAL_CA_CERTIFICATE, in loadTrustedCertificatesFromBuffer()
/Zephyr-latest/samples/net/sockets/big_http_download/src/
Dbig_http_download.c378 tls_credential_add(CA_CERTIFICATE_TAG + i, in main()
/Zephyr-latest/samples/net/sockets/http_client/src/
Dmain.c162 ret = tls_credential_add(CA_CERTIFICATE_TAG, in run_queries()
/Zephyr-latest/samples/net/sockets/websocket_client/src/
Dmain.c315 ret = tls_credential_add(CA_CERTIFICATE_TAG, in main()
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/
Dmain.c79 err = tls_credential_add(APP_CA_CERT_TAG, TLS_CREDENTIAL_CA_CERTIFICATE, in tls_init()
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/
Dmqtt_client.c61 rc = tls_credential_add(APP_CA_CERT_TAG, TLS_CREDENTIAL_CA_CERTIFICATE, in tls_init()

12