mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-28 01:27:09 +03:00
zephyr: Examples support
New examples/zephyr directory that contains a sample coap-client. Building the coap-client assumes that the zephyrproject has already been installed and set up (default directory ~/zephyrproject).
This commit is contained in:
1 parent
7b4a20f64e
commit
4803f161f0
15 files changed
+462
-16
No files matched your search
+5
-1
@@ -1733,9 +1733,13 @@ coap_dtls_new_mbedtls_env(coap_session_t *c_session,
|
||||
#endif /* ESPIDF_VERSION && CONFIG_MBEDTLS_DEBUG */
|
||||
if ((ret = mbedtls_ctr_drbg_seed(&m_env->ctr_drbg,
|
||||
mbedtls_entropy_func, &m_env->entropy, NULL, 0)) != 0) {
|
||||
if (ret != MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED) {
|
||||
coap_log_info("mbedtls_ctr_drbg_seed returned -0x%x: '%s'\n",
|
||||
-ret, get_error_string(ret));
|
||||
goto fail;
|
||||
}
|
||||
coap_log_err("mbedtls_ctr_drbg_seed returned -0x%x: '%s'\n",
|
||||
-ret, get_error_string(ret));
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (role == COAP_DTLS_ROLE_CLIENT) {
|
||||
|
||||
Reference in new issue
Block a user