ngtcp2_crypto_version_negotiation_cb

Synopsis

#include <ngtcp2/ngtcp2_crypto.h>

int ngtcp2_crypto_version_negotiation_cb(ngtcp2_conn *conn, uint32_t version, const ngtcp2_cid *client_dcid, void *user_data)

ngtcp2_crypto_version_negotiation_cb() installs Initial keys for version which is negotiated or being negotiated. client_dcid is the destination connection ID in first Initial packet from client.

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