ngtcp2_crypto_recv_crypto_data_cb
Synopsis
#include <ngtcp2/ngtcp2_crypto.h>
-
int ngtcp2_crypto_recv_crypto_data_cb(ngtcp2_conn *conn, ngtcp2_encryption_level encryption_level, uint64_t offset, const uint8_t *data, size_t datalen, void *user_data)
ngtcp2_crypto_recv_crypto_data_cb()
is a wrapper function aroundngtcp2_crypto_read_write_crypto_data()
. It can be directly passed tongtcp2_callbacks.recv_crypto_data
field.If this function is used, the TLS implementation specific error codes described in
ngtcp2_crypto_read_write_crypto_data()
are treated as if it returns -1. Do not use this function if an application wishes to use the TLS implementation specific error codes.