ngtcp2_conn_set_crypto_ctx

Synopsis

#include <ngtcp2/ngtcp2.h>

void ngtcp2_conn_set_crypto_ctx(ngtcp2_conn *conn, const ngtcp2_crypto_ctx *ctx)

ngtcp2_conn_set_crypto_ctx() sets ctx for Handshake/1-RTT packet encryption. The passed data will be passed to ngtcp2_encrypt, ngtcp2_decrypt and ngtcp2_hp_mask callbacks.