|
Lines 77-82
int change_passphrase = 0;
Link Here
|
| 77 |
int change_comment = 0; |
77 |
int change_comment = 0; |
| 78 |
|
78 |
|
| 79 |
int quiet = 0; |
79 |
int quiet = 0; |
|
|
80 |
int overwrite = 0; |
| 80 |
|
81 |
|
| 81 |
int log_level = SYSLOG_LEVEL_INFO; |
82 |
int log_level = SYSLOG_LEVEL_INFO; |
| 82 |
|
83 |
|
|
Lines 1143-1149
main(int argc, char **argv)
Link Here
|
| 1143 |
} |
1144 |
} |
| 1144 |
|
1145 |
|
| 1145 |
while ((opt = getopt(argc, argv, |
1146 |
while ((opt = getopt(argc, argv, |
| 1146 |
"degiqpclnBHvxXyF:b:f:t:U:D:P:N:C:r:g:R:T:G:M:S:a:W:")) != -1) { |
1147 |
"degiqopclnBHvxXyF:b:f:t:U:D:P:N:C:r:g:R:T:G:M:S:a:W:")) != -1) { |
| 1147 |
switch (opt) { |
1148 |
switch (opt) { |
| 1148 |
case 'b': |
1149 |
case 'b': |
| 1149 |
bits = (u_int32_t)strtonum(optarg, 768, 32768, &errstr); |
1150 |
bits = (u_int32_t)strtonum(optarg, 768, 32768, &errstr); |
|
Lines 1199-1204
main(int argc, char **argv)
Link Here
|
| 1199 |
case 'q': |
1200 |
case 'q': |
| 1200 |
quiet = 1; |
1201 |
quiet = 1; |
| 1201 |
break; |
1202 |
break; |
|
|
1203 |
case 'o': |
| 1204 |
overwrite = 1; |
| 1205 |
break; |
| 1202 |
case 'e': |
1206 |
case 'e': |
| 1203 |
case 'x': |
1207 |
case 'x': |
| 1204 |
/* export key */ |
1208 |
/* export key */ |
|
Lines 1426-1432
main(int argc, char **argv)
Link Here
|
| 1426 |
printf("Created directory '%s'.\n", dotsshdir); |
1430 |
printf("Created directory '%s'.\n", dotsshdir); |
| 1427 |
} |
1431 |
} |
| 1428 |
/* If the file already exists, ask the user to confirm. */ |
1432 |
/* If the file already exists, ask the user to confirm. */ |
| 1429 |
if (stat(identity_file, &st) >= 0) { |
1433 |
if (!overwrite && stat(identity_file, &st) >= 0) { |
| 1430 |
char yesno[3]; |
1434 |
char yesno[3]; |
| 1431 |
printf("%s already exists.\n", identity_file); |
1435 |
printf("%s already exists.\n", identity_file); |
| 1432 |
printf("Overwrite (y/n)? "); |
1436 |
printf("Overwrite (y/n)? "); |