diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-06-15 00:01:37 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-06-15 00:01:37 +0000 |
commit | 7415b5040940815249a7f97d266c068b094df5c1 (patch) | |
tree | 34abe0c570339ad961002819fa06054a7db4070f /usr.bin/ssh/authfd.h | |
parent | 592b4684a393f187ed17f2dbde89e7e974b93bec (diff) |
break agent key lifetime protocol and allow other contraints for key usage.
Diffstat (limited to 'usr.bin/ssh/authfd.h')
-rw-r--r-- | usr.bin/ssh/authfd.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/ssh/authfd.h b/usr.bin/ssh/authfd.h index 263e4b97d68..e3ef6ff5e1e 100644 --- a/usr.bin/ssh/authfd.h +++ b/usr.bin/ssh/authfd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: authfd.h,v 1.26 2002/06/05 21:55:44 markus Exp $ */ +/* $OpenBSD: authfd.h,v 1.27 2002/06/15 00:01:36 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -46,9 +46,11 @@ #define SSH_AGENTC_LOCK 22 #define SSH_AGENTC_UNLOCK 23 -/* set key lifetime */ -#define SSH_AGENTC_LIFETIME_IDENTITY1 24 -#define SSH_AGENTC_LIFETIME_IDENTITY 25 +/* constrain key usage */ +#define SSH_AGENTC_CONTRAIN_IDENTITY1 24 +#define SSH_AGENTC_CONTRAIN_IDENTITY 25 + +#define SSH_AGENT_CONTRAIN_LIFETIME 1 /* extended failure messages */ #define SSH2_AGENT_FAILURE 30 @@ -73,7 +75,7 @@ int ssh_get_num_identities(AuthenticationConnection *, int); Key *ssh_get_first_identity(AuthenticationConnection *, char **, int); Key *ssh_get_next_identity(AuthenticationConnection *, char **, int); int ssh_add_identity(AuthenticationConnection *, Key *, const char *); -int ssh_lifetime_identity(AuthenticationConnection *, Key *, u_int); +int ssh_contrain_identity(AuthenticationConnection *, Key *, u_int); int ssh_remove_identity(AuthenticationConnection *, Key *); int ssh_remove_all_identities(AuthenticationConnection *, int); int ssh_lock_agent(AuthenticationConnection *, int, const char *); |