ngtcp2_crypto_recv_client_initial_cb

Synopsis

#include <ngtcp2/ngtcp2_crypto.h>

int ngtcp2_crypto_recv_client_initial_cb(ngtcp2_conn *conn, const ngtcp2_cid *dcid, void *user_data)

ngtcp2_crypto_recv_client_initial_cb() installs initial secrets in response to an incoming Initial packet from client, and sets QUIC transport parameters.

This function can be directly passed to ngtcp2_callbacks.recv_client_initial field. It is only used by server.

This function returns 0 if it succeeds, or NGTCP2_ERR_CALLBACK_FAILURE.