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
Tero Heinonen
9c88fcd984
Delete transactions that are not supposed to get reply ( #37 )
...
* Delete transactions that are not supposed to get reply
When sending non-confirmable request that is not supposed to get reply,
it must be deleted after sending.
Also some general code-cleaning included.
* Remove outdated transactions from queue
If transaction does not get response, it will be deleted from queue.
2016-10-18 11:55:54 +03:00
Tero Heinonen
b3419e058a
Fix session lost issue ( #36 )
...
This fixes unstability issues. Still need to refactor
coap_security_handler_read()-function to work as specified in mbedTLS
documentation. This commit should be treated as a temporary fix.
2016-10-11 09:30:17 +03:00
Tero Heinonen
07d72229de
Fix unittests ( #35 )
...
Adding missing stubs, and added check for nullpointer to coap message
process callback.
2016-10-05 09:38:47 +03:00
Tero Heinonen
0e4af1a4d2
Send 4.04 if URI is not found ( #34 )
...
If coap service library receives confirmable request to URI that is not
registered, it must send response COAP_MSG_CODE_RESPONSE_NOT_FOUND.
2016-10-04 09:42:29 +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
Antti Kauppila
73d5163e4e
New CoAP changes updated to this library
...
Unittests updated also
2016-09-08 18:13:26 +03:00
Tero Heinonen
70447c3e35
Set link layer security when opening socket. ( #30 )
2016-08-17 14:30:36 +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
Mika Tervonen
f903edb347
Check validity of transaction pointer when sending data
2016-06-16 14:46:47 +03:00
Seppo Takalo
7a11be1ccb
Merge pull request #24 from sbutcher-arm/upstream-mbedtls-fix
...
Fixes coap-service for development head of mbed TLS
2016-06-09 16:37:27 +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
Tero Heinonen
2be763fa66
Modified coap response callback, added parameters ( #23 )
...
* Modified coap response callback, added parameters
for source address and source port.
* version v4.0.0
2016-06-08 09:58:33 +03:00
Tero Heinonen
565638c3fe
Changed DTLS_HANDSHAKE_TIMEOUT_MAX 125s -> 201s ( #22 )
2016-05-13 14:47:54 +03:00
Seppo Takalo
9752d7c5f7
Limit the number of mbed_ssl_read() in while loop.
2016-03-30 14:23:47 +03:00
Tero Heinonen
52fa5e613e
Renamed session_start_timestamp to last_contact_time.
...
Renamed SECURE_SESSION_ALERT_SENT to SECURE_SESSION_CLOSED.
2016-03-14 12:13:36 +02:00
Tero Heinonen
451d773f5f
Timer to remove secure sessions after alert is sent but not received.
2016-03-10 15:28:43 +02: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
74744cca51
Close and clear session when error received after connection is
...
established.
2016-02-12 14:52:16 +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
45daf83135
unittests fixed
2016-02-10 13:02:03 +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
Tero Heinonen
c8794b84f9
Check for return status when opening socket
...
unittests fixed and added test to new lines.
2016-02-04 13:20:46 +02:00
Deepak Venugopal
ad31757f5f
added a missing call to socket free
2016-02-03 05:01:28 -08:00
Mika Tervonen
120293c03b
Remove Nanostack dependency from service api
2016-01-29 00:08:36 -08: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
267c1861dd
Cleanup
2016-01-20 11:50:24 +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
20fa549678
Unused variables removed.
2016-01-12 11:39:15 +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
0a6ec9db93
Fixed yotta based unit tests, cleaned useless stubs
2015-12-23 11:19:38 +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
b279865349
Enabled timing to get strong entropy source
2015-12-23 09:25:55 +02:00
Antti Kauppila
177bde087e
Fix yotta build by overriding custom cmake flags
2015-12-22 16:46:24 +02:00
Antti Kauppila
488a05bc5f
Small fixes
2015-12-22 14:48:27 +02:00
Antti Kauppila
b95d5be080
Merged token handling + updated unit tests
2015-12-21 11:56:04 +02:00
Antti Kauppila
eb5aa4ef59
New CoAP service + unit tests
2015-12-21 10:00:43 +02:00
Arto Kinnunen
686fc7dea5
Update dependencies and remove compiler warnings
...
-Updated dependencies
-Removed compiler warnings
2015-10-28 09:24:12 +02:00
Tero Heinonen
c7b7fe572b
removed static-declarations from header
2015-08-20 10:05:44 +03:00
Tero Heinonen
efe7c9d297
copyright and licence updates
2015-08-03 11:41:23 +03:00