FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/src/bio.c
/* this compatibility function can be used for multiple BIO types */
this compatibility function can be used for multiple BIO types
this compatibility function can be used for multiple BIO types
int wolfSSL_BIO_get_mem_data(WOLFSSL_BIO* bio, void* p)
{
    WOLFSSL_ENTER("wolfSSL_BIO_get_mem_data");
    if (bio == NULL)
        return WOLFSSL_FATAL_ERROR;
    if (p) {
        *(byte**)p = (byte*)bio->ptr;
    }
    return bio->num;
}
int wolfSSL_BIO_get_mem_data ( WOLFSSL_BIO * bio , void * p ) { WOLFSSL_ENTER ( " " ) ; if ( bio == NULL ) return WOLFSSL_FATAL_ERROR ; if ( p ) { * ( byte * * ) p = ( byte * ) bio -> ptr ; } return bio -> num ; }
this compatibility function can be used for multiple BIO types
this compatibility function can be used for multiple BIO types