Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_openssl_compat.c @ 9171:f98636db77ef
QUIC: renamed protection functions.
Now these functions have names ngx_quic_crypto_XXX():
- ngx_quic_tls_open() -> ngx_quic_crypto_open()
- ngx_quic_tls_seal() -> ngx_quic_crypto_seal()
- ngx_quic_tls_hp() -> ngx_quic_crypto_hp()
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 20 Oct 2023 18:05:07 +0400 |
parents | 3db945fda515 |
children | 4ccb0d973206 |
comparison
equal
deleted
inserted
replaced
9170:c80d111340dc | 9171:f98636db77ef |
---|---|
576 secret = &rec->keys->secret; | 576 secret = &rec->keys->secret; |
577 | 577 |
578 ngx_memcpy(nonce, secret->iv.data, secret->iv.len); | 578 ngx_memcpy(nonce, secret->iv.data, secret->iv.len); |
579 ngx_quic_compute_nonce(nonce, sizeof(nonce), rec->number); | 579 ngx_quic_compute_nonce(nonce, sizeof(nonce), rec->number); |
580 | 580 |
581 if (ngx_quic_tls_seal(ciphers.c, secret, &out, | 581 if (ngx_quic_crypto_seal(ciphers.c, secret, &out, |
582 nonce, &rec->payload, &ad, rec->log) | 582 nonce, &rec->payload, &ad, rec->log) |
583 != NGX_OK) | 583 != NGX_OK) |
584 { | 584 { |
585 return NGX_ERROR; | 585 return NGX_ERROR; |
586 } | 586 } |
587 | 587 |