ngtcp2_crypto_recv_retry_cb
Synopsis
#include <ngtcp2/ngtcp2_crypto.h>
-
int ngtcp2_crypto_recv_retry_cb(ngtcp2_conn *conn, const ngtcp2_pkt_hd *hd, void *user_data)
ngtcp2_crypto_recv_retry_cb()
re-installs initial secrets in response to incoming Retry packet.This function can be directly passed to
ngtcp2_callbacks.recv_retry
field. It is only used by client.This function returns 0 if it succeeds, or
NGTCP2_ERR_CALLBACK_FAILURE
.