• Gilles Peskine's avatar
    Implement parameter validation in pk, pkparse and pkwrite · e97dc60b
    Gilles Peskine authored
    Add checks for null pointers under MBEDTLS_CHECK_PARAMS.
    
    In functions that perform operations with a context, only check if the
    context pointer is non-null under MBEDTLS_CHECK_PARAMS. In the default
    configuration, unconditionally dereference the context pointer.
    
    In functions that query a context, support NULL as a
    pointer-to-context argument, and return the same value as for a
    context which has been initialized but not set up.
    e97dc60b