Git Product home page Git Product logo

tinydtls's Introduction

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

tinydtls's People

Contributors

laurentderu avatar obgm avatar cladmi avatar

Stargazers

suntus avatar Dongdong Gao avatar Fishball avatar Sam Lin avatar MingXin.Xie avatar  avatar 成真 avatar dreamlich avatar  avatar A C avatar Carlos Quijano avatar Li, Jiudong avatar Jestan Nirojan avatar Michael Richardson avatar Igor Lacarac avatar Simon Su avatar Huaqi Fang avatar MaiKe Labs avatar Christopher Wood avatar Philippe Pittoli avatar  avatar kepler avatar Manikant Thakur avatar Igor Zboran avatar Thomas Kerpe avatar Andrey Lomov avatar  avatar

Watchers

Philippe Pittoli avatar James Cloos avatar Sébastien Dawans avatar Huu Hoa NGUYEN avatar  avatar  avatar  avatar Meet avatar  avatar Keith Cullen avatar  avatar

tinydtls's Issues

Problems at the very first steps

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!

error: impossible constraint in ‘asm’

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.

How to run tinyDTLS in instantContiki2.7 ?

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
instantcontiki2 7-2015-10-08-17-20-12
instantcontiki2 7-2015-10-08-17-20-41

Error While Making the Tinydtls

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.