mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-14 10:12:28 +02:00
32 lines
908 B
Diff
32 lines
908 B
Diff
From f9d1f25abe896b9fa1de780e4a5cb41116926a29 Mon Sep 17 00:00:00 2001
|
|
From: Andy Green <andy@warmcat.com>
|
|
Date: Wed, 14 Jun 2023 07:14:23 +0100
|
|
Subject: [PATCH] openssl-server: enum vs int disagreement
|
|
|
|
https://github.com/warmcat/libwebsockets/issues/2907
|
|
---
|
|
lib/tls/openssl/openssl-server.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/lib/tls/openssl/openssl-server.c b/lib/tls/openssl/openssl-server.c
|
|
index f2e77324f..1fc819293 100644
|
|
--- a/lib/tls/openssl/openssl-server.c
|
|
+++ b/lib/tls/openssl/openssl-server.c
|
|
@@ -699,14 +699,14 @@ lws_tls_server_new_nonblocking(struct lws *wsi, lws_sockfd_type accept_fd)
|
|
return 0;
|
|
}
|
|
|
|
-int
|
|
+enum lws_ssl_capable_status
|
|
lws_tls_server_abort_connection(struct lws *wsi)
|
|
{
|
|
if (wsi->tls.use_ssl)
|
|
SSL_shutdown(wsi->tls.ssl);
|
|
SSL_free(wsi->tls.ssl);
|
|
|
|
- return 0;
|
|
+ return LWS_SSL_CAPABLE_DONE;
|
|
}
|
|
|
|
enum lws_ssl_capable_status
|