ngtcp2_crypto_ossl_ctx_new
Synopsis
#include <ngtcp2/ngtcp2_crypto_ossl.h>
-
int ngtcp2_crypto_ossl_ctx_new(ngtcp2_crypto_ossl_ctx **pctx, SSL *ssl)
ngtcp2_crypto_ossl_ctx_new()
creates newngtcp2_crypto_ossl_ctx
object, and sets it to *pctx if it succeeds.ssl is set to *pctx. It may be NULL, and in that case, call
ngtcp2_crypto_ossl_ctx_set_ssl()
later to setSSL
object.This function returns 0 if it succeeds, or one of the following negative error codes:
NGTCP2_CRYPTO_ERR_NOMEM
Out of memory