Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLSScoket issue in Nuvoton-IoTM487 #46

Open
parthibanNVS opened this issue Jun 11, 2021 · 4 comments
Open

TLSScoket issue in Nuvoton-IoTM487 #46

parthibanNVS opened this issue Jun 11, 2021 · 4 comments

Comments

@parthibanNVS
Copy link

Hi, this project i configured it for IoT-M487 kit from nuvoton in mbedapp.json but is throwing error for tlssocket as shown below

**"Compile [ 1.9%]: AWSClient.cpp
[Error] AWSClient.h@52,5: unknown type name 'TLSSocket'; did you mean 'TCPSocket'?
[Error] AWSClient.cpp@271,28: undeclared identifier 'TLSSocket' in destructor name
[Error] AWSClient.cpp@272,34: unknown type name 'TLSSocket'; did you mean 'TCPSocket'?
[Error] AWSClient.cpp@275,27: no member named 'set_hostname' in 'TCPSocket'
[Error] AWSClient.cpp@278,27: no member named 'set_client_cert_key' in 'TCPSocket'
[Error] AWSClient.cpp@284,27: no member named 'set_ca_chain' in 'TCPSocket'
[ERROR] In file included from .\mbed-client-for-aws\source\AWSClient.cpp:26:
./mbed-client-for-aws/include/AWSClient\AWSClient.h:52:5: error: unknown type name 'TLSSocket'; did you mean 'TCPSocket'?
TLSSocket socket;
^~~~~~~~~
TCPSocket
./mbed-os/connectivity/netsocket/include\netsocket/TCPSocket.h:33:7: note: 'TCPSocket' declared here
class TCPSocket : public InternetSocket {
^
.\mbed-client-for-aws\source\AWSClient.cpp:271:28: error: undeclared identifier 'TLSSocket' in destructor name
networkContext.socket.~TLSSocket();
^~~~~~~~~
TCPSocket
.\mbed-client-for-aws\source\AWSClient.cpp:272:34: error: unknown type name 'TLSSocket'; did you mean 'TCPSocket'?
new (&networkContext.socket) TLSSocket();
^~~~~~~~~
TCPSocket
./mbed-os/connectivity/netsocket/include\netsocket/TCPSocket.h:33:7: note: 'TCPSocket' declared here
class TCPSocket : public InternetSocket {
^
.\mbed-client-for-aws\source\AWSClient.cpp:275:27: error: no member named 'set_hostname' in 'TCPSocket'
networkContext.socket.set_hostname(hostname);

.\mbed-client-for-aws\source\AWSClient.cpp:278:27: error: no member named 'set_client_cert_key' in 'TCPSocket'
networkContext.socket.set_client_cert_key(creds.clientCrt,
~~~~~~~~~~~~~~~~~~~~~ ^
.\mbed-client-for-aws\source\AWSClient.cpp:284:27: error: no member named 'set_ca_chain' in 'TCPSocket'
networkContext.socket.set_ca_chain(&rootCA);
~~~~~~~~~~~~~~~~~~~~~ ^
6 errors generated."**

is this project support this target or how I can resolve this issue? 

@ciarmcom
Copy link
Member

@parthibanNVS This issue has an incomplete or old issue template.For future reference please use an up to date clone of the repository before raising issues. Many thanks.

@ciarmcom
Copy link
Member

Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers.
Internal Jira reference: https://jira.arm.com/browse/IOTOSM-4067

@LDong-Arm
Copy link
Contributor

Hi @parthibanNVS,

TLS requires an entropy source, usually TRNG (true random number generator), in order to transfer data securely. But NUMAKER_IOT_M487 doesn't have it, see discussion in ARMmbed/mbed-os#11680, so TLSSocket and the Mbed TLS functionalities it depends on can't be enabled.

An alternative option is to add an NV seed support, useful for targets without TRNG. See this documentation for how to do this.

@parthibanNVS
Copy link
Author

parthibanNVS commented Jun 23, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants