Skip to content

Commit bdca3bd

Browse files
authored
fixes: resolve unused function warning in BoringSSL builds.
1 parent 7aeea40 commit bdca3bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ngx_stream_lua_ssl_certby.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ static u_char *ngx_stream_lua_log_ssl_cert_error(ngx_log_t *log, u_char *buf,
4444
size_t len);
4545
static ngx_int_t ngx_stream_lua_ssl_cert_by_chunk(lua_State *L,
4646
ngx_stream_lua_request_t *r);
47+
#ifndef OPENSSL_IS_BORINGSSL
4748
static int ngx_stream_lua_is_grease_cipher(uint16_t cipher_id);
49+
#endif
4850

4951

5052
ngx_int_t
@@ -987,6 +989,7 @@ ngx_stream_lua_ffi_ssl_raw_client_addr(ngx_stream_lua_request_t *r, char **addr,
987989
}
988990

989991

992+
#ifndef OPENSSL_IS_BORINGSSL
990993
static int
991994
ngx_stream_lua_is_grease_cipher(uint16_t cipher_id)
992995
{
@@ -995,6 +998,7 @@ ngx_stream_lua_is_grease_cipher(uint16_t cipher_id)
995998
/* Check if both bytes follow ?A pattern and high nibbles match */
996999
return (cipher_id & 0x0F0F) == 0x0A0A;
9971000
}
1001+
#endif
9981002

9991003

10001004
int

0 commit comments

Comments
 (0)