FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/asn.c
/* encode all extensions, return total bytes written */
encode all extensions, return total bytes written
encode all extensions return total bytes written
static int SetExtensions(byte* out, word32 outSz, int *IdxInOut,
                         const byte* ext, int extSz)
{
    if (out == NULL || IdxInOut == NULL || ext == NULL)
        return BAD_FUNC_ARG;
    if (outSz < (word32)(*IdxInOut+extSz))
        return BUFFER_E;
    XMEMCPY(&out[*IdxInOut], ext, extSz);  
    *IdxInOut += extSz;
    return *IdxInOut;
}
static int SetExtensions ( byte * out , word32 outSz , int * IdxInOut , const byte * ext , int extSz ) { if ( out == NULL || IdxInOut == NULL || ext == NULL ) return BAD_FUNC_ARG ; if ( outSz < ( word32 ) ( * IdxInOut + extSz ) ) return BUFFER_E ; XMEMCPY ( & out [ * IdxInOut ] , ext , extSz ) ; * IdxInOut += extSz ; return * IdxInOut ; }
encode all extensions, return total bytes written
encode all extensions return total bytes written
/* extensions */