mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Fix unit API test call to wolfSSL_CertManagerLoadCA
when building without file system.
This commit is contained in:
@@ -10279,12 +10279,16 @@ static void test_wc_ecc_get_curve_id_from_params(void)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NO_FILESYSTEM
|
||||||
ret = wolfSSL_CertManagerLoadCA(cm, ca, 0);
|
ret = wolfSSL_CertManagerLoadCA(cm, ca, 0);
|
||||||
if (ret != SSL_SUCCESS) {
|
if (ret != SSL_SUCCESS) {
|
||||||
printf("wolfSSL_CertManagerLoadCA failed\n");
|
printf("wolfSSL_CertManagerLoadCA failed\n");
|
||||||
wolfSSL_CertManagerFree(cm);
|
wolfSSL_CertManagerFree(cm);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
(void)ca;
|
||||||
|
#endif
|
||||||
|
|
||||||
ret = wolfSSL_CertManagerVerifyBuffer(cm, cert_buf, cert_sz, SSL_FILETYPE_ASN1);
|
ret = wolfSSL_CertManagerVerifyBuffer(cm, cert_buf, cert_sz, SSL_FILETYPE_ASN1);
|
||||||
/* Let AssertIntEQ handle return code */
|
/* Let AssertIntEQ handle return code */
|
||||||
|
Reference in New Issue
Block a user