cetic / tinydtls Goto Github PK
View Code? Open in Web Editor NEW6LBR copy of TinyDTLS, see official repository for support outside 6LBR
Home Page: https://projects.eclipse.org/projects/iot.tinydtls
License: Other
6LBR copy of TinyDTLS, see official repository for support outside 6LBR
Home Page: https://projects.eclipse.org/projects/iot.tinydtls
License: Other
CONTENTS This library contains functions and structures that can help constructing a single-threaded UDP server with DTLS support in C99. The following components are available: * dtls Basic support for DTLS with pre-shared key mode. * tests The subdirectory tests contains test programs that show how each component is used. BUILDING When using the code from the git repository at sourceforge, invoke 'autoreconf' to re-create the configure script. To build for Contiki, place tinydtls into Contiki's apps directory and call ./configure --with-contiki. After configuration, invoke make to build the library and associated test programs. To add tinydtls as Contiki application, drop it into the apps directory and add the following line to your Makefile: APPS += tinydtls/aes tinydtls/sha2 tinydtls/ecc tinydtls
Hello,
i am having problems trying to work with this dtls repository.
This is what i've done:
STEP 1. Download Contiki 2.7
STEP 2. Download this repository. Unzip it. "Autoreconf" it ( i think successfully because it creates a configure file).
STEP 3. Move all to a new folder inside of contiki-2.7/apps called tinydtls.
STEP 4. "./configure --with-contiki" ( the log sais this: configure: Contiki build prepared)
STEP 5. "make".
and i have these errors:
dtls.c: At function ‘dtls_peer_timeout’:
dtls.c:1402:9: error: ‘dtls_peer_t’ doesn't have a member called ‘ctx’
dtls.c:1402:9: error: ‘dtls_peer_t’ doesn't have a member called ‘ctx’
dtls.c:1402:9: error: ‘dtls_peer_t’ doesn't have a member called ‘ctx’
dtls.c:1402:9: error: ‘dtls_peer_t’ doesn't have a member called ‘ctx’
dtls.c:1404:25: error: ‘dtls_peer_t’ doesn't have a member called ‘ctx’
I've translated the logs, maybe something is not exactly the log in English, but more or less the problems are those^.
Regards!
Hello,
I am trying to compile dtls-server.c in TinyDTLS and I am getting the error given below:
make dtls-server.wismote TARGET=wismote
Makefile:44: warning: overriding recipe for target 'clean'
/home/user/contiki/Makefile.include:219: warning: ignoring old recipe for target 'clean'
CC dtls-server.c
In file included from dtls-server.c:15:0:
/usr/include/signal.h:321:1: warning: ‘interrupt’ attribute ignored [-Wattributes]
In file included from /home/user/contiki/apps/tinydtls/dtls-crypto.h:29:0,
from /home/user/contiki/apps/tinydtls/dtls-peer.h:28,
from /home/user/contiki/apps/tinydtls/dtls.h:30,
from /home/user/contiki/apps/tinydtls/dtls-support.h:7,
from /home/user/contiki/apps/tinydtls/tinydtls.h:148,
from dtls-server.c:19:
/home/user/contiki/apps/tinydtls/dtls-numeric.h: In function ‘dtls_int_to_uint24’:
/home/user/contiki/apps/tinydtls/dtls-numeric.h:47:3: warning: right shift count >= width of type [enabled by default]
/home/user/contiki/apps/tinydtls/dtls-numeric.h: In function ‘dtls_int_to_uint32’:
/home/user/contiki/apps/tinydtls/dtls-numeric.h:55:3: warning: right shift count >= width of type [enabled by default]
/home/user/contiki/apps/tinydtls/dtls-numeric.h:56:3: warning: right shift count >= width of type [enabled by default]
/home/user/contiki/apps/tinydtls/dtls-numeric.h: In function ‘dtls_uint24_to_int’:
/home/user/contiki/apps/tinydtls/dtls-numeric.h:99:3: warning: left shift count >= width of type [enabled by default]
/home/user/contiki/apps/tinydtls/dtls-numeric.h: In function ‘dtls_uint32_to_int’:
/home/user/contiki/apps/tinydtls/dtls-numeric.h:106:3: warning: left shift count >= width of type [enabled by default]
/home/user/contiki/apps/tinydtls/dtls-numeric.h:107:3: warning: left shift count >= width of type [enabled by default]
dtls-server.c: In function ‘main’:
dtls-server.c:342:5: error: impossible constraint in ‘asm’
dtls-server.c:343:5: error: impossible constraint in ‘asm’
dtls-server.c:369: confused by earlier errors, bailing out
/home/user/contiki/Makefile.include:260: recipe for target 'dtls-server.co' failed
make: *** [dtls-server.co] Error 1
Process returned error code 2
The error in the main function points to lines 342 and 434 which has the following macros in dtls-server.c file:
FD_ZERO(&rfds);
FD_ZERO(&wfds);
I am not sure how to fix this issue.
Kindly help.
Thank You.
By using ./configure , make, ./tests/dtls-client ::1 ,I can run tinyDTLS in ordinary linux .
But when i extract the tinydtls-0.8.2.tar.gz file to ~/contiki/apps/tinydtls-0.8.2, and use ./configure -with-contiki, and edit the /tinydtls-0.8.2/Makefile by adding APPS += tinydtls/aes tinydtls/sha2 tinydtls/ecc tinydtls,
when i make ,it turns out that : dlts-server.c error:tinydtls.h: No such file or directory
How to solve this problem? I am anxious and really look forward your help,thanks a lot.
The Makefile and the compile error picture are as follow
../../apps/tinydtls/session.h:45:10: fatal error: sys/socket.h: No such file or directory #include <sys/socket.h> ^~~~~~~~~~~~~~ compilation terminated. ../../Makefile.include:240: recipe for target 'obj_srf06-cc26xx/dtls.o' failed make: *** [obj_srf06-cc26xx/dtls.o] Error 1
I want to implement the dtls security for contiki and I am following this steps
https://sunmaysky.blogspot.com/search/label/DTLS
make -C examples/contiki all
make[1]: Entering directory /home/user/Desktop/tinydtls-0.8.2/examples/contiki' Makefile:62: ../../../../Makefile.include: No such file or directory make[1]: *** No rule to make target
../../../../Makefile.include'. Stop.
make[1]: Leaving directory `/home/user/Desktop/tinydtls-0.8.2/examples/contiki'
make: *** [all] Error 2
I am trying for certificate based authentication for POSIX platform is there any available library or is it possible to compile this tinydtls code for POSIX platform?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.