
ngtcp2_ccerr_set_tls_alert
==========================

Synopsis
--------

*#include <ngtcp2/ngtcp2.h>*

.. function:: void ngtcp2_ccerr_set_tls_alert(ngtcp2_ccerr *ccerr, uint8_t tls_alert, const uint8_t *reason, size_t reasonlen)

    
    `ngtcp2_ccerr_set_tls_alert` sets :member:`ccerr->type
    <ngtcp2_ccerr.type>` to
    :enum:`ngtcp2_ccerr_type.NGTCP2_CCERR_TYPE_TRANSPORT`, and
    :member:`ccerr->error_code <ngtcp2_ccerr.error_code>` to bitwise-OR
    of :macro:`NGTCP2_CRYPTO_ERROR` and *tls_alert*.  *reason* is the
    reason phrase of length *reasonlen*.  This function does not make a
    copy of the reason phrase.
