From 6b2fa308e091e2daed2407dc38d54fbcd8fae768 Mon Sep 17 00:00:00 2001 From: Wangchong Zhou Date: Sun, 23 Jun 2024 01:36:27 +0800 Subject: [PATCH] fix(ssl): add const to ngx_lua_kong_ssl_x509_copy argument From #83 --- src/ngx_http_lua_kong_ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ngx_http_lua_kong_ssl.c b/src/ngx_http_lua_kong_ssl.c index 52d0b012..3a83ed53 100644 --- a/src/ngx_http_lua_kong_ssl.c +++ b/src/ngx_http_lua_kong_ssl.c @@ -380,7 +380,7 @@ ngx_http_lua_kong_set_upstream_ssl(ngx_http_request_t *r, ngx_connection_t *c) static X509 * -ngx_http_lua_kong_x509_copy(X509 *in) +ngx_http_lua_kong_x509_copy(const X509 *in) { return X509_up_ref(in) == 0 ? NULL : in; }