diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2025-07-30 16:26:21 +0400 |
|---|---|---|
| committer | pluknet <pluknet@nginx.com> | 2025-09-25 19:28:36 +0400 |
| commit | 93ff1ee12cd33ea978fbc331988ce265b14fbdab (patch) | |
| tree | 43f5c58e102b88a42fe60f19b85d85085fc69131 | |
| parent | af436c58ca388b9926b17f8c3929ae2b343e4019 (diff) | |
| download | nginx-93ff1ee12cd33ea978fbc331988ce265b14fbdab.tar.gz nginx-93ff1ee12cd33ea978fbc331988ce265b14fbdab.tar.bz2 | |
SSL: AWS-LC compatibility.
| -rw-r--r-- | src/event/quic/ngx_event_quic.h | 3 | ||||
| -rw-r--r-- | src/event/quic/ngx_event_quic_protection.h | 2 | ||||
| -rw-r--r-- | src/event/quic/ngx_event_quic_ssl.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/event/quic/ngx_event_quic.h b/src/event/quic/ngx_event_quic.h index bab085f46..4f899ec0a 100644 --- a/src/event/quic/ngx_event_quic.h +++ b/src/event/quic/ngx_event_quic.h @@ -18,7 +18,8 @@ #elif (defined SSL_R_MISSING_QUIC_TRANSPORT_PARAMETERS_EXTENSION) #define NGX_QUIC_QUICTLS_API 1 -#elif (defined OPENSSL_IS_BORINGSSL || defined LIBRESSL_VERSION_NUMBER) +#elif (defined OPENSSL_IS_BORINGSSL || defined OPENSSL_IS_AWSLC \ + || defined LIBRESSL_VERSION_NUMBER) #define NGX_QUIC_BORINGSSL_API 1 #else diff --git a/src/event/quic/ngx_event_quic_protection.h b/src/event/quic/ngx_event_quic_protection.h index b8914ddf4..7c5cf3153 100644 --- a/src/event/quic/ngx_event_quic_protection.h +++ b/src/event/quic/ngx_event_quic_protection.h @@ -22,7 +22,7 @@ #define NGX_QUIC_MAX_MD_SIZE 48 -#ifdef OPENSSL_IS_BORINGSSL +#if (defined OPENSSL_IS_BORINGSSL || defined OPENSSL_IS_AWSLC) #define NGX_QUIC_BORINGSSL_EVP_API 1 #define ngx_quic_cipher_t EVP_AEAD #define ngx_quic_crypto_ctx_t EVP_AEAD_CTX diff --git a/src/event/quic/ngx_event_quic_ssl.c b/src/event/quic/ngx_event_quic_ssl.c index 355348406..a502431f4 100644 --- a/src/event/quic/ngx_event_quic_ssl.c +++ b/src/event/quic/ngx_event_quic_ssl.c @@ -973,7 +973,7 @@ ngx_quic_init_connection(ngx_connection_t *c) } #endif -#ifdef OPENSSL_IS_BORINGSSL +#if (defined OPENSSL_IS_BORINGSSL || defined OPENSSL_IS_AWSLC) if (SSL_set_quic_early_data_context(ssl_conn, p, clen) == 0) { ngx_ssl_error(NGX_LOG_ALERT, c->log, 0, "quic SSL_set_quic_early_data_context() failed"); |
