From f7db3bb64caf8d7822a18d6fd4c0480df7d0086d Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Mon, 6 Aug 2001 21:35:51 +0000 Subject: - 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 --- authfd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'authfd.c') diff --git a/authfd.c b/authfd.c index b3c0d9d87..da4a32e0f 100644 --- a/authfd.c +++ b/authfd.c @@ -35,7 +35,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: authfd.c,v 1.42 2001/06/26 04:59:59 markus Exp $"); +RCSID("$OpenBSD: authfd.c,v 1.43 2001/08/01 22:03:33 markus Exp $"); #include @@ -535,7 +535,7 @@ ssh_remove_identity(AuthenticationConnection *auth, Key *key) } int -ssh_update_card(AuthenticationConnection *auth, int add, int reader_id) +ssh_update_card(AuthenticationConnection *auth, int add, const char *reader_id) { Buffer msg; int type; @@ -543,7 +543,7 @@ ssh_update_card(AuthenticationConnection *auth, int add, int reader_id) buffer_init(&msg); buffer_put_char(&msg, add ? SSH_AGENTC_ADD_SMARTCARD_KEY : SSH_AGENTC_REMOVE_SMARTCARD_KEY); - buffer_put_int(&msg, reader_id); + buffer_put_cstring(&msg, reader_id); if (ssh_request_reply(auth, &msg, &msg) == 0) { buffer_free(&msg); return 0; -- cgit v1.2.3