Skip to content

Commit 75d6f79

Browse files
Andrzej KurekPatater
authored andcommitted
Add a link to the platform context passing issue
1 parent adcd797 commit 75d6f79

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

authcrypt/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ int main() {
3030
}
3131

3232
int exit_code = MBEDTLS_EXIT_SUCCESS;
33+
// The platform context is passed just in case any crypto calls need it.
34+
// Please refer to https://github.com/ARMmbed/mbedtls/issues/1200 for more information.
3335
Authcrypt *authcrypt = new Authcrypt(&platform_ctx);
3436

3537
if (authcrypt->run() != 0) {

benchmark/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ static int benchmark( int argc, char *argv[], mbedtls_platform_context* ctx )
311311
#endif
312312
// The call below is used to avoid the "unused parameter" warning.
313313
// The context itself can be used by cryptographic calls which require it.
314+
// Please refer to https://github.com/ARMmbed/mbedtls/issues/1200 for more information.
314315
(void)ctx;
315316
if( argc <= 1 )
316317
{

hashing/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ static int example(mbedtls_platform_context* ctx)
5151
{
5252
// The call below is used to avoid the "unused parameter" warning.
5353
// The context itself can be used by cryptographic calls which require it.
54+
// Please refer to https://github.com/ARMmbed/mbedtls/issues/1200 for more information.
5455
(void)ctx;
5556

5657
mbedtls_printf("\r\n\r\n");

tls-client/main.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ int main()
7070
printf("Using Mbed OS from master.\n");
7171
#endif /* MBEDTLS_MAJOR_VERSION */
7272

73-
/* Allocate a HTTPS client */
73+
/* Allocate a HTTPS client
74+
*
75+
* The platform context is passed just in case any crypto calls need it.
76+
* Please refer to https://github.com/ARMmbed/mbedtls/issues/1200 for more
77+
* information. */
7478
client = new (std::nothrow) HelloHttpsClient(SERVER_NAME, SERVER_PORT,
7579
&platform_ctx);
7680
if (client == NULL) {

0 commit comments

Comments
 (0)