]> andersk Git - openssh.git/blobdiff - authfd.h
- (stevesk) OpenSSH CVS update:
[openssh.git] / authfd.h
index 5819b9139eac7935caa9706cd735111cc85760be..65471ad7c219d3edc99fdc5a3620bad2ce7eec41 100644 (file)
--- a/authfd.h
+++ b/authfd.h
@@ -1,19 +1,17 @@
 /*
- *
- * authfd.h
- *
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
- *
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved
- *
- * Created: Wed Mar 29 01:17:41 1995 ylo
- *
  * Functions to interface with the SSH_AUTHENTICATION_FD socket.
  *
+ * As far as I am concerned, the code I have written for this software
+ * can be used freely for any purpose.  Any derived versions of this
+ * software must be clearly marked as such, and if the derived work is
+ * incompatible with the protocol description in the RFC file, it must be
+ * called by a name other than "ssh" or "Secure Shell".
  */
 
-/* RCSID("$OpenBSD: authfd.h,v 1.10 2000/08/19 21:34:43 markus Exp $"); */
+/* RCSID("$OpenBSD: authfd.h,v 1.14 2000/11/12 19:50:37 markus Exp $"); */
 
 #ifndef AUTHFD_H
 #define AUTHFD_H
@@ -31,6 +29,7 @@
 #define SSH_AGENTC_REMOVE_RSA_IDENTITY         8
 #define SSH_AGENTC_REMOVE_ALL_RSA_IDENTITIES   9
 
+/* private OpenSSH extensions for SSH2 */
 #define SSH2_AGENTC_REQUEST_IDENTITIES         11
 #define SSH2_AGENT_IDENTITIES_ANSWER           12
 #define SSH2_AGENTC_SIGN_REQUEST               13
 #define SSH2_AGENTC_REMOVE_IDENTITY            18
 #define SSH2_AGENTC_REMOVE_ALL_IDENTITIES      19
 
+/* additional error code for ssh.com's ssh-agent2 */
+#define SSH_COM_AGENT2_FAILURE                   102
+
+#define        SSH_AGENT_OLD_SIGNATURE                 0x01
+
+
 typedef struct {
        int     fd;
        Buffer  identities;
@@ -69,6 +74,11 @@ AuthenticationConnection *ssh_get_authentication_connection();
  */
 void    ssh_close_authentication_connection(AuthenticationConnection *auth);
 
+/*
+ * Returns the number authentication identity held by the agent.
+ */
+int    ssh_get_num_identities(AuthenticationConnection *auth, int version);
+
 /*
  * Returns the first authentication identity held by the agent or NULL if
  * no identies are available. Caller must free comment and key.
This page took 0.038757 seconds and 4 git commands to generate.