|
Lines 602-608
Link Here
|
| 602 |
if (lookup_identity(k, version) == NULL) { |
602 |
if (lookup_identity(k, version) == NULL) { |
| 603 |
id = xmalloc(sizeof(Identity)); |
603 |
id = xmalloc(sizeof(Identity)); |
| 604 |
id->key = k; |
604 |
id->key = k; |
| 605 |
id->comment = xstrdup("smartcard key"); |
605 |
id->comment = sc_get_key_label(k); |
|
|
606 |
if (id->comment == NULL) |
| 607 |
/* no key label available, therefore use |
| 608 |
* standard smartcard key label (comment) */ |
| 609 |
id->comment = xstrdup("smartcard key"); |
| 606 |
id->death = 0; |
610 |
id->death = 0; |
| 607 |
id->confirm = 0; |
611 |
id->confirm = 0; |
| 608 |
TAILQ_INSERT_TAIL(&tab->idlist, id, next); |
612 |
TAILQ_INSERT_TAIL(&tab->idlist, id, next); |