diff options
Diffstat (limited to 'authfd.h')
-rw-r--r-- | authfd.h | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: authfd.h,v 1.29 2002/06/15 01:27:48 markus Exp $ */ | 1 | /* $OpenBSD: authfd.h,v 1.30 2002/06/19 00:27:55 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -40,11 +40,11 @@ | |||
40 | 40 | ||
41 | /* smartcard */ | 41 | /* smartcard */ |
42 | #define SSH_AGENTC_ADD_SMARTCARD_KEY 20 | 42 | #define SSH_AGENTC_ADD_SMARTCARD_KEY 20 |
43 | #define SSH_AGENTC_REMOVE_SMARTCARD_KEY 21 | 43 | #define SSH_AGENTC_REMOVE_SMARTCARD_KEY 21 |
44 | 44 | ||
45 | /* lock/unlock the agent */ | 45 | /* lock/unlock the agent */ |
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 | /* add key with constraints */ | 49 | /* add key with constraints */ |
50 | #define SSH_AGENTC_ADD_RSA_ID_CONSTRAINED 24 | 50 | #define SSH_AGENTC_ADD_RSA_ID_CONSTRAINED 24 |
@@ -56,21 +56,21 @@ | |||
56 | #define SSH2_AGENT_FAILURE 30 | 56 | #define SSH2_AGENT_FAILURE 30 |
57 | 57 | ||
58 | /* additional error code for ssh.com's ssh-agent2 */ | 58 | /* additional error code for ssh.com's ssh-agent2 */ |
59 | #define SSH_COM_AGENT2_FAILURE 102 | 59 | #define SSH_COM_AGENT2_FAILURE 102 |
60 | 60 | ||
61 | #define SSH_AGENT_OLD_SIGNATURE 0x01 | 61 | #define SSH_AGENT_OLD_SIGNATURE 0x01 |
62 | 62 | ||
63 | typedef struct { | 63 | typedef struct { |
64 | int fd; | 64 | int fd; |
65 | Buffer identities; | 65 | Buffer identities; |
66 | int howmany; | 66 | int howmany; |
67 | } AuthenticationConnection; | 67 | } AuthenticationConnection; |
68 | 68 | ||
69 | int ssh_get_authentication_socket(void); | 69 | int ssh_get_authentication_socket(void); |
70 | void ssh_close_authentication_socket(int); | 70 | void ssh_close_authentication_socket(int); |
71 | 71 | ||
72 | AuthenticationConnection *ssh_get_authentication_connection(void); | 72 | AuthenticationConnection *ssh_get_authentication_connection(void); |
73 | void ssh_close_authentication_connection(AuthenticationConnection *); | 73 | void ssh_close_authentication_connection(AuthenticationConnection *); |
74 | int ssh_get_num_identities(AuthenticationConnection *, int); | 74 | int ssh_get_num_identities(AuthenticationConnection *, int); |
75 | Key *ssh_get_first_identity(AuthenticationConnection *, char **, int); | 75 | Key *ssh_get_first_identity(AuthenticationConnection *, char **, int); |
76 | Key *ssh_get_next_identity(AuthenticationConnection *, char **, int); | 76 | Key *ssh_get_next_identity(AuthenticationConnection *, char **, int); |