ngtcp2_crypto_picotls_configure_server_context
Synopsis
#include <ngtcp2/ngtcp2_crypto_picotls.h>
-
int ngtcp2_crypto_picotls_configure_server_context(ptls_context_t *ctx)
ngtcp2_crypto_picotls_configure_server_context()
configures ctx for server side QUIC connection. It performs the following modifications:Set max_early_data_size to UINT32_MAX.
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, andngtcp2_crypto_conn_ref
object must havengtcp2_crypto_conn_ref.get_conn
field assigned to getngtcp2_conn
.It returns 0 if it succeeds, or -1.