version 1.62, 2003/09/18 13:02:21 |
version 1.63, 2003/11/21 11:57:03 |
|
|
} |
} |
|
|
int |
int |
ssh_update_card(AuthenticationConnection *auth, int add, |
ssh_update_card(AuthenticationConnection *auth, int add, |
const char *reader_id, const char *pin, u_int life, u_int confirm) |
const char *reader_id, const char *pin, u_int life, u_int confirm) |
{ |
{ |
Buffer msg; |
Buffer msg; |
|
|
buffer_put_char(&msg, type); |
buffer_put_char(&msg, type); |
buffer_put_cstring(&msg, reader_id); |
buffer_put_cstring(&msg, reader_id); |
buffer_put_cstring(&msg, pin); |
buffer_put_cstring(&msg, pin); |
|
|
if (constrained) { |
if (constrained) { |
if (life != 0) { |
if (life != 0) { |
buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_LIFETIME); |
buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_LIFETIME); |