Compile with the latest ngtcp2

This commit is contained in:
Tatsuhiro Tsujikawa 2020-12-01 14:57:51 +09:00
parent 51510f1710
commit 4660252b32
1 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ ngtcp2_crypto_level from_ossl_level(OSSL_ENCRYPTION_LEVEL ossl_level) {
case ssl_encryption_handshake:
return NGTCP2_CRYPTO_LEVEL_HANDSHAKE;
case ssl_encryption_application:
return NGTCP2_CRYPTO_LEVEL_APP;
return NGTCP2_CRYPTO_LEVEL_APPLICATION;
default:
assert(0);
}
@ -448,7 +448,7 @@ int Client::quic_on_key(ngtcp2_crypto_level level, const uint8_t *rx_secret,
return -1;
}
if (level == NGTCP2_CRYPTO_LEVEL_APP) {
if (level == NGTCP2_CRYPTO_LEVEL_APPLICATION) {
auto s = std::make_unique<Http3Session>(this);
if (s->init_conn() == -1) {
return -1;