version 1.106, 2018/01/23 05:27:21 |
version 1.107, 2018/02/10 09:25:34 |
|
|
|
|
|
|
static int |
static int |
ssh_encode_identity_ssh2(struct sshbuf *b, struct sshkey *key, |
ssh_encode_identity_ssh2(struct sshbuf *b, const struct sshkey *key, |
const char *comment) |
const char *comment) |
{ |
{ |
int r; |
int r; |
|
|
* This call is intended only for use by ssh-add(1) and like applications. |
* This call is intended only for use by ssh-add(1) and like applications. |
*/ |
*/ |
int |
int |
ssh_add_identity_constrained(int sock, struct sshkey *key, const char *comment, |
ssh_add_identity_constrained(int sock, const struct sshkey *key, |
u_int life, u_int confirm) |
const char *comment, u_int life, u_int confirm) |
{ |
{ |
struct sshbuf *msg; |
struct sshbuf *msg; |
int r, constrained = (life || confirm); |
int r, constrained = (life || confirm); |