1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

null crypto thangs

This commit is contained in:
dan 2023-03-03 11:59:26 -08:00
parent 6e47d6001b
commit 9cc2cb8c3e
2 changed files with 4 additions and 0 deletions

View file

@ -111,6 +111,7 @@ namespace llarp::quic
return CALLBACK_FAIL;
case NGTCP2_CRYPTO_LEVEL_INITIAL:
log::debug(logcat, "Entering case NGTCP2_CRYPTO_LEVEL_INITIAL");
// "Initial" level means we are still handshaking; if we are server then we receive
// the client's transport params (sent in client_initial, above) and blast ours
// back. If we are a client then getting here means we received a response from the
@ -141,6 +142,7 @@ namespace llarp::quic
break;
case NGTCP2_CRYPTO_LEVEL_HANDSHAKE:
log::debug(logcat, "Entering case NGTCP2_CRYPTO_LEVEL_HANDSHAKE");
if (!ngtcp2_conn_is_server(conn))
{
if (auto rv = conn.recv_transport_params(data); rv != 0)
@ -177,6 +179,7 @@ namespace llarp::quic
break;
case NGTCP2_CRYPTO_LEVEL_APPLICATION:
log::debug(logcat, "Entering case NGTCP2_CRYPTO_LEVEL_APPLICATION");
// if (!conn.init_tx_key())
// return CALLBACK_FAIL;
break;

View file

@ -101,6 +101,7 @@ namespace llarp::quic
bool
NullCrypto::install_rx_key(ngtcp2_conn* conn)
{
log::debug(logcat, "Calling {}", __PRETTY_FUNCTION__);
return ngtcp2_conn_install_rx_key(
conn,
nullptr,