=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/ssh.h,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- src/usr.bin/ssh/ssh.h 2000/04/12 07:45:44 1.37 +++ src/usr.bin/ssh/ssh.h 2000/04/14 10:30:33 1.38 @@ -1,19 +1,19 @@ /* - * + * * ssh.h - * + * * Author: Tatu Ylonen - * + * * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland * All rights reserved - * + * * Created: Fri Mar 17 17:09:37 1995 ylo - * + * * Generic header file for ssh. - * + * */ -/* RCSID("$Id: ssh.h,v 1.37 2000/04/12 07:45:44 markus Exp $"); */ +/* RCSID("$Id: ssh.h,v 1.38 2000/04/14 10:30:33 markus Exp $"); */ #ifndef SSH_H #define SSH_H @@ -254,7 +254,7 @@ * information is not available. This must be called before record_login. * The host from which the user logged in is stored in buf. */ -unsigned long +unsigned long get_last_login_time(uid_t uid, const char *logname, char *buf, unsigned int bufsize); @@ -262,7 +262,7 @@ * Records that the user has logged in. This does many things normally done * by login(1). */ -void +void record_login(int pid, const char *ttyname, const char *user, uid_t uid, const char *host, struct sockaddr *addr); @@ -283,7 +283,7 @@ * and zero on failure. If the connection is successful, this calls * packet_set_connection for the connection. */ -int +int ssh_connect(const char *host, struct sockaddr_storage * hostaddr, u_short port, int connection_attempts, int anonymous, uid_t original_real_uid, @@ -298,7 +298,7 @@ * references from the packet module). */ -void +void ssh_login(int host_key_valid, RSA * host_key, const char *host, struct sockaddr * hostaddr, uid_t original_real_uid); @@ -315,7 +315,7 @@ * Tries to authenticate the user using the .rhosts file and the host using * its host key. Returns true if authentication succeeds. */ -int +int auth_rhosts_rsa(struct passwd * pw, const char *client_user, RSA* client_host_key); /* @@ -384,7 +384,7 @@ * precede the key to provide identification of the key without needing a * passphrase. */ -int +int save_private_key(const char *filename, const char *passphrase, RSA * private_key, const char *comment); @@ -394,7 +394,7 @@ * comment of the key is returned in comment_return if it is non-NULL; the * caller must free the value with xfree. */ -int +int load_public_key(const char *filename, RSA * pub, char **comment_return); @@ -405,7 +405,7 @@ * comment_return if it is non-NULL; the caller must free the value with * xfree. */ -int +int load_private_key(const char *filename, const char *passphrase, RSA * private_key, char **comment_return);