diff options
author | Damien Miller <djm@mindrot.org> | 2002-02-10 18:32:28 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-02-10 18:32:28 +1100 |
commit | 05eda437a64020e8d8a824bb1ae102603f59efb9 (patch) | |
tree | 3a8a625d639922657232c8bbf772554842c1d97d /pathnames.h | |
parent | 486065084237f5f8ea32d28832586c2dfa1d7307 (diff) |
- (djm) OpenBSD CVS Sync
- deraadt@cvs.openbsd.org 2002/02/09 17:37:34
[pathnames.h session.c ssh.1 sshd.8 sshd_config ssh-keyscan.1]
move ssh config files to /etc/ssh
- (djm) Adjust portable Makefile.in tnd ssh-rand-helper.c o match
Diffstat (limited to 'pathnames.h')
-rw-r--r-- | pathnames.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/pathnames.h b/pathnames.h index feb2d0cf8..002c313a5 100644 --- a/pathnames.h +++ b/pathnames.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pathnames.h,v 1.10 2001/12/08 17:49:28 stevesk Exp $ */ | 1 | /* $OpenBSD: pathnames.h,v 1.11 2002/02/09 17:37:34 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -12,8 +12,10 @@ | |||
12 | * called by a name other than "ssh" or "Secure Shell". | 12 | * called by a name other than "ssh" or "Secure Shell". |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #ifndef ETCDIR | ||
16 | #define ETCDIR "/etc" | 15 | #define ETCDIR "/etc" |
16 | |||
17 | #ifndef SSHDIR | ||
18 | #define SSHDIR ETCDIR "/ssh" | ||
17 | #endif | 19 | #endif |
18 | 20 | ||
19 | #ifndef _PATH_SSH_PIDDIR | 21 | #ifndef _PATH_SSH_PIDDIR |
@@ -24,22 +26,22 @@ | |||
24 | * System-wide file containing host keys of known hosts. This file should be | 26 | * System-wide file containing host keys of known hosts. This file should be |
25 | * world-readable. | 27 | * world-readable. |
26 | */ | 28 | */ |
27 | #define _PATH_SSH_SYSTEM_HOSTFILE ETCDIR "/ssh_known_hosts" | 29 | #define _PATH_SSH_SYSTEM_HOSTFILE SSHDIR "/ssh_known_hosts" |
28 | /* backward compat for protocol 2 */ | 30 | /* backward compat for protocol 2 */ |
29 | #define _PATH_SSH_SYSTEM_HOSTFILE2 ETCDIR "/ssh_known_hosts2" | 31 | #define _PATH_SSH_SYSTEM_HOSTFILE2 SSHDIR "/ssh_known_hosts2" |
30 | 32 | ||
31 | /* | 33 | /* |
32 | * Of these, ssh_host_key must be readable only by root, whereas ssh_config | 34 | * Of these, ssh_host_key must be readable only by root, whereas ssh_config |
33 | * should be world-readable. | 35 | * should be world-readable. |
34 | */ | 36 | */ |
35 | #define _PATH_SERVER_CONFIG_FILE ETCDIR "/sshd_config" | 37 | #define _PATH_SERVER_CONFIG_FILE SSHDIR "/sshd_config" |
36 | #define _PATH_HOST_CONFIG_FILE ETCDIR "/ssh_config" | 38 | #define _PATH_HOST_CONFIG_FILE SSHDIR "/ssh_config" |
37 | #define _PATH_HOST_KEY_FILE ETCDIR "/ssh_host_key" | 39 | #define _PATH_HOST_KEY_FILE SSHDIR "/ssh_host_key" |
38 | #define _PATH_HOST_DSA_KEY_FILE ETCDIR "/ssh_host_dsa_key" | 40 | #define _PATH_HOST_DSA_KEY_FILE SSHDIR "/ssh_host_dsa_key" |
39 | #define _PATH_HOST_RSA_KEY_FILE ETCDIR "/ssh_host_rsa_key" | 41 | #define _PATH_HOST_RSA_KEY_FILE SSHDIR "/ssh_host_rsa_key" |
40 | #define _PATH_DH_MODULI ETCDIR "/moduli" | 42 | #define _PATH_DH_MODULI SSHDIR "/moduli" |
41 | /* Backwards compatibility */ | 43 | /* Backwards compatibility */ |
42 | #define _PATH_DH_PRIMES ETCDIR "/primes" | 44 | #define _PATH_DH_PRIMES SSHDIR "/primes" |
43 | 45 | ||
44 | #ifndef _PATH_SSH_PROGRAM | 46 | #ifndef _PATH_SSH_PROGRAM |
45 | #define _PATH_SSH_PROGRAM "/usr/bin/ssh" | 47 | #define _PATH_SSH_PROGRAM "/usr/bin/ssh" |
@@ -102,13 +104,13 @@ | |||
102 | * use. xauth will be run if neither of these exists. | 104 | * use. xauth will be run if neither of these exists. |
103 | */ | 105 | */ |
104 | #define _PATH_SSH_USER_RC ".ssh/rc" | 106 | #define _PATH_SSH_USER_RC ".ssh/rc" |
105 | #define _PATH_SSH_SYSTEM_RC ETCDIR "/sshrc" | 107 | #define _PATH_SSH_SYSTEM_RC SSHDIR "/sshrc" |
106 | 108 | ||
107 | /* | 109 | /* |
108 | * Ssh-only version of /etc/hosts.equiv. Additionally, the daemon may use | 110 | * Ssh-only version of /etc/hosts.equiv. Additionally, the daemon may use |
109 | * ~/.rhosts and /etc/hosts.equiv if rhosts authentication is enabled. | 111 | * ~/.rhosts and /etc/hosts.equiv if rhosts authentication is enabled. |
110 | */ | 112 | */ |
111 | #define _PATH_SSH_HOSTS_EQUIV ETCDIR "/shosts.equiv" | 113 | #define _PATH_SSH_HOSTS_EQUIV SSHDIR "/shosts.equiv" |
112 | #define _PATH_RHOSTS_EQUIV "/etc/hosts.equiv" | 114 | #define _PATH_RHOSTS_EQUIV "/etc/hosts.equiv" |
113 | 115 | ||
114 | /* | 116 | /* |