Tero Heinonen
9dfc6f970c
Support for setting source address to socket ( #40 )
...
When receiving data, destination (own) address is stored and given to
socket when sending reply to make sure respone comes always from same
address where request was sent. This commit supports only real socket to
real socket messages, not virtual socket, or DTLS handshake messages.
2016-10-24 11:58:53 +03:00
Arto Kinnunen
301458ae8d
Add mbedtls flag to SSL server spesific function ( #33 )
...
Flag function mbedtls_ssl_conf_dtls_cookies with MBEDTLS_SSL_SRV_C
to enable SSL server disabling that can save flash ~3,2kB.
2016-09-19 11:21:32 +03:00
Arto Kinnunen
ae0579f173
Update content_type to sn_coap_content_format_e ( #27 )
...
-Update content_type to be sn_coap_content_format_e instead of uint8_t
to avoid type conversion (bugs).
-Fix compiler warnings
2016-06-28 10:45:30 +03:00
Simon Butcher
dd16e419d6
Fixes coap-service for development head of mbed TLS
...
This change allows the mbed TLS type mbedtls_timer_t to be defined, required
for the upstream version of mbed TLS (> version 2.2.1).
2016-06-08 10:24:15 +01:00
Seppo Takalo
9752d7c5f7
Limit the number of mbed_ssl_read() in while loop.
2016-03-30 14:23:47 +03:00
Tero Heinonen
ba4e77d73d
Do not remove secure session when sending close alert.
2016-03-02 20:30:57 +02:00
Tero Heinonen
cacfb34bdc
Defines for default timeout values
2016-02-25 17:53:24 +02:00
Tero Heinonen
f5f70e2d8b
API for changing DTLS handshake message timeouts.
2016-02-19 09:49:45 +02:00
Tero Heinonen
6dd666a455
Virtual socket error handling fixed.
...
Entropy fix reverted to make yotta build working.
This must be fixed properly later.
2016-02-11 13:23:08 +02:00
Tero Heinonen
cf1de55902
CoAP service refactoring:
...
- mbedtls timer implementation changed to use event timer.
- Connection handler to return all error cases
2016-02-10 11:22:50 +02:00
Antti Kauppila
3bfc457c7f
Update coap_security_handler.c
2016-02-06 13:07:51 +02:00
Mika Tervonen
55fcb85fc7
Coap service security fixes
2016-01-28 03:28:17 -08:00
Antti Kauppila
90c1b3495a
Valgrind errors fixed
2016-01-27 09:58:45 +02:00
Antti Kauppila
3034b1a7c7
Some naming refactored correctly
2016-01-20 13:50:13 +02:00
Antti Kauppila
a32c3614b4
Combined security stuff from mbed-client
2016-01-20 11:45:25 +02:00
Tero Heinonen
cbb678f25b
random fix
...
version v1.0.2
2016-01-18 15:24:07 +02:00
Seppo Takalo
c330fa884c
Update copyright headers.
2016-01-14 11:00:29 +02:00
Tero Heinonen
685e08d7d5
Warnings cleaned.
2016-01-12 09:59:15 +02:00
Tero Heinonen
6c6e672630
MbedTLS config file fixing,
...
small refactoring.
2016-01-11 13:24:28 +02:00
Tero Heinonen
518fb25bb7
Replaced srand & rand with randlib functions.
...
Functionality is same, but now it works in different platforms.
2016-01-04 09:53:52 +02:00
Tero Heinonen
e154420b8a
added missing header
2016-01-04 09:42:48 +02:00
Antti Kauppila
1fb3daf346
Added support for closing a secure connection by giving address and port
2015-12-23 10:07:24 +02:00
Antti Kauppila
488a05bc5f
Small fixes
2015-12-22 14:48:27 +02:00
Antti Kauppila
eb5aa4ef59
New CoAP service + unit tests
2015-12-21 10:00:43 +02:00