Skip to content

Commit 36af2ea

Browse files
committed
feat: update AWS-LC
1 parent 92940a0 commit 36af2ea

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ install:
8989
- if [ -n "$PCRE_VER" ]; then wget https://github.com/openresty/openresty-deps-prebuild/releases/download/v1.0.0/pcre-${PCRE_VER}-x64-focal.tar.gz; fi
9090
- if [ -n "$PCRE2_VER" ]; then wget https://github.com/openresty/openresty-deps-prebuild/releases/download/v1.0.0/pcre2-${PCRE2_VER}-x64-focal.tar.gz; fi
9191
- wget https://github.com/openresty/openresty-deps-prebuild/releases/download/v20230902/boringssl-20230902-x64-focal.tar.gz
92-
- wget -O aws-lc.tar.gz https://github.com/aws/aws-lc/archive/refs/tags/v1.34.2.tar.gz
92+
- wget -O aws-lc.tar.gz https://github.com/aws/aws-lc/archive/refs/tags/v1.49.1.tar.gz
9393
- wget https://github.com/openresty/openresty-deps-prebuild/releases/download/v20230902/curl-h3-x64-focal.tar.gz
9494
- git clone https://github.com/openresty/test-nginx.git
9595
- git clone https://github.com/openresty/openresty.git ../openresty

src/ngx_http_lua_ssl_certby.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ ngx_http_lua_ffi_set_cert(ngx_http_request_t *r,
13451345

13461346
# else
13471347

1348-
#if defined(OPENSSL_IS_BORINGSSL) || defined(OPENSSL_IS_AWSLC)
1348+
#ifdef OPENSSL_IS_BORINGSSL
13491349
size_t i;
13501350
#else
13511351
int i;
@@ -1487,7 +1487,7 @@ ngx_http_lua_ffi_ssl_verify_client(ngx_http_request_t *r, void *client_certs,
14871487
X509 *x509 = NULL;
14881488
X509_NAME *subject = NULL;
14891489
X509_STORE *ca_store = NULL;
1490-
#if defined(OPENSSL_IS_BORINGSSL) || defined(OPENSSL_IS_AWSLC)
1490+
#ifdef OPENSSL_IS_BORINGSSL
14911491
size_t i;
14921492
#else
14931493
int i;

src/ngx_http_lua_ssl_export_keying_material.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ ngx_http_lua_ffi_ssl_export_keying_material_early(ngx_http_request_t *r,
8585
#elif defined(LIBRESSL_VERSION_NUMBER)
8686
*err = "LibreSSL does not support SSL_export_keying_material_early";
8787
return NGX_ERROR;
88-
#elif defined(OPENSSL_IS_AWSLC)
89-
*err = "AWS-LC does not support SSL_export_keying_material_early";
90-
return NGX_ERROR;
9188
#elif OPENSSL_VERSION_NUMBER < 0x10101000L
9289
*err = "OpenSSL too old";
9390
return NGX_ERROR;

src/ngx_http_lua_ssl_ocsp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ ngx_http_lua_ffi_ssl_set_ocsp_status_resp(ngx_http_request_t *r,
511511
return NGX_ERROR;
512512
}
513513

514-
#if defined(SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE) || defined(OPENSSL_IS_AWSLC)
514+
#ifdef SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE
515515
if (SSL_get_tlsext_status_type(ssl_conn) == -1) {
516516
#else
517517
if (ssl_conn->tlsext_status_type == -1) {

util/build-aws-lc.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#!/usr/bin/env bash
22

33
# this script is for developers only.
4-
# to build nginx with aws-lc, need two patches:
5-
# https://mailman.nginx.org/pipermail/nginx-devel/2024-February/3J4C2B5L67YSKARKNVLLQHHR7QXXMMRI.html
6-
# https://mailman.nginx.org/pipermail/nginx-devel/2024-February/R2AD2Q4XEVNAYEZY6WEVQBAKTM45OMTG.html
7-
# those patches are merged into nginx-*-aws-lc.patch
84

95
root=`pwd`
106

0 commit comments

Comments
 (0)