ngtcp2_crypto_ctx_tls_early

Synopsis

#include <ngtcp2/ngtcp2_crypto.h>

ngtcp2_crypto_ctx *ngtcp2_crypto_ctx_tls_early(ngtcp2_crypto_ctx *ctx, void *tls_native_handle)

ngtcp2_crypto_ctx_tls_early() initializes ctx by extracting early ciphers and message digests from native TLS session tls_native_handle. This is used for encrypting/decrypting 0-RTT packets. If it is unable to obtain necessary data from tls_native_handle, this function returns NULL.

If libngtcp2_crypto_quictls is linked, tls_native_handle must be a pointer to SSL object.