Commit Graph

8 Commits

Author SHA1 Message Date
Achim Kraus
224aa865ea dtls.c: add support for CCM cipher suites.
Add cipher suites with full 16 byte MAC.

Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
2023-04-01 10:29:04 +02:00
Benjamin Valentin
b9b5e2d49c global.h: enable constrained stack if DTLS_MAX_BUF is too large 2022-11-29 14:41:57 +01:00
Jon Shallow
8e7c7d391c Add extended master secret support (RFC7627)
Needed to enable EC interopability with GnuTLS and Californium.

crypto.h:

Track extended_master_secret in dtls_handshake_parameters_t.

state.h:

Extended master secret hash info in dtls_hs_state_t.

global.h:

Add in #define for TLS_EXT_EXTENDED_MASTER_SECRET.

dtls.c:

Send out signature/hash algorithm in client hello so gnutls does not choose
SHA1. Verify signature/hash algorithm is supported in client hello.

Add in support for extended master secret as per RFC7627.

Allow server not to include client certificate type in server hello.

Define p before buf in stack so assert checking of buf overflow works.

Support servers that do not send back a hello verify request triggering
a second client hello.

Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
2020-06-29 13:30:10 +01:00
pokgak
865ca387cd global.h: increase DTLS_MAX_BUF size for Contiki/RIOT
Signed-off-by: pokgak <m.aimanismail@gmail.com>
2019-10-02 15:47:29 +02:00
Olaf Bergmann
59bddd2826 global.h: Fixed end comment for pre-processor conditional
As commented at https://git.eclipse.org/r/#/c/114412/1

Change-Id: I909fdf716e8cb913b6dd75217d67b5c10c671c3e
2018-02-16 10:27:21 +01:00
Raul Fuentes
e7d268958a global.h: Global parameters for Contiki and RIOT
Change-Id: I415609d6300e83cfc7d53256b6f149c7d7e04e2e
Signed-off-by: Raul Fuentes <ra.fuentes.sam@gmail.com>
2018-02-16 10:27:21 +01:00
Gaëtan Harter
91174fe434 global.h: undefine utash_fatal before re-defining
Remvove compilation warning when run with 'UTASH' enabled.

Change-Id: I032613ec5704dde1674de20676144a5969a969a9
Signed-off-by: Gaëtan Harter <gaetan.harter@inria.fr>
2016-12-05 13:45:54 +01:00
Olaf Bergmann
e1388b3980 New initial commit 2016-02-02 18:39:21 +01:00