mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
address review comments
This commit is contained in:
@@ -406,8 +406,8 @@ void sce_test(void)
|
|||||||
info[i].ctx = client_ctx;
|
info[i].ctx = client_ctx;
|
||||||
info[i].id = i;
|
info[i].id = i;
|
||||||
|
|
||||||
memset(info[i].name, 0, sizeof(info[i].name));
|
XMEMSET(info[i].name, 0, sizeof(info[i].name));
|
||||||
sprintf(info[i].name, "wolfSSL_TLS_client_do(%02d)", i);
|
XSPRINTF(info[i].name, "wolfSSL_TLS_client_do(%02d)", i);
|
||||||
|
|
||||||
if(wolfSSL_TLS_client_do(&info[i]) == -116) {
|
if(wolfSSL_TLS_client_do(&info[i]) == -116) {
|
||||||
TCP_connect_retry++;
|
TCP_connect_retry++;
|
||||||
|
@@ -196,17 +196,17 @@ int wolfSSL_TLS_client_do(void *pvParam)
|
|||||||
/* Set callback CTX */
|
/* Set callback CTX */
|
||||||
#if !defined(TLS_MULTITHREAD_TEST)
|
#if !defined(TLS_MULTITHREAD_TEST)
|
||||||
|
|
||||||
memset(&guser_PKCbInfo, 0, sizeof(FSPSM_ST));
|
XMEMSET(&guser_PKCbInfo, 0, sizeof(FSPSM_ST));
|
||||||
guser_PKCbInfo.devId = 0;
|
guser_PKCbInfo.devId = 0;
|
||||||
wc_sce_set_callback_ctx(ssl, (void*)&guser_PKCbInfo);
|
wc_sce_set_callback_ctx(ssl, (void*)&guser_PKCbInfo);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
if (p->port - DEFAULT_PORT == 0) {
|
if (p->port - DEFAULT_PORT == 0) {
|
||||||
memset(&guser_PKCbInfo_taskA, 0, sizeof(FSPSM_ST));
|
XMEMSET(&guser_PKCbInfo_taskA, 0, sizeof(FSPSM_ST));
|
||||||
wc_sce_set_callback_ctx(ssl, (void*)&guser_PKCbInfo_taskA);
|
wc_sce_set_callback_ctx(ssl, (void*)&guser_PKCbInfo_taskA);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
memset(&guser_PKCbInfo_taskB, 0, sizeof(FSPSM_ST));
|
XMEMSET(&guser_PKCbInfo_taskB, 0, sizeof(FSPSM_ST));
|
||||||
wc_sce_set_callback_ctx(ssl, (void*)&guser_PKCbInfo_taskB);
|
wc_sce_set_callback_ctx(ssl, (void*)&guser_PKCbInfo_taskB);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -44,7 +44,8 @@
|
|||||||
#define FSPSM_OPEN R_SCE_Open
|
#define FSPSM_OPEN R_SCE_Open
|
||||||
#define FSPSM_CLOSE R_SCE_Close
|
#define FSPSM_CLOSE R_SCE_Close
|
||||||
|
|
||||||
#define FSPSM_ROOTCA_RSA2048 R_SCE_TLS_RootCertificateRSA2048PublicKeyInstall
|
#define FSPSM_ROOTCA_RSA2048 \
|
||||||
|
R_SCE_TLS_RootCertificateRSA2048PublicKeyInstall
|
||||||
#define FSPSM_TLS_SVRKEYExVfy R_SCE_TLS_ServerKeyExchangeVerify
|
#define FSPSM_TLS_SVRKEYExVfy R_SCE_TLS_ServerKeyExchangeVerify
|
||||||
#define FSPSM_TLS_ECCS256R1_KPG \
|
#define FSPSM_TLS_ECCS256R1_KPG \
|
||||||
R_SCE_TLS_ECC_secp256r1_EphemeralWrappedKeyPairGenerate
|
R_SCE_TLS_ECC_secp256r1_EphemeralWrappedKeyPairGenerate
|
||||||
@@ -69,7 +70,8 @@
|
|||||||
/* certificate */
|
/* certificate */
|
||||||
#define FSPSM_TLSCERT_VRY R_SCE_TLS_CertificateVerify
|
#define FSPSM_TLSCERT_VRY R_SCE_TLS_CertificateVerify
|
||||||
#define FSPSM_TLSROOTCERT_VRY R_SCE_TLS_RootCertificateVerify
|
#define FSPSM_TLSROOTCERT_VRY R_SCE_TLS_RootCertificateVerify
|
||||||
#define FSPSM_CACERT_PUB_WKEY sce_tls_ca_certification_public_wrapped_key_t
|
#define FSPSM_CACERT_PUB_WKEY \
|
||||||
|
sce_tls_ca_certification_public_wrapped_key_t
|
||||||
|
|
||||||
/* verify data */
|
/* verify data */
|
||||||
#define FSPSM_VERIFY_DATA_FUNC R_SCE_TLS_VerifyDataGenerate
|
#define FSPSM_VERIFY_DATA_FUNC R_SCE_TLS_VerifyDataGenerate
|
||||||
|
Reference in New Issue
Block a user