summaryrefslogtreecommitdiff
path: root/authfd.h
diff options
context:
space:
mode:
Diffstat (limited to 'authfd.h')
-rw-r--r--authfd.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/authfd.h b/authfd.h
index d7344bf4b..b2767e5c1 100644
--- a/authfd.h
+++ b/authfd.h
@@ -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
63typedef struct { 63typedef 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
69int ssh_get_authentication_socket(void); 69int ssh_get_authentication_socket(void);
70void ssh_close_authentication_socket(int); 70void ssh_close_authentication_socket(int);
71 71
72AuthenticationConnection *ssh_get_authentication_connection(void); 72AuthenticationConnection *ssh_get_authentication_connection(void);
73void ssh_close_authentication_connection(AuthenticationConnection *); 73void ssh_close_authentication_connection(AuthenticationConnection *);
74int ssh_get_num_identities(AuthenticationConnection *, int); 74int ssh_get_num_identities(AuthenticationConnection *, int);
75Key *ssh_get_first_identity(AuthenticationConnection *, char **, int); 75Key *ssh_get_first_identity(AuthenticationConnection *, char **, int);
76Key *ssh_get_next_identity(AuthenticationConnection *, char **, int); 76Key *ssh_get_next_identity(AuthenticationConnection *, char **, int);