FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/asn.c
/* encode CA basic constraint true, return total bytes written */
encode CA basic constraint true, return total bytes written
encode CA basic constraint true return total bytes written
static int SetCa(byte* out, word32 outSz)
{
    const byte ca[] = { 0x30, 0x0c, 0x06, 0x03, 0x55, 0x1d, 0x13, 0x04,
                               0x05, 0x30, 0x03, 0x01, 0x01, 0xff };
    if (out == NULL)
        return BAD_FUNC_ARG;
    if (outSz < sizeof(ca))
        return BUFFER_E;
    XMEMCPY(out, ca, sizeof(ca));
    return (int)sizeof(ca);
}
static int SetCa ( byte * out , word32 outSz ) { const byte ca [ ] = { 0x30 , 0x0c , 0x06 , 0x03 , 0x55 , 0x1d , 0x13 , 0x04 , 0x05 , 0x30 , 0x03 , 0x01 , 0x01 , 0xff } ; if ( out == NULL ) return BAD_FUNC_ARG ; if ( outSz < sizeof ( ca ) ) return BUFFER_E ; XMEMCPY ( out , ca , sizeof ( ca ) ) ; return ( int ) sizeof ( ca ) ; }
encode CA basic constraint true, return total bytes written
encode CA basic constraint true return total bytes written