diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-21 00:04:48 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-21 00:04:48 +0000 |
commit | 4eb4c4e1ef39906056e282d6e160350dcd3fa533 (patch) | |
tree | 9a31a7dc0115b01bc26d57fb488fb9cadf6b499d /authfd.h | |
parent | f0bfa839bda8309c45b807e55bb2b2dfac7a6f9a (diff) |
- markus@cvs.openbsd.org 2002/06/15 00:01:36
[authfd.c authfd.h ssh-add.c ssh-agent.c]
break agent key lifetime protocol and allow other contraints for key
usage.
Diffstat (limited to 'authfd.h')
-rw-r--r-- | authfd.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: authfd.h,v 1.26 2002/06/05 21:55:44 markus Exp $ */ | 1 | /* $OpenBSD: authfd.h,v 1.27 2002/06/15 00:01:36 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -46,9 +46,11 @@ | |||
46 | #define SSH_AGENTC_LOCK 22 | 46 | #define SSH_AGENTC_LOCK 22 |
47 | #define SSH_AGENTC_UNLOCK 23 | 47 | #define SSH_AGENTC_UNLOCK 23 |
48 | 48 | ||
49 | /* set key lifetime */ | 49 | /* constrain key usage */ |
50 | #define SSH_AGENTC_LIFETIME_IDENTITY1 24 | 50 | #define SSH_AGENTC_CONTRAIN_IDENTITY1 24 |
51 | #define SSH_AGENTC_LIFETIME_IDENTITY 25 | 51 | #define SSH_AGENTC_CONTRAIN_IDENTITY 25 |
52 | |||
53 | #define SSH_AGENT_CONTRAIN_LIFETIME 1 | ||
52 | 54 | ||
53 | /* extended failure messages */ | 55 | /* extended failure messages */ |
54 | #define SSH2_AGENT_FAILURE 30 | 56 | #define SSH2_AGENT_FAILURE 30 |
@@ -73,7 +75,7 @@ int ssh_get_num_identities(AuthenticationConnection *, int); | |||
73 | Key *ssh_get_first_identity(AuthenticationConnection *, char **, int); | 75 | Key *ssh_get_first_identity(AuthenticationConnection *, char **, int); |
74 | Key *ssh_get_next_identity(AuthenticationConnection *, char **, int); | 76 | Key *ssh_get_next_identity(AuthenticationConnection *, char **, int); |
75 | int ssh_add_identity(AuthenticationConnection *, Key *, const char *); | 77 | int ssh_add_identity(AuthenticationConnection *, Key *, const char *); |
76 | int ssh_lifetime_identity(AuthenticationConnection *, Key *, u_int); | 78 | int ssh_contrain_identity(AuthenticationConnection *, Key *, u_int); |
77 | int ssh_remove_identity(AuthenticationConnection *, Key *); | 79 | int ssh_remove_identity(AuthenticationConnection *, Key *); |
78 | int ssh_remove_all_identities(AuthenticationConnection *, int); | 80 | int ssh_remove_all_identities(AuthenticationConnection *, int); |
79 | int ssh_lock_agent(AuthenticationConnection *, int, const char *); | 81 | int ssh_lock_agent(AuthenticationConnection *, int, const char *); |