mirror of
https://github.com/nginx/nginx.git
synced 2025-07-21 19:56:23 +08:00
Compare commits
No commits in common. "master" and "release-1.29.0" have entirely different histories.
master
...
release-1.
20
auto/unix
20
auto/unix
@ -129,6 +129,26 @@ if test -z "$NGX_KQUEUE_CHECKED"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ "$NGX_SYSTEM" = "NetBSD" ]; then
|
||||||
|
|
||||||
|
# NetBSD 2.0 incompatibly defines kevent.udata as "intptr_t"
|
||||||
|
|
||||||
|
cat << END >> $NGX_AUTO_CONFIG_H
|
||||||
|
|
||||||
|
#define NGX_KQUEUE_UDATA_T
|
||||||
|
|
||||||
|
END
|
||||||
|
|
||||||
|
else
|
||||||
|
cat << END >> $NGX_AUTO_CONFIG_H
|
||||||
|
|
||||||
|
#define NGX_KQUEUE_UDATA_T (void *)
|
||||||
|
|
||||||
|
END
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
ngx_feature="crypt()"
|
ngx_feature="crypt()"
|
||||||
ngx_feature_name="NGX_HAVE_CRYPT"
|
ngx_feature_name="NGX_HAVE_CRYPT"
|
||||||
ngx_feature_run=no
|
ngx_feature_run=no
|
||||||
|
@ -110,7 +110,7 @@ zip: export
|
|||||||
cp -p $(OBJS)/lib/$(OPENSSL)/LICENSE.txt \
|
cp -p $(OBJS)/lib/$(OPENSSL)/LICENSE.txt \
|
||||||
$(TEMP)/$(NGINX)/docs/OpenSSL.LICENSE
|
$(TEMP)/$(NGINX)/docs/OpenSSL.LICENSE
|
||||||
|
|
||||||
cp -p $(OBJS)/lib/$(PCRE)/LICENCE.md \
|
cp -p $(OBJS)/lib/$(PCRE)/LICENCE \
|
||||||
$(TEMP)/$(NGINX)/docs/PCRE.LICENCE
|
$(TEMP)/$(NGINX)/docs/PCRE.LICENCE
|
||||||
|
|
||||||
sed -ne '/^ (C) 1995-20/,/^ jloup@gzip\.org/p' \
|
sed -ne '/^ (C) 1995-20/,/^ jloup@gzip\.org/p' \
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
#define _NGINX_H_INCLUDED_
|
#define _NGINX_H_INCLUDED_
|
||||||
|
|
||||||
|
|
||||||
#define nginx_version 1029001
|
#define nginx_version 1029000
|
||||||
#define NGINX_VERSION "1.29.1"
|
#define NGINX_VERSION "1.29.0"
|
||||||
#define NGINX_VER "nginx/" NGINX_VERSION
|
#define NGINX_VER "nginx/" NGINX_VERSION
|
||||||
|
|
||||||
#ifdef NGX_BUILD
|
#ifdef NGX_BUILD
|
||||||
|
@ -10,15 +10,6 @@
|
|||||||
#include <ngx_event.h>
|
#include <ngx_event.h>
|
||||||
|
|
||||||
|
|
||||||
/* NetBSD up to 10.0 incompatibly defines kevent.udata as "intptr_t" */
|
|
||||||
|
|
||||||
#if (__NetBSD__ && __NetBSD_Version__ < 1000000000)
|
|
||||||
#define NGX_KQUEUE_UDATA_T
|
|
||||||
#else
|
|
||||||
#define NGX_KQUEUE_UDATA_T (void *)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
ngx_uint_t changes;
|
ngx_uint_t changes;
|
||||||
ngx_uint_t events;
|
ngx_uint_t events;
|
||||||
@ -200,7 +191,7 @@ ngx_kqueue_init(ngx_cycle_t *cycle, ngx_msec_t timer)
|
|||||||
kev.flags = EV_ADD|EV_ENABLE;
|
kev.flags = EV_ADD|EV_ENABLE;
|
||||||
kev.fflags = 0;
|
kev.fflags = 0;
|
||||||
kev.data = timer;
|
kev.data = timer;
|
||||||
kev.udata = NGX_KQUEUE_UDATA_T (uintptr_t) 0;
|
kev.udata = 0;
|
||||||
|
|
||||||
ts.tv_sec = 0;
|
ts.tv_sec = 0;
|
||||||
ts.tv_nsec = 0;
|
ts.tv_nsec = 0;
|
||||||
@ -246,7 +237,7 @@ ngx_kqueue_notify_init(ngx_log_t *log)
|
|||||||
notify_kev.data = 0;
|
notify_kev.data = 0;
|
||||||
notify_kev.flags = EV_ADD|EV_CLEAR;
|
notify_kev.flags = EV_ADD|EV_CLEAR;
|
||||||
notify_kev.fflags = 0;
|
notify_kev.fflags = 0;
|
||||||
notify_kev.udata = NGX_KQUEUE_UDATA_T (uintptr_t) 0;
|
notify_kev.udata = 0;
|
||||||
|
|
||||||
if (kevent(ngx_kqueue, ¬ify_kev, 1, NULL, 0, NULL) == -1) {
|
if (kevent(ngx_kqueue, ¬ify_kev, 1, NULL, 0, NULL) == -1) {
|
||||||
ngx_log_error(NGX_LOG_ALERT, log, ngx_errno,
|
ngx_log_error(NGX_LOG_ALERT, log, ngx_errno,
|
||||||
|
@ -1374,7 +1374,7 @@ ngx_ssl_dhparam(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_str_t *file)
|
|||||||
if (SSL_CTX_set0_tmp_dh_pkey(ssl->ctx, dh) != 1) {
|
if (SSL_CTX_set0_tmp_dh_pkey(ssl->ctx, dh) != 1) {
|
||||||
ngx_ssl_error(NGX_LOG_EMERG, ssl->log, 0,
|
ngx_ssl_error(NGX_LOG_EMERG, ssl->log, 0,
|
||||||
"SSL_CTX_set0_tmp_dh_pkey(\"%s\") failed", file->data);
|
"SSL_CTX_set0_tmp_dh_pkey(\"%s\") failed", file->data);
|
||||||
#if (OPENSSL_VERSION_NUMBER >= 0x30000010L)
|
#if (OPENSSL_VERSION_NUMBER >= 0x3000001fL)
|
||||||
EVP_PKEY_free(dh);
|
EVP_PKEY_free(dh);
|
||||||
#endif
|
#endif
|
||||||
BIO_free(bio);
|
BIO_free(bio);
|
||||||
@ -5055,7 +5055,11 @@ ngx_ssl_get_curve(ngx_connection_t *c, ngx_pool_t *pool, ngx_str_t *s)
|
|||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (OPENSSL_VERSION_NUMBER >= 0x3000000fL)
|
||||||
name = SSL_group_to_name(c->ssl->connection, nid);
|
name = SSL_group_to_name(c->ssl->connection, nid);
|
||||||
|
#else
|
||||||
|
name = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
s->len = name ? ngx_strlen(name) : sizeof("0x0000") - 1;
|
s->len = name ? ngx_strlen(name) : sizeof("0x0000") - 1;
|
||||||
s->data = ngx_pnalloc(pool, s->len);
|
s->data = ngx_pnalloc(pool, s->len);
|
||||||
@ -5109,7 +5113,11 @@ ngx_ssl_get_curves(ngx_connection_t *c, ngx_pool_t *pool, ngx_str_t *s)
|
|||||||
nid = curves[i];
|
nid = curves[i];
|
||||||
|
|
||||||
if (nid & TLSEXT_nid_unknown) {
|
if (nid & TLSEXT_nid_unknown) {
|
||||||
|
#if (OPENSSL_VERSION_NUMBER >= 0x3000000fL)
|
||||||
name = SSL_group_to_name(c->ssl->connection, nid);
|
name = SSL_group_to_name(c->ssl->connection, nid);
|
||||||
|
#else
|
||||||
|
name = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
len += name ? ngx_strlen(name) : sizeof("0x0000") - 1;
|
len += name ? ngx_strlen(name) : sizeof("0x0000") - 1;
|
||||||
|
|
||||||
@ -5131,7 +5139,11 @@ ngx_ssl_get_curves(ngx_connection_t *c, ngx_pool_t *pool, ngx_str_t *s)
|
|||||||
nid = curves[i];
|
nid = curves[i];
|
||||||
|
|
||||||
if (nid & TLSEXT_nid_unknown) {
|
if (nid & TLSEXT_nid_unknown) {
|
||||||
|
#if (OPENSSL_VERSION_NUMBER >= 0x3000000fL)
|
||||||
name = SSL_group_to_name(c->ssl->connection, nid);
|
name = SSL_group_to_name(c->ssl->connection, nid);
|
||||||
|
#else
|
||||||
|
name = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
p = name ? ngx_cpymem(p, name, ngx_strlen(name))
|
p = name ? ngx_cpymem(p, name, ngx_strlen(name))
|
||||||
: ngx_sprintf(p, "0x%04xd", nid & 0xffff);
|
: ngx_sprintf(p, "0x%04xd", nid & 0xffff);
|
||||||
|
@ -96,11 +96,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if (OPENSSL_VERSION_NUMBER < 0x30000000L)
|
|
||||||
#define SSL_group_to_name(s, nid) NULL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct ngx_ssl_ocsp_s ngx_ssl_ocsp_t;
|
typedef struct ngx_ssl_ocsp_s ngx_ssl_ocsp_t;
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,8 +12,11 @@
|
|||||||
#include <ngx_core.h>
|
#include <ngx_core.h>
|
||||||
|
|
||||||
|
|
||||||
#if (OPENSSL_VERSION_NUMBER >= 0x30500010L)
|
#ifdef OSSL_RECORD_PROTECTION_LEVEL_NONE
|
||||||
#define NGX_QUIC_OPENSSL_API 1
|
#ifndef NGX_QUIC_OPENSSL_API
|
||||||
|
#define NGX_QUIC_BORINGSSL_API 1
|
||||||
|
#define NGX_QUIC_OPENSSL_COMPAT 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif (defined SSL_R_MISSING_QUIC_TRANSPORT_PARAMETERS_EXTENSION)
|
#elif (defined SSL_R_MISSING_QUIC_TRANSPORT_PARAMETERS_EXTENSION)
|
||||||
#define NGX_QUIC_QUICTLS_API 1
|
#define NGX_QUIC_QUICTLS_API 1
|
||||||
|
Loading…
Reference in New Issue
Block a user