Skip to content
Success

Changes

Summary

  1. session.h: Move inclusion of string.h into .c files (details)
  2. tests: Fix compiler clash over index usage in test suites (details)
  3. dtls_debug: mock dsrv_log() when NDEBUG is set (details)
Commit d055d8d001b5002f296339f10f824086ce15f934 by obgm
session.h: Move inclusion of string.h into .c files

string.h is required for memcmp() that is used in session.c and
dtls_debug.c. Therefore, the header file needs to be included
only in these two files.

Change-Id: I11db1c37a7cc13d8fa2826f6d3e38d3765f4a4ec
The file was modified session.h (diff)
The file was modified dtls_debug.c (diff)
The file was modified session.c (diff)
Commit 7fd6414648dde320aaa21900a8e41e784ad6e651 by obgm
tests: Fix compiler clash over index usage in test suites

Some compilers complain that index is already defined in <strings.h>.
Replace index with lindex.

Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
The file was modified tests/dtls_ciphers_util.c (diff)
The file was modified tests/dtls-server.c (diff)
The file was modified tests/dtls-client.c (diff)
Commit ba830a390642d057fcf21bbb6bd57546d12e584c by Achim Kraus
dtls_debug: mock dsrv_log() when NDEBUG is set

Setting NDEBUG already replaces dtls_dsrv_hexdump_log(), dtls_dsrv_log_addr()
etc with dummy implementations.

This extends this to also replace dsrv_log() and dtls_{get,set}_log_level()
with a no-op implementation.
The file was modified dtls_debug.c (diff)