ngtcp2_crypto_get_path_challenge_data_cb

Synopsis

#include <ngtcp2/ngtcp2_crypto.h>

int ngtcp2_crypto_get_path_challenge_data_cb(ngtcp2_conn *conn, uint8_t *data, void *user_data)

ngtcp2_crypto_get_path_challenge_data_cb() writes unpredictable sequence of NGTCP2_PATH_CHALLENGE_DATALEN bytes to data which is sent with PATH_CHALLENGE frame.

This function can be directly passed to ngtcp2_callbacks.get_path_challenge_data field.