version 1.41, 2001/06/23 15:12:17 |
version 1.42, 2001/06/26 04:59:59 |
|
|
return decode_reply(type); |
return decode_reply(type); |
} |
} |
|
|
|
int |
|
ssh_update_card(AuthenticationConnection *auth, int add, int reader_id) |
|
{ |
|
Buffer msg; |
|
int type; |
|
|
|
buffer_init(&msg); |
|
buffer_put_char(&msg, add ? SSH_AGENTC_ADD_SMARTCARD_KEY : |
|
SSH_AGENTC_REMOVE_SMARTCARD_KEY); |
|
buffer_put_int(&msg, reader_id); |
|
if (ssh_request_reply(auth, &msg, &msg) == 0) { |
|
buffer_free(&msg); |
|
return 0; |
|
} |
|
type = buffer_get_char(&msg); |
|
buffer_free(&msg); |
|
return decode_reply(type); |
|
} |
|
|
/* |
/* |
* Removes all identities from the agent. This call is not meant to be used |
* Removes all identities from the agent. This call is not meant to be used |
* by normal applications. |
* by normal applications. |