ngtcp2_crypto_boringssl_configure_client_context¶
Synopsis¶
#include <ngtcp2/ngtcp2_crypto_boringssl.h>
-
int
ngtcp2_crypto_boringssl_configure_client_context(SSL_CTX *ssl_ctx)¶ ngtcp2_crypto_boringssl_configure_client_context()configures ssl_ctx for client side QUIC connection. It performs the following modifications:Set minimum and maximum TLS version to TLSv1.3.
Set SSL_QUIC_METHOD by calling SSL_CTX_set_quic_method.
Application must set a pointer to
ngtcp2_crypto_conn_refto SSL object by calling SSL_set_app_data, andngtcp2_crypto_conn_refobject must havengtcp2_crypto_conn_ref.get_connfield assigned to getngtcp2_conn.It returns 0 if it succeeds, or -1.