Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/ngx_stream_lua_ssl_certby.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ static u_char *ngx_stream_lua_log_ssl_cert_error(ngx_log_t *log, u_char *buf,
size_t len);
static ngx_int_t ngx_stream_lua_ssl_cert_by_chunk(lua_State *L,
ngx_stream_lua_request_t *r);
#ifndef OPENSSL_IS_BORINGSSL
static int ngx_stream_lua_is_grease_cipher(uint16_t cipher_id);
#endif


ngx_int_t
Expand Down Expand Up @@ -987,6 +989,7 @@ ngx_stream_lua_ffi_ssl_raw_client_addr(ngx_stream_lua_request_t *r, char **addr,
}


#ifndef OPENSSL_IS_BORINGSSL
static int
ngx_stream_lua_is_grease_cipher(uint16_t cipher_id)
{
Expand All @@ -995,6 +998,7 @@ ngx_stream_lua_is_grease_cipher(uint16_t cipher_id)
/* Check if both bytes follow ?A pattern and high nibbles match */
return (cipher_id & 0x0F0F) == 0x0A0A;
}
#endif


int
Expand Down
Loading