diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-08-06 21:35:51 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-08-06 21:35:51 +0000 |
commit | f7db3bb64caf8d7822a18d6fd4c0480df7d0086d (patch) | |
tree | 3167ed1f115185df591dc1c28c8aa33476194cbb /authfd.c | |
parent | 3ab1dfa2a654b6764eaa121f7111e94c35175894 (diff) |
- markus@cvs.openbsd.org 2001/08/01 22:03:33
[authfd.c authfd.h readconf.c readconf.h scard.c scard.h ssh-add.c
ssh-agent.c ssh.c]
use strings instead of ints for smartcard reader ids
Diffstat (limited to 'authfd.c')
-rw-r--r-- | authfd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "includes.h" | 37 | #include "includes.h" |
38 | RCSID("$OpenBSD: authfd.c,v 1.42 2001/06/26 04:59:59 markus Exp $"); | 38 | RCSID("$OpenBSD: authfd.c,v 1.43 2001/08/01 22:03:33 markus Exp $"); |
39 | 39 | ||
40 | #include <openssl/evp.h> | 40 | #include <openssl/evp.h> |
41 | 41 | ||
@@ -535,7 +535,7 @@ ssh_remove_identity(AuthenticationConnection *auth, Key *key) | |||
535 | } | 535 | } |
536 | 536 | ||
537 | int | 537 | int |
538 | ssh_update_card(AuthenticationConnection *auth, int add, int reader_id) | 538 | ssh_update_card(AuthenticationConnection *auth, int add, const char *reader_id) |
539 | { | 539 | { |
540 | Buffer msg; | 540 | Buffer msg; |
541 | int type; | 541 | int type; |
@@ -543,7 +543,7 @@ ssh_update_card(AuthenticationConnection *auth, int add, int reader_id) | |||
543 | buffer_init(&msg); | 543 | buffer_init(&msg); |
544 | buffer_put_char(&msg, add ? SSH_AGENTC_ADD_SMARTCARD_KEY : | 544 | buffer_put_char(&msg, add ? SSH_AGENTC_ADD_SMARTCARD_KEY : |
545 | SSH_AGENTC_REMOVE_SMARTCARD_KEY); | 545 | SSH_AGENTC_REMOVE_SMARTCARD_KEY); |
546 | buffer_put_int(&msg, reader_id); | 546 | buffer_put_cstring(&msg, reader_id); |
547 | if (ssh_request_reply(auth, &msg, &msg) == 0) { | 547 | if (ssh_request_reply(auth, &msg, &msg) == 0) { |
548 | buffer_free(&msg); | 548 | buffer_free(&msg); |
549 | return 0; | 549 | return 0; |