ngtcp2_crypto_quictls_init

Synopsis

#include <ngtcp2/ngtcp2_crypto_quictls.h>

int ngtcp2_crypto_quictls_init(void)

ngtcp2_crypto_quictls_init() initializes libngtcp2_crypto_quictls library. This initialization is optional. For quictls >= 3.0, it is highly recommended to call this function before any use of libngtcp2_crypto library API to workaround the performance regression. Note that calling this function does not solve all performance issues introduced in 3.x. For quictls 1.1.1, this function does nothing, and always succeeds.

This function returns 0 if it succeeds, or -1.