Hi @ze qian Refer to the article Installation and use of Azure RTOS NetX Secure DTLS which provides an overview of various issues related to installation, setup, and usage of the Azure RTOS NetX Secure DTLS component.
The source code for the NetX Secure is available at the GitHub repository https://github.com/azure-rtos/netx. We need to use the following files to make use of NetX secure.
- nx_secure_dtls_api.h Public API header file for NetX Secure DTLS
- nx_secure_dtls_user.h User defines header file for NetX Secure DTLS
- nx_secure_ port.h Platform-specific definitions for NetX Secure
- nx_secure_dtls.h Header file for NetX Secure DTLS
- nx_secure_tls.h Header file for NetX Secure TLS
- nx_secure_dtls*.c/h C/H Source files for NetX Secure DTLS
- nx_secure_tls*.c/h C/H Source files for NetX Secure TLS
- nx_crypto*.c/h C/H Source files for NetX Secure Cryptography
- nx_secure_x509*.c/h C/H Source files for X.509 digital certificates.
- demo_netx_secure_dtls.c C Source file for NetX Secure DTLS Demo
The above files should be should be copied to the same directory level where NetX is installed. For example, if NetX is installed in the directory “\threadx\arm7\NetX” then the nx_secure*.* directories should be copied into “\threadx\arm7\NetXSecure”.
The documentation also provides a sample code demonstrating how to use NetX Secure DTLS which is designed to work with OpenSSL (or similar) DTLS server.
Hope this helps you get started. Please let us know if you have any additional questions in the comments below and we would be happy to help you.
If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.