Skip to content

Commit

Permalink
fix(ssl): add const to ngx_lua_kong_ssl_x509_copy argument
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Mar 19, 2024
1 parent 4fbc3dd commit d346692
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ssl/ngx_lua_kong_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ ngx_lua_kong_ssl_set_upstream_ssl(ngx_lua_kong_ssl_ctx_t *ctx, ngx_connection_t


static X509 *
ngx_lua_kong_ssl_x509_copy(X509 *in)
ngx_lua_kong_ssl_x509_copy(const X509 *in)
{
return X509_up_ref(in) == 0 ? NULL : in;
}
Expand Down Expand Up @@ -455,4 +455,4 @@ ngx_lua_kong_ssl_get_upstream_ssl_verify(ngx_lua_kong_ssl_ctx_t *ctx,

return ctx->upstream_ssl_verify;
}
#endif
#endif

0 comments on commit d346692

Please sign in to comment.