X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/a408af7667dc3e5b745c961bd9ed33c31ec063b8..3548428432d86d072333b369df2f3622b653b4c4:/authfd.c diff --git a/authfd.c b/authfd.c index e30eab8b..bea66557 100644 --- a/authfd.c +++ b/authfd.c @@ -1,16 +1,16 @@ /* - * + * * authfd.c - * + * * Author: Tatu Ylonen - * + * * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland * All rights reserved - * + * * Created: Wed Mar 29 01:30:28 1995 ylo - * + * * Functions for connecting the local authentication agent. - * + * */ #include "includes.h" @@ -24,12 +24,7 @@ RCSID("$Id$"); #include "xmalloc.h" #include "getput.h" -#ifdef HAVE_OPENSSL #include -#endif -#ifdef HAVE_SSL -#include -#endif /* Returns the number of the authentication fd, or -1 if there is none. */ @@ -69,7 +64,7 @@ ssh_get_authentication_socket() * ssh_get_authentication_socket(). */ -void +void ssh_close_authentication_socket(int sock) { if (getenv(SSH_AUTHSOCKET_ENV_NAME)) @@ -113,7 +108,7 @@ ssh_get_authentication_connection() * memory. */ -void +void ssh_close_authentication_connection(AuthenticationConnection *ac) { buffer_free(&ac->packet); @@ -222,7 +217,7 @@ ssh_get_next_identity(AuthenticationConnection *auth, *comment = buffer_get_string(&auth->identities, NULL); if (bits != BN_num_bits(n)) - error("Warning: keysize mismatch: actual %d, announced %u", + error("Warning: identity keysize mismatch: actual %d, announced %u", BN_num_bits(n), bits); /* Decrement the number of remaining entries. */ @@ -343,7 +338,7 @@ error_cleanup: * be used by normal applications. */ -int +int ssh_add_identity(AuthenticationConnection *auth, RSA * key, const char *comment) { @@ -431,7 +426,7 @@ error_cleanup: * meant to be used by normal applications. */ -int +int ssh_remove_identity(AuthenticationConnection *auth, RSA *key) { Buffer buffer; @@ -514,7 +509,7 @@ error_cleanup: * by normal applications. */ -int +int ssh_remove_all_identities(AuthenticationConnection *auth) { Buffer buffer;