Seppo Takalo
0f5cec3ebc
Include TLSSocket and DTLSSocket in Doxygen
2018-11-20 11:47:28 +02:00
Seppo Takalo
bdc355f873
Astyle fixes
2018-11-19 15:31:31 +02:00
Seppo Takalo
5d170f2b3e
Clarify that TLSSocket should not be reopened.
2018-11-19 15:19:50 +02:00
Seppo Takalo
6192ed1480
Compare the intermediate timestamps as well
2018-11-19 15:19:50 +02:00
Seppo Takalo
2229a2f2f5
Need to protect members with MBEDTLS_PK_C and X509_CRT_PARSE flags.
...
This is dependency to X509_CRT_PARSE but just to make sure
that also the 'mbedtls_pk_context' structure is not used if that
flag is not enabled.
2018-11-19 15:19:49 +02:00
Seppo Takalo
46c46019bc
Refactor DTLSSocket to use Socket::getpeername()
...
Also, let DTLSSocket to be a friend of InternetSocket so it can do
the name resolution from its _stack.
+ Some whitespace fixes
2018-11-19 15:19:49 +02:00
Seppo Takalo
695db63df8
Decrease verbosity of the TLSSocketWrapper
2018-11-19 15:19:49 +02:00
Michal Paszta
392bccf835
Add unit tests for TLSSocket and TLSSocketWrapper
...
This also includes their Datagram counterparts: DTLSSocket and DTLSSocketWrapper.
Coverage missing for timer-related functionality, but this would require more advanced stub development.
The extra (d)tls_test_config.h is necessary for successful compilation without HW support for the mbedtls features in unittests.
I reused the mbedtls stub found in features/nanostack/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c and amended it slightly with a few missing functions.
2018-11-19 15:19:49 +02:00
Seppo Takalo
2ca1fe65dd
Implement DTLSSocket helper
...
This is equivalent of TLSSocket class but for UDP and DTLS.
2018-11-19 15:19:49 +02:00
Seppo Takalo
d22adbdb26
Implement DTLSSocketWrapper and fix non-blocking connections on TLSSocket
...
DTLSSocketWrapper is equivalent of TLSSocketWrapper but uses datagram mode
and timers for handling Mbed TLS timeouts.
Non-blocking connections were not working earlier, now fixed for both
secure socket modes.
2018-11-19 15:19:49 +02:00
Martin Kojtal
31475455ea
Merge pull request #8751 from jarvte/ctx_unittests
...
Cellular: minor fix to CellularDevice and adding updating unit tests after refactoring
2018-11-19 11:54:56 +00:00
Teppo Järvelin
e5c3024849
Cellular: adding unit tests for new class CellularContext and changed classes.
2018-11-16 13:14:38 +02:00
Qinghao Shi
d157e59267
reformat to following codeing style rules
2018-11-16 10:29:31 +00:00
Qinghao Shi
25e8f89567
update wait_ms() to sleep_for()
2018-11-16 10:29:31 +00:00
Qinghao Shi
78b186ec56
Update code according to the reviews
...
* move emac driver to COMPONENT folder
* use mbed rtos C++ API instead of CMSIS API
2018-11-16 10:29:31 +00:00
Qinghao Shi
1a25051f91
override default mem-size in lwIP stack config
2018-11-16 10:27:15 +00:00
Qinghao Shi
e603f1ad49
add FVP EMAC driver
2018-11-16 10:22:42 +00:00
Cruz Monrreal II
b327b12c75
Merge branch 'david_unity_error_code' of ssh://github.com/davidsaada/mbed-os into rollup-b.1
2018-11-15 18:26:14 -06:00
Cruz Monrreal II
49b940c9a7
Merge branch 'prepare_for_mbedos511' of ssh://github.com/artokin/mbed-os into rollup-b.1
2018-11-15 18:26:12 -06:00
Cruz Monrreal II
0e4f843022
Merge branch 'david_buffered_bd_perf' of ssh://github.com/davidsaada/mbed-os into rollup-b.1
2018-11-15 18:26:11 -06:00
Cruz Monrreal II
5c1c7bf71f
Merge branch 'fix_astyle_error' of ssh://github.com/0xc0170/mbed-os into rollup-b.1
2018-11-15 18:26:09 -06:00
Cruz Monrreal II
8cbd310858
Merge branch 'Lora_compliance' of ssh://github.com/AnttiKauppila/mbed-os into rollup-b.1
2018-11-15 18:26:06 -06:00
Cruz Monrreal
fa2077df41
Merge pull request #8685 from bridadan/clean_up_deprecated_feature_code
...
Clean up deprecated feature code
2018-11-15 17:05:22 -06:00
Martin Kojtal
48569e1cf7
Merge branch 'master' of https://github.com/ConradBraam/mbed-os into dev_rollup
2018-11-15 14:04:41 +00:00
Martin Kojtal
9a252cd218
Merge branch 'feature-emac-mxrt1050' of https://github.com/NXPmicro/mbed into dev_rollup
2018-11-15 13:58:27 +00:00
Martin Kojtal
91e1da1f8c
cellular: fix test coding style
2018-11-15 10:47:11 +00:00
Martin Kojtal
f91eed97da
cellular: fix onboard cellular coding style
2018-11-15 10:47:08 +00:00
David Saada
3995779806
Add a Unity macro to assert on platform error code difference
2018-11-15 12:14:44 +02:00
David Saada
50836e76a1
Improve the efficiency of BufferedBlockDevice
2018-11-15 11:52:22 +02:00
Martin Kojtal
a2ae34b0e6
cellular: fix coding style
2018-11-15 07:23:37 +00:00
Martin Kojtal
3f9d1a9271
nanostack eventloop: fix coding style
2018-11-15 07:20:13 +00:00
Martin Kojtal
eec4e1329a
nanostack interface: fix coding style
2018-11-15 07:20:12 +00:00
Martin Kojtal
29a1149bd6
nanostakc cmsis rtos: fix coding style
2018-11-15 07:20:12 +00:00
Martin Kojtal
3aab38140a
nanostack mesh: fix coding style
2018-11-15 07:20:12 +00:00
Martin Kojtal
a4500e86f5
blockdevice test: fix coding style
2018-11-15 07:20:09 +00:00
Anna Bridge
4d07bcbd6e
Merge pull request #8579 from jarvte/cellular_context
...
Major refactoring: changing Network inheritance from CellularNetwork to new class CellularContext
2018-11-14 14:37:19 +00:00
Mahesh Mahadevan
12c6b1bd88
MIMXRT1050EVK: Add ENET support
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-14 07:13:07 -06:00
Conrad Braam
ef81f4b5a3
Merge pull request #2 from ARMmbed/master
...
catch up from armmbed
2018-11-14 12:25:12 +00:00
Antti Kauppila
cf53494f2e
Compliance test errors fixed
2018-11-14 09:46:38 +02:00
Cruz Monrreal II
4a5ba7f156
Merge branch 'getpeername' of ssh://github.com/SeppoTakalo/mbed-os into rollup
2018-11-13 17:26:49 -06:00
Teppo Järvelin
88213d3e03
Cellular: astyle fixes after introducing CellularContext class and major refactor.
2018-11-13 18:50:35 +02:00
Teppo Järvelin
14f3740c13
Cellular: fixed cellular greentea tests after major refactoring.
2018-11-13 18:33:55 +02:00
Seppo Takalo
619bcb5b4e
Implement Socket::getpeername() API
...
This is equivalent of POSIX getpeername() function. It allows to
get remote address associated with the socket.
For example:
socket *s = server.accept();
SocketAddress remote;
s->getpeername(&remote);
2018-11-13 11:02:51 +02:00
Conrad Braam
6a59fa1e62
State machine step for Erase command
2018-11-12 16:13:21 +00:00
Kevin Bracey
913103c34d
TLSSocketWrapper: decouple error requirements
...
* Don't pull in mbedtls_strerror() if trace is not enabled.
* Output error trace even if mbedtls_strerror() is not available.
2018-11-12 13:12:34 +02:00
Teppo Järvelin
3f6e088782
Cellular: Fixed backward compatibility with OnBoardCellularInterface and set default values in NetworkInterfaceDefaults.cpp.
2018-11-11 14:13:05 +02:00
Teppo Järvelin
1a047efade
Cellular: review fixes, added missing fixes from master.
2018-11-11 14:13:05 +02:00
Teppo Järvelin
467ae09bef
Cellular: Updated target SARA4_PPP to use new CellularContext class.
2018-11-11 14:13:05 +02:00
Teppo Järvelin
9fb83024ea
Changed CellularContext to inherit from CellularBase instead of NetworkInterface. \n Changed Device constructor to take Filehandle instead of eventqueue.
2018-11-11 14:13:05 +02:00
Teppo Järvelin
dbbe2ddc59
Cellular: fixed to compile even if CELLULAR_DEVICE and rx/tx are not defined.
2018-11-11 14:13:05 +02:00