mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 22:25:11 +00:00
ssl_cli/srv2: Indicate nss_keylog and eap_tls are mut. exclusive
This commit is contained in:
parent
48f3a3d101
commit
bc5308cb9a
|
@ -234,7 +234,8 @@ int main( void )
|
||||||
#define USAGE_EAP_TLS \
|
#define USAGE_EAP_TLS \
|
||||||
" eap_tls=%%d default: 0 (disabled)\n"
|
" eap_tls=%%d default: 0 (disabled)\n"
|
||||||
#define USAGE_NSS_KEYLOG \
|
#define USAGE_NSS_KEYLOG \
|
||||||
" nss_keylog=%%d default: 0 (disabled)\n"
|
" nss_keylog=%%d default: 0 (disabled)\n" \
|
||||||
|
" This cannot be used with eap_tls=1\n"
|
||||||
#define USAGE_NSS_KEYLOG_FILE \
|
#define USAGE_NSS_KEYLOG_FILE \
|
||||||
" nss_keylog_file=%%s\n"
|
" nss_keylog_file=%%s\n"
|
||||||
#else
|
#else
|
||||||
|
@ -1707,6 +1708,12 @@ int main( int argc, char *argv[] )
|
||||||
goto usage;
|
goto usage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( opt.nss_keylog != 0 && opt.eap_tls != 0 )
|
||||||
|
{
|
||||||
|
mbedtls_printf( "Error: eap_tls and nss_keylog options cannot be used together.\n" );
|
||||||
|
goto usage;
|
||||||
|
}
|
||||||
|
|
||||||
/* Event-driven IO is incompatible with the above custom
|
/* Event-driven IO is incompatible with the above custom
|
||||||
* receive and send functions, as the polling builds on
|
* receive and send functions, as the polling builds on
|
||||||
* refers to the underlying net_context. */
|
* refers to the underlying net_context. */
|
||||||
|
|
|
@ -311,7 +311,8 @@ int main( void )
|
||||||
#define USAGE_EAP_TLS \
|
#define USAGE_EAP_TLS \
|
||||||
" eap_tls=%%d default: 0 (disabled)\n"
|
" eap_tls=%%d default: 0 (disabled)\n"
|
||||||
#define USAGE_NSS_KEYLOG \
|
#define USAGE_NSS_KEYLOG \
|
||||||
" nss_keylog=%%d default: 0 (disabled)\n"
|
" nss_keylog=%%d default: 0 (disabled)\n" \
|
||||||
|
" This cannot be used with eap_tls=1\n"
|
||||||
#define USAGE_NSS_KEYLOG_FILE \
|
#define USAGE_NSS_KEYLOG_FILE \
|
||||||
" nss_keylog_file=%%s\n"
|
" nss_keylog_file=%%s\n"
|
||||||
#else
|
#else
|
||||||
|
@ -2424,6 +2425,12 @@ int main( int argc, char *argv[] )
|
||||||
goto usage;
|
goto usage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( opt.nss_keylog != 0 && opt.eap_tls != 0 )
|
||||||
|
{
|
||||||
|
mbedtls_printf( "Error: eap_tls and nss_keylog options cannot be used together.\n" );
|
||||||
|
goto usage;
|
||||||
|
}
|
||||||
|
|
||||||
/* Event-driven IO is incompatible with the above custom
|
/* Event-driven IO is incompatible with the above custom
|
||||||
* receive and send functions, as the polling builds on
|
* receive and send functions, as the polling builds on
|
||||||
* refers to the underlying net_context. */
|
* refers to the underlying net_context. */
|
||||||
|
|
Loading…
Reference in a new issue