Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Fake certificate to test prvTrustedServerCertificate
Browse files Browse the repository at this point in the history
Signed-off-by: VannamDinh <vannam.dinh.xt@renesas.com>
  • Loading branch information
VanNamDinh committed Oct 18, 2021
1 parent c4b5b3f commit 3265e8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/abstractions/secure_sockets/test/iot_test_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2581,11 +2581,11 @@ static void prvTrustedServerCertificate( void )
xSecureEchoServerAddress.usPort = SOCKETS_htons( tcptestECHO_PORT_TLS );

#if defined(__CCRL__) || defined(__ICCRL78__) || defined(__RL)
prvEraseAllCertificateFile();
prvFakeSetCertificateProfile();
#endif
xResult = SOCKETS_Connect( xSocket, &xSecureEchoServerAddress, sizeof( xSecureEchoServerAddress ) );
#if defined(__CCRL__) || defined(__ICCRL78__) || defined(__RL)
prvWriteAllCertificateFile();
prvSetCertificateProfile();
#endif
TEST_ASSERT_LESS_THAN_INT32_MESSAGE( 0, xResult, "Connection permitted with untrusted server CA cert" );

Expand Down

0 comments on commit 3265e8d

Please sign in to comment.