authfd.h (57429) | authfd.h (60573) |
---|---|
1/* | 1/* |
2 * | 2 * |
3 * authfd.h | 3 * authfd.h |
4 * | 4 * |
5 * Author: Tatu Ylonen <ylo@cs.hut.fi> | 5 * Author: Tatu Ylonen <ylo@cs.hut.fi> |
6 * | 6 * |
7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 8 * All rights reserved | 7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 8 * All rights reserved |
9 * | 9 * |
10 * Created: Wed Mar 29 01:17:41 1995 ylo | 10 * Created: Wed Mar 29 01:17:41 1995 ylo |
11 * | 11 * |
12 * Functions to interface with the SSH_AUTHENTICATION_FD socket. | 12 * Functions to interface with the SSH_AUTHENTICATION_FD socket. |
13 * | 13 * |
14 */ 15 | 14 */ 15 |
16/* RCSID("$Id: authfd.h,v 1.6 1999/11/24 19:53:44 markus Exp $"); */ | 16/* RCSID("$Id: authfd.h,v 1.7 2000/04/14 10:30:30 markus Exp $"); */ |
17 18#ifndef AUTHFD_H 19#define AUTHFD_H 20 21#include "buffer.h" 22 23/* Messages for the authentication agent connection. */ 24#define SSH_AGENTC_REQUEST_RSA_IDENTITIES 1 --- 37 unchanged lines hidden (view full) --- 62void ssh_close_authentication_connection(AuthenticationConnection * ac); 63 64/* 65 * Returns the first authentication identity held by the agent. Returns true 66 * if an identity is available, 0 otherwise. The caller must initialize the 67 * integers before the call, and free the comment after a successful call 68 * (before calling ssh_get_next_identity). 69 */ | 17 18#ifndef AUTHFD_H 19#define AUTHFD_H 20 21#include "buffer.h" 22 23/* Messages for the authentication agent connection. */ 24#define SSH_AGENTC_REQUEST_RSA_IDENTITIES 1 --- 37 unchanged lines hidden (view full) --- 62void ssh_close_authentication_connection(AuthenticationConnection * ac); 63 64/* 65 * Returns the first authentication identity held by the agent. Returns true 66 * if an identity is available, 0 otherwise. The caller must initialize the 67 * integers before the call, and free the comment after a successful call 68 * (before calling ssh_get_next_identity). 69 */ |
70int | 70int |
71ssh_get_first_identity(AuthenticationConnection * connection, 72 BIGNUM * e, BIGNUM * n, char **comment); 73 74/* 75 * Returns the next authentication identity for the agent. Other functions 76 * can be called between this and ssh_get_first_identity or two calls of this 77 * function. This returns 0 if there are no more identities. The caller 78 * must free comment after a successful return. 79 */ | 71ssh_get_first_identity(AuthenticationConnection * connection, 72 BIGNUM * e, BIGNUM * n, char **comment); 73 74/* 75 * Returns the next authentication identity for the agent. Other functions 76 * can be called between this and ssh_get_first_identity or two calls of this 77 * function. This returns 0 if there are no more identities. The caller 78 * must free comment after a successful return. 79 */ |
80int | 80int |
81ssh_get_next_identity(AuthenticationConnection * connection, 82 BIGNUM * e, BIGNUM * n, char **comment); 83 84/* Requests the agent to decrypt the given challenge. Returns true if 85 the agent claims it was able to decrypt it. */ | 81ssh_get_next_identity(AuthenticationConnection * connection, 82 BIGNUM * e, BIGNUM * n, char **comment); 83 84/* Requests the agent to decrypt the given challenge. Returns true if 85 the agent claims it was able to decrypt it. */ |
86int | 86int |
87ssh_decrypt_challenge(AuthenticationConnection * auth, 88 BIGNUM * e, BIGNUM * n, BIGNUM * challenge, 89 unsigned char session_id[16], 90 unsigned int response_type, 91 unsigned char response[16]); 92 93/* 94 * Adds an identity to the authentication server. This call is not meant to 95 * be used by normal applications. This returns true if the identity was 96 * successfully added. 97 */ | 87ssh_decrypt_challenge(AuthenticationConnection * auth, 88 BIGNUM * e, BIGNUM * n, BIGNUM * challenge, 89 unsigned char session_id[16], 90 unsigned int response_type, 91 unsigned char response[16]); 92 93/* 94 * Adds an identity to the authentication server. This call is not meant to 95 * be used by normal applications. This returns true if the identity was 96 * successfully added. 97 */ |
98int | 98int |
99ssh_add_identity(AuthenticationConnection * connection, RSA * key, 100 const char *comment); 101 102/* 103 * Removes the identity from the authentication server. This call is not 104 * meant to be used by normal applications. This returns true if the 105 * identity was successfully added. 106 */ --- 13 unchanged lines hidden --- | 99ssh_add_identity(AuthenticationConnection * connection, RSA * key, 100 const char *comment); 101 102/* 103 * Removes the identity from the authentication server. This call is not 104 * meant to be used by normal applications. This returns true if the 105 * identity was successfully added. 106 */ --- 13 unchanged lines hidden --- |