mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Fix for "set but not used".
This commit is contained in:
@ -3191,8 +3191,8 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
|||||||
#endif /* HAVE_ECC */
|
#endif /* HAVE_ECC */
|
||||||
#if defined(WOLFSSL_TRUST_PEER_CERT) && !defined(NO_FILESYSTEM)
|
#if defined(WOLFSSL_TRUST_PEER_CERT) && !defined(NO_FILESYSTEM)
|
||||||
if (trustCert) {
|
if (trustCert) {
|
||||||
if ((ret = wolfSSL_CTX_trust_peer_cert(ctx, trustCert,
|
if (wolfSSL_CTX_trust_peer_cert(ctx, trustCert,
|
||||||
WOLFSSL_FILETYPE_PEM)) != WOLFSSL_SUCCESS) {
|
WOLFSSL_FILETYPE_PEM) != WOLFSSL_SUCCESS) {
|
||||||
wolfSSL_CTX_free(ctx); ctx = NULL;
|
wolfSSL_CTX_free(ctx); ctx = NULL;
|
||||||
err_sys("can't load trusted peer cert file");
|
err_sys("can't load trusted peer cert file");
|
||||||
}
|
}
|
||||||
|
@ -2568,9 +2568,8 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
|||||||
}
|
}
|
||||||
#ifdef WOLFSSL_TRUST_PEER_CERT
|
#ifdef WOLFSSL_TRUST_PEER_CERT
|
||||||
if (trustCert) {
|
if (trustCert) {
|
||||||
if ((ret = wolfSSL_CTX_trust_peer_cert(ctx, trustCert,
|
if (wolfSSL_CTX_trust_peer_cert(ctx, trustCert,
|
||||||
WOLFSSL_FILETYPE_PEM))
|
WOLFSSL_FILETYPE_PEM) != WOLFSSL_SUCCESS) {
|
||||||
!= WOLFSSL_SUCCESS) {
|
|
||||||
err_sys_ex(runWithErrors, "can't load trusted peer cert file");
|
err_sys_ex(runWithErrors, "can't load trusted peer cert file");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2790,8 +2789,8 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
|
|||||||
}
|
}
|
||||||
#ifdef WOLFSSL_TRUST_PEER_CERT
|
#ifdef WOLFSSL_TRUST_PEER_CERT
|
||||||
if (trustCert) {
|
if (trustCert) {
|
||||||
if ((ret = wolfSSL_trust_peer_cert(ssl, trustCert,
|
if (wolfSSL_trust_peer_cert(ssl, trustCert,
|
||||||
WOLFSSL_FILETYPE_PEM)) != WOLFSSL_SUCCESS) {
|
WOLFSSL_FILETYPE_PEM) != WOLFSSL_SUCCESS) {
|
||||||
err_sys_ex(runWithErrors, "can't load trusted peer cert "
|
err_sys_ex(runWithErrors, "can't load trusted peer cert "
|
||||||
"file");
|
"file");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user