forked from openssh/openssh-portable
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove ssh1 server code; ok djm@ Upstream-ID: c24c0c32c49b91740d5a94ae914fb1898ea5f534
- Loading branch information
Showing
16 changed files
with
84 additions
and
2,763 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* $OpenBSD: auth-rhosts.c,v 1.47 2016/03/07 19:02:43 djm Exp $ */ | ||
/* $OpenBSD: auth-rhosts.c,v 1.48 2016/08/13 17:47:41 markus Exp $ */ | ||
/* | ||
* Author: Tatu Ylonen <[email protected]> | ||
* Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland | ||
|
@@ -186,20 +186,8 @@ check_rhosts_file(const char *filename, const char *hostname, | |
* true if authentication succeeds. If ignore_rhosts is true, only | ||
* /etc/hosts.equiv will be considered (.rhosts and .shosts are ignored). | ||
*/ | ||
|
||
int | ||
auth_rhosts(struct passwd *pw, const char *client_user) | ||
{ | ||
struct ssh *ssh = active_state; /* XXX */ | ||
const char *hostname, *ipaddr; | ||
|
||
hostname = auth_get_canonical_hostname(ssh, options.use_dns); | ||
ipaddr = ssh_remote_ipaddr(ssh); | ||
return auth_rhosts2(pw, client_user, hostname, ipaddr); | ||
} | ||
|
||
static int | ||
auth_rhosts2_raw(struct passwd *pw, const char *client_user, const char *hostname, | ||
auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname, | ||
const char *ipaddr) | ||
{ | ||
char buf[1024]; | ||
|
@@ -334,10 +322,3 @@ auth_rhosts2_raw(struct passwd *pw, const char *client_user, const char *hostnam | |
restore_uid(); | ||
return 0; | ||
} | ||
|
||
int | ||
auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname, | ||
const char *ipaddr) | ||
{ | ||
return auth_rhosts2_raw(pw, client_user, hostname, ipaddr); | ||
} |
Oops, something went wrong.