Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_protection.c @ 9130:0f23488a9f5a
QUIC: style.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 20 Jun 2023 17:59:02 +0400 |
parents | 7379cb29cd72 |
children | f73dfa6c0696 |
comparison
equal
deleted
inserted
replaced
9129:7379cb29cd72 | 9130:0f23488a9f5a |
---|---|
350 } | 350 } |
351 | 351 |
352 | 352 |
353 static ngx_int_t | 353 static ngx_int_t |
354 ngx_quic_tls_open(const ngx_quic_cipher_t *cipher, ngx_quic_secret_t *s, | 354 ngx_quic_tls_open(const ngx_quic_cipher_t *cipher, ngx_quic_secret_t *s, |
355 ngx_str_t *out, u_char *nonce, ngx_str_t *in, ngx_str_t *ad, | 355 ngx_str_t *out, u_char *nonce, ngx_str_t *in, ngx_str_t *ad, ngx_log_t *log) |
356 ngx_log_t *log) | |
357 { | 356 { |
358 | 357 |
359 #ifdef OPENSSL_IS_BORINGSSL | 358 #ifdef OPENSSL_IS_BORINGSSL |
360 EVP_AEAD_CTX *ctx; | 359 EVP_AEAD_CTX *ctx; |
361 | 360 |
561 ngx_ssl_error(NGX_LOG_INFO, log, 0, | 560 ngx_ssl_error(NGX_LOG_INFO, log, 0, |
562 "EVP_CIPHER_CTX_ctrl(EVP_CTRL_AEAD_GET_TAG) failed"); | 561 "EVP_CIPHER_CTX_ctrl(EVP_CTRL_AEAD_GET_TAG) failed"); |
563 return NGX_ERROR; | 562 return NGX_ERROR; |
564 } | 563 } |
565 | 564 |
565 out->len += NGX_QUIC_TAG_LEN; | |
566 | |
566 EVP_CIPHER_CTX_free(ctx); | 567 EVP_CIPHER_CTX_free(ctx); |
567 | 568 #endif |
568 out->len += NGX_QUIC_TAG_LEN; | 569 |
569 #endif | |
570 return NGX_OK; | 570 return NGX_OK; |
571 } | 571 } |
572 | 572 |
573 | 573 |
574 static ngx_int_t | 574 static ngx_int_t |