Skip to content

Commit

Permalink
diable MBEDTLS_SSL_USE_MPS
Browse files Browse the repository at this point in the history
Prepare for subtask 1 of hannestschofenig#15

Change-Id: I09dadc8b8800de72005620ec8c90612b7f784e29
CustomizedGitHooks: yes
Signed-off-by: Jerry Yu <[email protected]>
  • Loading branch information
yuhaoth committed Jul 16, 2021
1 parent 3c821df commit 8f7ea66
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/mbedtls/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@
*
* TODO: Document
*/
#define MBEDTLS_SSL_USE_MPS
//#define MBEDTLS_SSL_USE_MPS

/**
* \def MBEDTLS_SSL_DTLS_CONNECTION_ID
Expand Down
5 changes: 4 additions & 1 deletion programs/ssl/ssl_client2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2151,7 +2151,10 @@ int main( int argc, char *argv[] )
mbedtls_printf( "Warning: event-driven IO mandates nbio=1 - overwrite\n" );
opt.nbio = 1;
}

#if !defined(MBEDTLS_SSL_USE_MPS)
// TODO: if test issue #238 , This should be removed
opt.nbio = 0;
#endif
#if defined(MBEDTLS_DEBUG_C)
mbedtls_debug_set_threshold( opt.debug_level );
#endif
Expand Down
5 changes: 4 additions & 1 deletion programs/ssl/ssl_server2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2850,7 +2850,10 @@ int main( int argc, char *argv[] )
mbedtls_printf( "Warning: event-driven IO mandates nbio=1 - overwrite\n" );
opt.nbio = 1;
}

#if !defined(MBEDTLS_SSL_USE_MPS)
// TODO: if test issue #238 , This should be removed
opt.nbio = 0;
#endif
#if defined(MBEDTLS_DEBUG_C)
mbedtls_debug_set_threshold( opt.debug_level );
#endif
Expand Down

0 comments on commit 8f7ea66

Please sign in to comment.