From 93e473809d3561ca47056023a2b308c865e0241d Mon Sep 17 00:00:00 2001 From: liuxiyao223 Date: Tue, 9 Jan 2024 20:03:57 +0800 Subject: [PATCH] add websocket code Signed-off-by: liuxiyao223 --- lib/tls/openssl/openssl-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tls/openssl/openssl-client.c b/lib/tls/openssl/openssl-client.c index ca76727f..c5ca28b7 100755 --- a/lib/tls/openssl/openssl-client.c +++ b/lib/tls/openssl/openssl-client.c @@ -956,7 +956,7 @@ lws_tls_client_create_vhost_context(struct lws_vhost *vh, /* openssl init for cert verification (for client sockets) */ if (!ca_mem || !ca_mem_len) { - for (size_t i = 0; i < MAX_CLIENT_SSL_CA_NUMBER; i++) { + for (int i = 0; i < MAX_CLIENT_SSL_CA_NUMBER; i++) { if ((info->client_ssl_ca_dirs[i] != NULL) && (!SSL_CTX_load_verify_locations(vh->tls.ssl_client_ctx, NULL, info->client_ssl_ca_dirs[i]))) { lwsl_err( -- Gitee