|
Lines 84-90
static char *default_files[] = {
Link Here
|
| 84 |
static int fingerprint_hash = SSH_FP_HASH_DEFAULT; |
84 |
static int fingerprint_hash = SSH_FP_HASH_DEFAULT; |
| 85 |
|
85 |
|
| 86 |
/* Default lifetime (0 == forever) */ |
86 |
/* Default lifetime (0 == forever) */ |
| 87 |
static long lifetime = 0; |
87 |
static int lifetime = 0; |
| 88 |
|
88 |
|
| 89 |
/* User has to confirm key use */ |
89 |
/* User has to confirm key use */ |
| 90 |
static int confirm = 0; |
90 |
static int confirm = 0; |
|
Lines 365-371
add_file(int agent_fd, const char *filen
Link Here
|
| 365 |
filename, comment); |
365 |
filename, comment); |
| 366 |
if (lifetime != 0) { |
366 |
if (lifetime != 0) { |
| 367 |
fprintf(stderr, |
367 |
fprintf(stderr, |
| 368 |
"Lifetime set to %ld seconds\n", lifetime); |
368 |
"Lifetime set to %d seconds\n", lifetime); |
| 369 |
} |
369 |
} |
| 370 |
if (confirm != 0) { |
370 |
if (confirm != 0) { |
| 371 |
fprintf(stderr, "The user must confirm " |
371 |
fprintf(stderr, "The user must confirm " |
|
Lines 420-426
add_file(int agent_fd, const char *filen
Link Here
|
| 420 |
fprintf(stderr, "Certificate added: %s (%s)\n", certpath, |
420 |
fprintf(stderr, "Certificate added: %s (%s)\n", certpath, |
| 421 |
private->cert->key_id); |
421 |
private->cert->key_id); |
| 422 |
if (lifetime != 0) { |
422 |
if (lifetime != 0) { |
| 423 |
fprintf(stderr, "Lifetime set to %ld seconds\n", |
423 |
fprintf(stderr, "Lifetime set to %d seconds\n", |
| 424 |
lifetime); |
424 |
lifetime); |
| 425 |
} |
425 |
} |
| 426 |
if (confirm != 0) { |
426 |
if (confirm != 0) { |
|
Lines 603-609
load_resident_keys(int agent_fd, const c
Link Here
|
| 603 |
sshkey_type(keys[i]), fp); |
603 |
sshkey_type(keys[i]), fp); |
| 604 |
if (lifetime != 0) { |
604 |
if (lifetime != 0) { |
| 605 |
fprintf(stderr, |
605 |
fprintf(stderr, |
| 606 |
"Lifetime set to %ld seconds\n", lifetime); |
606 |
"Lifetime set to %d seconds\n", lifetime); |
| 607 |
} |
607 |
} |
| 608 |
if (confirm != 0) { |
608 |
if (confirm != 0) { |
| 609 |
fprintf(stderr, "The user must confirm " |
609 |
fprintf(stderr, "The user must confirm " |