jcmichelou
25732fc8e6
coap_session.[ch], net.c: Add handler for lost CON messages.
...
Add a slot for storing application-specifc data in session object.
Make the library resilient against client session released in a callback.
2017-09-08 20:02:22 +02:00
jcmichelou
87126f35c1
Add minimum timeout of 100ms for global DTLS timeout. Remove the peer from tinydtls retransmit list when the coap session is reset.
2017-07-01 17:09:14 +02:00
jcmichelou
1d2e985364
Fix missing pointer.
2017-06-30 19:26:55 +02:00
jcmichelou
42f68764f1
Safely separate the coap_address_t type from the tinydtls session_t type.
2017-06-30 19:15:00 +02:00
jcmichelou
699cf5d138
Fix handling of session events in tinydtls to call the handler only when it is safe to destroy the session object.
2017-06-30 15:08:40 +02:00
jcmichelou
ab04f3924f
Fix compilation warnings with gcc.
2017-06-29 19:20:39 +02:00
jcmichelou
7fb4ace2b7
Fix for the signedness warning with gcc.
...
Compact coap_address_t.
Use coap_queue_t for all queues.
OpenSSL warning for close alert should be info level.
Fix OpenSSL log level not working.
Use the application defined MTU in OpenSSL.
coap_log() optimization to avoid generating the log message text before testing the log level.
coap_can_exit() should check the new retransmit queues.
Fix retransmit time sometimes not correctly computed relative to sendqueue_basetime.
Add coap_write() API call for applications with their own main loop.
2017-06-29 18:12:46 +02:00
jcmichelou
b2fe4a64de
Make MTU configurable.
...
Use static or stack storage for coap_packet_t.
2017-06-26 17:34:01 +02:00
jcmichelou
ca597b6986
Fix typo in coap_tindydtls
2017-06-24 16:21:28 +02:00
jcmichelou
d0974cacd5
A TLS fatal alert shall always disconnect the session.
2017-06-23 16:06:04 +02:00
jcmichelou
f6047c8e77
Fix gcc warning messages.
2017-06-22 16:13:38 +02:00
jcmichelou
0a0cd1fb4e
Make retransmit timeout relative in tinydtls.
2017-06-22 16:06:11 +02:00
jcmichelou
9490a0c8ab
Fix bug in setting the OpenSSL log level make its use consistent with tinydtls
...
Rename session.c and session.h to coap_session.c and coap_session.h
Use length to PSK hint and identity
Improve packet loss testing
2017-06-22 16:02:03 +02:00
jcmichelou
99925a1a97
Add init function for DTLS library.
...
Match dummy functions in coap_notls.c with their prototypes.
2017-06-21 20:57:12 +02:00
jcmichelou
adf1238eae
Add DTLS retransmit and recovery.
...
Add lossy networks debug option in examples.
2017-06-21 20:40:15 +02:00
jcmichelou
2f24ee8cdd
Call dtls_close when session is closed to send a notify alert to the remote peer.
2017-06-21 15:45:02 +02:00
jcmichelou
ae13e5127b
Compile with tinydtls and remove warning message with gcc.
2017-06-19 20:37:11 +02:00
jcmichelou
b389a5f6aa
Add skeleton support for tinydtls with new API.
2017-06-19 16:58:12 +02:00
jcmichelou
8353417afb
Added session management with simpler DTLS lib API.
...
Added DTLS support with OpenSSL.
2017-06-18 20:09:47 +02:00