From 7006bf04e3028e14dc66c3add76888847d5dfd98 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 22 Dec 2020 16:01:36 +0900 Subject: [PATCH] Compile with the latest ngtcp2 --- src/h2load_quic.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/h2load_quic.cc b/src/h2load_quic.cc index 5231666d..daae278d 100644 --- a/src/h2load_quic.cc +++ b/src/h2load_quic.cc @@ -241,8 +241,9 @@ int set_encryption_secrets(SSL *ssl, OSSL_ENCRYPTION_LEVEL ossl_level, size_t secret_len) { auto c = static_cast(SSL_get_app_data(ssl)); - if (c->quic_on_key(ngtcp2_crypto_from_ossl_encryption_level(ossl_level), - rx_secret, tx_secret, secret_len) != 0) { + if (c->quic_on_key( + ngtcp2_crypto_openssl_from_ossl_encryption_level(ossl_level), + rx_secret, tx_secret, secret_len) != 0) { return 0; } @@ -255,7 +256,7 @@ int add_handshake_data(SSL *ssl, OSSL_ENCRYPTION_LEVEL ossl_level, const uint8_t *data, size_t len) { auto c = static_cast(SSL_get_app_data(ssl)); c->quic_write_client_handshake( - ngtcp2_crypto_from_ossl_encryption_level(ossl_level), data, len); + ngtcp2_crypto_openssl_from_ossl_encryption_level(ossl_level), data, len); return 1; } } // namespace