
ngtcp2_secure_clear
===================

Synopsis
--------

*#include <ngtcp2/ngtcp2.h>*

.. function:: void ngtcp2_secure_clear(void *data, size_t len)

    
    `ngtcp2_secure_clear` writes *len* bytes of zeros into the buffer
    pointed by *data*.  It does that by avoiding compiler
    optimizations.  If the following functions are available, one of
    them is used:
    
    - ``SecureZeroMemory``
    - ``explicit_bzero``
    - ``memset_s``
    
    Otherwise, it uses volatile function pointer to ``memset`` to fill
    zeros.
    
    .. version-added:: 1.23.0
