ngtcp2_crypto_client_initial_cb
Synopsis
#include <ngtcp2/ngtcp2_crypto.h>
-
int ngtcp2_crypto_client_initial_cb(ngtcp2_conn *conn, void *user_data)
ngtcp2_crypto_client_initial_cb()
installs initial secrets and encryption keys, and sets QUIC transport parameters.This function can be directly passed to
ngtcp2_callbacks.client_initial
field. It is only used by client.This function returns 0 if it succeeds, or
NGTCP2_ERR_CALLBACK_FAILURE
.