FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/asn.c
/* Copy Dates from cert, return bytes written */
Copy Dates from cert, return bytes written
Copy Dates from cert return bytes written
static int CopyValidity(byte* output, Cert* cert)
{
    int seqSz;
    WOLFSSL_ENTER("CopyValidity");
    seqSz = SetSequence(cert->beforeDateSz + cert->afterDateSz, output);
    if (output) {
        XMEMCPY(output + seqSz, cert->beforeDate, cert->beforeDateSz);
        XMEMCPY(output + seqSz + cert->beforeDateSz, cert->afterDate,
                                                     cert->afterDateSz);
    }
    return seqSz + cert->beforeDateSz + cert->afterDateSz;
}
static int CopyValidity ( byte * output , Cert * cert ) { int seqSz ; WOLFSSL_ENTER ( " " ) ; seqSz = SetSequence ( cert -> beforeDateSz + cert -> afterDateSz , output ) ; if ( output ) { XMEMCPY ( output + seqSz , cert -> beforeDate , cert -> beforeDateSz ) ; XMEMCPY ( output + seqSz + cert -> beforeDateSz , cert -> afterDate , cert -> afterDateSz ) ; } return seqSz + cert -> beforeDateSz + cert -> afterDateSz ; }
Copy Dates from cert, return bytes written
Copy Dates from cert return bytes written
/* headers and output */