mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-20 06:29:04 +03:00
Stop valgrind errors when using OpenSSL 1.1.1c
Issue introduced by OpenSSL 1.1.1c causes valgrind errors to be reported. See https://www.mail-archive.com/openssl-commits@openssl.org/msg21701.html and https://github.com/openssl/openssl/pull/8606 which did not make 1.1.1c scripts/build.sh: tests/valgrind_suppression: Temporarily suppress valgrind errors when SSL_CTS_new() is called when running the tests. Note: This suppression will also need to be applied when running valgrind against other CoAP executables using OpenSSL 1.1.1c to prevent the valgrind errors getting reported. src/coap_openssl.c: memset cookie_secret to 0 to stop valgrind warning.
This commit is contained in:
1 parent
d7eab5f22d
commit
ff8f8d2c6b
3 files changed
+14
-1
No files matched your search
@@ -504,6 +504,7 @@ void *coap_dtls_new_context(struct coap_context_t *coap_context) {
|
||||
SSL_CTX_set_app_data(context->dtls.ctx, &context->dtls);
|
||||
SSL_CTX_set_read_ahead(context->dtls.ctx, 1);
|
||||
SSL_CTX_set_cipher_list(context->dtls.ctx, "TLSv1.2:TLSv1.0");
|
||||
memset(cookie_secret, 0, sizeof(cookie_secret));
|
||||
if (!RAND_bytes(cookie_secret, (int)sizeof(cookie_secret))) {
|
||||
if (dtls_log_level >= LOG_WARNING)
|
||||
coap_log(LOG_WARNING,
|
||||
|
||||
Reference in new issue
Block a user