FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/asn.c
/* Set cert issuer from issuerFile in PEM */
Set cert issuer from issuerFile in PEM
Set cert issuer from issuerFile in PEM
int wc_SetIssuer(Cert* cert, const char* issuerFile)
{
    int         ret;
    int         derSz;
    byte*       der;
    if (cert == NULL) {
        return BAD_FUNC_ARG;
    }
    der = (byte*)XMALLOC(EIGHTK_BUF, cert->heap, DYNAMIC_TYPE_CERT);
    if (der == NULL) {
        WOLFSSL_MSG("wc_SetIssuer OOF Problem");
        return MEMORY_E;
    }
    derSz = wc_PemCertToDer(issuerFile, der, EIGHTK_BUF);
    cert->selfSigned = 0;
    ret = SetNameFromCert(&cert->issuer, der, derSz);
    XFREE(der, cert->heap, DYNAMIC_TYPE_CERT);
    return ret;
}
int wc_SetIssuer ( Cert * cert , const char * issuerFile ) { int ret ; int derSz ; byte * der ; if ( cert == NULL ) { return BAD_FUNC_ARG ; } der = ( byte * ) XMALLOC ( EIGHTK_BUF , cert -> heap , DYNAMIC_TYPE_CERT ) ; if ( der == NULL ) { WOLFSSL_MSG ( " " ) ; return MEMORY_E ; } derSz = wc_PemCertToDer ( issuerFile , der , EIGHTK_BUF ) ; cert -> selfSigned = 0 ; ret = SetNameFromCert ( & cert -> issuer , der , derSz ) ; XFREE ( der , cert -> heap , DYNAMIC_TYPE_CERT ) ; return ret ; }
Set cert issuer from issuerFile in PEM
Set cert issuer from issuerFile in PEM