mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 02:09:04 +08:00
QUIC: enabled more key-related debug by default.
This commit is contained in:
parent
9f583efe3d
commit
d600364887
@ -353,9 +353,9 @@ ngx_quic_set_read_secret(ngx_ssl_conn_t *ssl_conn,
|
|||||||
|
|
||||||
c = ngx_ssl_get_connection((ngx_ssl_conn_t *) ssl_conn);
|
c = ngx_ssl_get_connection((ngx_ssl_conn_t *) ssl_conn);
|
||||||
|
|
||||||
#ifdef NGX_QUIC_DEBUG_CRYPTO
|
|
||||||
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
||||||
"quic ngx_quic_set_read_secret() level:%d", level);
|
"quic ngx_quic_set_read_secret() level:%d", level);
|
||||||
|
#ifdef NGX_QUIC_DEBUG_CRYPTO
|
||||||
ngx_quic_hexdump(c->log, "quic read secret", rsecret, secret_len);
|
ngx_quic_hexdump(c->log, "quic read secret", rsecret, secret_len);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -377,9 +377,9 @@ ngx_quic_set_write_secret(ngx_ssl_conn_t *ssl_conn,
|
|||||||
|
|
||||||
c = ngx_ssl_get_connection((ngx_ssl_conn_t *) ssl_conn);
|
c = ngx_ssl_get_connection((ngx_ssl_conn_t *) ssl_conn);
|
||||||
|
|
||||||
#ifdef NGX_QUIC_DEBUG_CRYPTO
|
|
||||||
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
||||||
"quic ngx_quic_set_write_secret() level:%d", level);
|
"quic ngx_quic_set_write_secret() level:%d", level);
|
||||||
|
#ifdef NGX_QUIC_DEBUG_CRYPTO
|
||||||
ngx_quic_hexdump(c->log, "quic write secret", wsecret, secret_len);
|
ngx_quic_hexdump(c->log, "quic write secret", wsecret, secret_len);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -403,9 +403,9 @@ ngx_quic_set_encryption_secrets(ngx_ssl_conn_t *ssl_conn,
|
|||||||
|
|
||||||
c = ngx_ssl_get_connection((ngx_ssl_conn_t *) ssl_conn);
|
c = ngx_ssl_get_connection((ngx_ssl_conn_t *) ssl_conn);
|
||||||
|
|
||||||
#ifdef NGX_QUIC_DEBUG_CRYPTO
|
|
||||||
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
|
||||||
"quic ngx_quic_set_encryption_secrets() level:%d", level);
|
"quic ngx_quic_set_encryption_secrets() level:%d", level);
|
||||||
|
#ifdef NGX_QUIC_DEBUG_CRYPTO
|
||||||
ngx_quic_hexdump(c->log, "quic read", rsecret, secret_len);
|
ngx_quic_hexdump(c->log, "quic read", rsecret, secret_len);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -1691,6 +1691,15 @@ ngx_quic_process_packet(ngx_connection_t *c, ngx_quic_conf_t *conf,
|
|||||||
|
|
||||||
qc = c->quic;
|
qc = c->quic;
|
||||||
|
|
||||||
|
#if (NGX_DEBUG)
|
||||||
|
ngx_quic_hexdump(c->log, "quic pkt dcid", pkt->dcid.data, pkt->dcid.len);
|
||||||
|
|
||||||
|
if (pkt->level != ssl_encryption_application) {
|
||||||
|
ngx_quic_hexdump(c->log, "quic pkt scid", pkt->scid.data,
|
||||||
|
pkt->scid.len);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (qc) {
|
if (qc) {
|
||||||
|
|
||||||
if (rc == NGX_ABORT) {
|
if (rc == NGX_ABORT) {
|
||||||
|
@ -165,9 +165,9 @@ ngx_quic_set_initial_secret(ngx_pool_t *pool, ngx_quic_secret_t *client,
|
|||||||
.len = is_len
|
.len = is_len
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef NGX_QUIC_DEBUG_CRYPTO
|
|
||||||
ngx_log_debug0(NGX_LOG_DEBUG_EVENT, pool->log, 0,
|
ngx_log_debug0(NGX_LOG_DEBUG_EVENT, pool->log, 0,
|
||||||
"quic ngx_quic_set_initial_secret");
|
"quic ngx_quic_set_initial_secret");
|
||||||
|
#ifdef NGX_QUIC_DEBUG_CRYPTO
|
||||||
ngx_quic_hexdump(pool->log, "quic salt", salt, sizeof(salt));
|
ngx_quic_hexdump(pool->log, "quic salt", salt, sizeof(salt));
|
||||||
ngx_quic_hexdump(pool->log, "quic initial secret", is, is_len);
|
ngx_quic_hexdump(pool->log, "quic initial secret", is, is_len);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user