eapol_test: Add -v for displaying version information
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
932267ad67
commit
4363c0d6f5
1 changed files with 7 additions and 2 deletions
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "utils/ext_password.h"
|
#include "utils/ext_password.h"
|
||||||
|
#include "common/version.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "eapol_supp/eapol_supp_sm.h"
|
#include "eapol_supp/eapol_supp_sm.h"
|
||||||
#include "eap_peer/eap.h"
|
#include "eap_peer/eap.h"
|
||||||
|
@ -1239,7 +1240,7 @@ static void eapol_test_terminate(int sig, void *signal_ctx)
|
||||||
static void usage(void)
|
static void usage(void)
|
||||||
{
|
{
|
||||||
printf("usage:\n"
|
printf("usage:\n"
|
||||||
"eapol_test [-enWS] -c<conf> [-a<AS IP>] [-p<AS port>] "
|
"eapol_test [-enWSv] -c<conf> [-a<AS IP>] [-p<AS port>] "
|
||||||
"[-s<AS secret>]\\\n"
|
"[-s<AS secret>]\\\n"
|
||||||
" [-r<count>] [-t<timeout>] [-C<Connect-Info>] \\\n"
|
" [-r<count>] [-t<timeout>] [-C<Connect-Info>] \\\n"
|
||||||
" [-M<client MAC address>] [-o<server cert file] \\\n"
|
" [-M<client MAC address>] [-o<server cert file] \\\n"
|
||||||
|
@ -1264,6 +1265,7 @@ static void usage(void)
|
||||||
" -W = wait for a control interface monitor before starting\n"
|
" -W = wait for a control interface monitor before starting\n"
|
||||||
" -S = save configuration after authentication\n"
|
" -S = save configuration after authentication\n"
|
||||||
" -n = no MPPE keys expected\n"
|
" -n = no MPPE keys expected\n"
|
||||||
|
" -v = show version\n"
|
||||||
" -t<timeout> = sets timeout in seconds (default: 30 s)\n"
|
" -t<timeout> = sets timeout in seconds (default: 30 s)\n"
|
||||||
" -C<Connect-Info> = RADIUS Connect-Info (default: "
|
" -C<Connect-Info> = RADIUS Connect-Info (default: "
|
||||||
"CONNECT 11Mbps 802.11b)\n"
|
"CONNECT 11Mbps 802.11b)\n"
|
||||||
|
@ -1317,7 +1319,7 @@ int main(int argc, char *argv[])
|
||||||
wpa_debug_show_keys = 1;
|
wpa_debug_show_keys = 1;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
c = getopt(argc, argv, "a:A:c:C:ei:M:nN:o:p:P:r:R:s:St:T:W");
|
c = getopt(argc, argv, "a:A:c:C:ei:M:nN:o:p:P:r:R:s:St:T:vW");
|
||||||
if (c < 0)
|
if (c < 0)
|
||||||
break;
|
break;
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
@ -1383,6 +1385,9 @@ int main(int argc, char *argv[])
|
||||||
ctrl_iface = optarg;
|
ctrl_iface = optarg;
|
||||||
eapol_test.ctrl_iface = 1;
|
eapol_test.ctrl_iface = 1;
|
||||||
break;
|
break;
|
||||||
|
case 'v':
|
||||||
|
printf("eapol_test v" VERSION_STR "\n");
|
||||||
|
return 0;
|
||||||
case 'W':
|
case 'W':
|
||||||
wait_for_monitor++;
|
wait_for_monitor++;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue