diff options
Diffstat (limited to 'authfd.c')
-rw-r--r-- | authfd.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "includes.h" | 37 | #include "includes.h" |
38 | RCSID("$OpenBSD: authfd.c,v 1.48 2002/02/24 19:14:59 markus Exp $"); | 38 | RCSID("$OpenBSD: authfd.c,v 1.49 2002/03/21 22:44:05 rees Exp $"); |
39 | 39 | ||
40 | #include <openssl/evp.h> | 40 | #include <openssl/evp.h> |
41 | 41 | ||
@@ -532,7 +532,7 @@ ssh_remove_identity(AuthenticationConnection *auth, Key *key) | |||
532 | } | 532 | } |
533 | 533 | ||
534 | int | 534 | int |
535 | ssh_update_card(AuthenticationConnection *auth, int add, const char *reader_id) | 535 | ssh_update_card(AuthenticationConnection *auth, int add, const char *reader_id, const char *pin) |
536 | { | 536 | { |
537 | Buffer msg; | 537 | Buffer msg; |
538 | int type; | 538 | int type; |
@@ -541,6 +541,7 @@ ssh_update_card(AuthenticationConnection *auth, int add, const char *reader_id) | |||
541 | buffer_put_char(&msg, add ? SSH_AGENTC_ADD_SMARTCARD_KEY : | 541 | buffer_put_char(&msg, add ? SSH_AGENTC_ADD_SMARTCARD_KEY : |
542 | SSH_AGENTC_REMOVE_SMARTCARD_KEY); | 542 | SSH_AGENTC_REMOVE_SMARTCARD_KEY); |
543 | buffer_put_cstring(&msg, reader_id); | 543 | buffer_put_cstring(&msg, reader_id); |
544 | buffer_put_cstring(&msg, pin); | ||
544 | if (ssh_request_reply(auth, &msg, &msg) == 0) { | 545 | if (ssh_request_reply(auth, &msg, &msg) == 0) { |
545 | buffer_free(&msg); | 546 | buffer_free(&msg); |
546 | return 0; | 547 | return 0; |