Replace the "sizeof(buf)" with passed in size.
Drop received messages exceeding the buffer size.
Introduced "buf_ready", true, if last character in "buf" is a newline.
Use "strstr" to detect command.
Add "client:exit" command.
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
Remove renegotiation also from test applications.
Complies with RFC7925, 17. Renegotiation Attacks.
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
tests/dtls-client.c:
Fix ALERT generated when communicating with an IPv4 host.
tests/dtls-server.c:
Support binding to an IPv4 address.
Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
Fix all the compile warnings generated following adding WARNING_CFLAGS
to all the Makefile.in files.
Fix tests/unit-tests/testdriver failures caused by dtls_prng() return value.
Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
tests/dtls-client.c:
tests/dtls-server.c:
Correct parameters when calling dtls_debug() or dtls_warn().
Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
1. Need to pass NULL to service name parameter for getaddrinfo().
2. Ensure that freeaddrinfo() is called after successful address
resolution.
Change-Id: Ie2e96eeb4bba3c20df6d83884d9d5cc03be244da