Parameter structure for initializing the TLS interface.
Data Fields | |
| const char * | rootca_certificate |
| RootCA certificate in PEM format. More... | |
| uint32_t | rootca_certificate_length |
| RootCA certificate length, excluding the 'null' terminator. | |
| const void * | tls_identity |
| Pointer to memory containing the certificate and private key in the underlying TLS stack format. | |
| int | auth_mode |
| TLS authentication mode. | |
| unsigned char | mfl_code |
| TLS max fragment length code. | |
| const char ** | alpn_list |
| Application-Layer Protocol Negotiation (ALPN) protocol list to be passed in TLS ALPN extension. | |
| char * | hostname |
| Server hostname used with the Server Name Indication (SNI) extension. | |
| cy_network_recv_t | network_recv |
| Pointer to a caller-defined network receive function. | |
| cy_network_send_t | network_send |
| Pointer to a caller-defined network send function. | |
| void * | context |
| User context. | |
| bool | load_rootca_from_ram |
| Flag for setting the RootCA certificate location. | |
| bool | load_device_cert_key_from_ram |
| Flag for setting the device cert & key location. | |
| const char* cy_tls_params_t::rootca_certificate |
RootCA certificate in PEM format.
It should be a 'null'-terminated string.