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>
The input parameters r and s must not be zero for ECDSA
operations. This change also prevents an infinite loop caused by
calling fieldInv() with zero as its first argument.
This is also a fix for bug 565308 [1]
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=565308
Change-Id: Ie351008fb452dfa513f90b678e8f829b05b634ea
make uninstall deletes all files that would have been installed
by make install and removes the directories make install would
have created. Directories that are not empty after uninstalling
the files will be preserved.
Change-Id: I53587dfd765e112e99fb6ab078a33a6174828987
These Makefiles get copied onto their corresponding Makefiles in
the respective folders from the Makefile in RIOT's pkg/tinydtls.
These files have been imported from @rfuentess's tinydtls port
for RIOT [1].
[1] https://github.com/rfuentess/TinyDTLS
Change-Id: I71cdc42904f8050ea118a107fe998ac1373e0da3
Signed-off-by: Raul Fuentes <ra.fuentes.sam@gmail.com>
With -Werror=old-style-declaration, gcc complains that the keyword
'static' is not at the beginning of the function declaration. This
change therefore moves it to its usual position before the return
type.
Change-Id: Ied74df3eaa1eb74a0357c7802c047225046d826a
When configured for a different host, the variables CC, AR and
RANLIB have not been set correctly. With this fix, tinydtls can
be compiled for another platform when it is configured as a
submodule of an automake-enabled project.
For example, when the dtls branch of libcoap[1] can be cross-compiled
for the raspberry pi as follows:
./configure --with-host=arm-linux-gnueabihf --disable-shared
Note that cross-compilation does not yet work without automake as the
m4 macro AM_PROG_AR depends on automake.
[1] https://github.com/obgm/libcoap/tree/dtls
Change-Id: If23080dc7754a48434e7ac787c0bddda1dd9530b
Both process in 'testecc.c' and 'testfield.c' have the same name which prevents
linking both in the same application.
In testecc.c change process name to 'ecc_test'.
In testfield.c fix typo in the process name 'ecc_filed_test' to 'ecc_field_tset'.
Change-Id: Iaf13c376063a3dbabe480fdcf4de8ddc12b3f8fa
Signed-off-by: Gaëtan Harter <gaetan.harter@inria.fr>