Skip to content

Commit cf24b6a

Browse files
author
Andrzej Kurek
committed
Add a link to the platform context passing issue
1 parent ca6c3d4 commit cf24b6a

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ int main() {
443443
return 1;
444444
}
445445

446+
// The platform context is passed just in case any crypto calls need it.
447+
// Please refer to https://github.com/ARMmbed/mbedtls/issues/1200 for more information.
446448
HelloHTTPS *hello = new HelloHTTPS(HTTPS_SERVER_NAME, HTTPS_SERVER_PORT, network, &platform_ctx);
447449
hello->startTest(HTTPS_PATH);
448450
delete hello;

0 commit comments

Comments
 (0)