Skip to content

Commit

Permalink
externals/websocket: Fix bug that lte_websocket would fail to connect
Browse files Browse the repository at this point in the history
Fixed a bug that when lte_websocket was operated with Chat subprotocol,
it would cause connect failed and exit with FAILURE log output.
  • Loading branch information
SPRESENSE committed Mar 17, 2022
1 parent 5fa995c commit 8e58e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion externals/websocket/cwebsocket/src/cwebsocket/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ int cwebsocket_client_ssl_init(cwebsocket_client *websocket, char *cert_name, ch
* but makes interop easier in this simplified example */
mbedtls_ssl_conf_authmode( &websocket->conf, MBEDTLS_SSL_VERIFY_OPTIONAL );
mbedtls_ssl_conf_ca_chain( &websocket->conf, &websocket->cacert, NULL );
mbedtls_ssl_conf_rng( &websocket->conf, NULL, &websocket->ctr_drbg );
mbedtls_ssl_conf_rng( &websocket->conf, mbedtls_ctr_drbg_random, &websocket->ctr_drbg );

if (cli_cert != NULL && cli_key != NULL){
ret = mbedtls_x509_crt_parse_file(&websocket->clicert, cli_cert);
Expand Down

0 comments on commit 8e58e00

Please sign in to comment.