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>
Instead of iterating over it and writing it byte-wise to stdout. This
also fixes a bug where output wasn't written to stdout if it wasn't
suffixed by a newline due to the fact that stdout is not flushed after
the loop.
Change-Id: I2ba03d95c4154cbd2298acdf858a74c7e0ed8c71
Signed-off-by: Sören Tempel <tempel@uni-bremen.de>
Signed-off-by: Olaf Bergmann <bergmann@tzi.org>
We need to pass a NULL pointer instead of an empty string to
getaddrinfo(3) if we don't want to specify a service name.
This was fixed in dtls-client.c in 3b24a701ed
Change-Id: I0cdcfc6b5ffba813814352753c7150f93eb01a17
Signed-off-by: Sören Tempel <tempel@uni-bremen.de>
Signed-off-by: Olaf Bergmann <bergmann@tzi.org>