ngtcp2_crypto_picotls_configure_client_context

Synopsis

#include <ngtcp2/ngtcp2_crypto_picotls.h>

int ngtcp2_crypto_picotls_configure_client_context(ptls_context_t *ctx)

ngtcp2_crypto_picotls_configure_client_context() configures ctx for client side QUIC connection. It performs the following modifications:

  • Set omit_end_of_early_data to 1.

  • Set update_traffic_key callback.

Application must set a pointer to ngtcp2_crypto_conn_ref to ptls_t object by assigning the pointer using ptls_get_data_ptr, and ngtcp2_crypto_conn_ref object must have ngtcp2_crypto_conn_ref.get_conn field assigned to get ngtcp2_conn.

It returns 0 if it succeeds, or -1.