version 1.47, 2004/06/06 11:24:13 |
version 1.48, 2004/06/07 19:28:03 |
|
|
case 'a': |
case 'a': |
if (argv[++i] == NULL || argv[i][0] == '\0') |
if (argv[++i] == NULL || argv[i][0] == '\0') |
usage(); |
usage(); |
if (auth_type == NULL) |
auth_type = argv[i]; |
auth_type = argv[i]; |
|
break; |
break; |
case 's': |
case 's': |
defaultsetup = 0; |
defaultsetup = 0; |
auth_type = "skey"; |
if (auth_type == NULL) |
|
auth_type = "skey"; |
break; |
break; |
case 'x': |
case 'x': |
hexmode = 1; |
hexmode = 1; |
|
|
/* existing user */ |
/* existing user */ |
break; |
break; |
case 1: |
case 1: |
if (!defaultsetup) { |
if (!defaultsetup && strcmp(auth_type, "skey") == 0) { |
fprintf(stderr, |
fprintf(stderr, |
"You must authenticate yourself before using S/Key for the first time. In\n" |
"You must authenticate yourself before using S/Key for the first time. In\n" |
"secure mode this is normally done via an existing S/Key key. However, since\n" |
"secure mode this is normally done via an existing S/Key key. However, since\n" |