summaryrefslogtreecommitdiff
path: root/ssh.h
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.h')
-rw-r--r--ssh.h37
1 files changed, 5 insertions, 32 deletions
diff --git a/ssh.h b/ssh.h
index 87821398c..57d78278f 100644
--- a/ssh.h
+++ b/ssh.h
@@ -13,7 +13,7 @@
13 * 13 *
14 */ 14 */
15 15
16/* RCSID("$Id: ssh.h,v 1.34 2000/04/20 13:12:59 damien Exp $"); */ 16/* RCSID("$Id: ssh.h,v 1.35 2000/04/29 13:57:12 damien Exp $"); */
17 17
18#ifndef SSH_H 18#ifndef SSH_H
19#define SSH_H 19#define SSH_H
@@ -88,6 +88,7 @@
88 * world-readable. 88 * world-readable.
89 */ 89 */
90#define SSH_SYSTEM_HOSTFILE ETCDIR "/ssh_known_hosts" 90#define SSH_SYSTEM_HOSTFILE ETCDIR "/ssh_known_hosts"
91#define SSH_SYSTEM_HOSTFILE2 ETCDIR "/ssh_known_hosts2"
91 92
92/* 93/*
93 * Of these, ssh_host_key must be readable only by root, whereas ssh_config 94 * Of these, ssh_host_key must be readable only by root, whereas ssh_config
@@ -96,7 +97,7 @@
96#define HOST_KEY_FILE ETCDIR "/ssh_host_key" 97#define HOST_KEY_FILE ETCDIR "/ssh_host_key"
97#define SERVER_CONFIG_FILE ETCDIR "/sshd_config" 98#define SERVER_CONFIG_FILE ETCDIR "/sshd_config"
98#define HOST_CONFIG_FILE ETCDIR "/ssh_config" 99#define HOST_CONFIG_FILE ETCDIR "/ssh_config"
99#define DSA_KEY_FILE ETCDIR "/ssh_dsa_key" 100#define DSA_KEY_FILE ETCDIR "/ssh_host_dsa_key"
100 101
101#ifndef SSH_PROGRAM 102#ifndef SSH_PROGRAM
102#define SSH_PROGRAM "/usr/bin/ssh" 103#define SSH_PROGRAM "/usr/bin/ssh"
@@ -128,6 +129,7 @@
128 * contain anything particularly secret. 129 * contain anything particularly secret.
129 */ 130 */
130#define SSH_USER_HOSTFILE "~/.ssh/known_hosts" 131#define SSH_USER_HOSTFILE "~/.ssh/known_hosts"
132#define SSH_USER_HOSTFILE2 "~/.ssh/known_hosts2"
131 133
132/* 134/*
133 * Name of the default file containing client-side authentication key. This 135 * Name of the default file containing client-side authentication key. This
@@ -152,6 +154,7 @@
152 * running as root.) 154 * running as root.)
153 */ 155 */
154#define SSH_USER_PERMITTED_KEYS ".ssh/authorized_keys" 156#define SSH_USER_PERMITTED_KEYS ".ssh/authorized_keys"
157#define SSH_USER_PERMITTED_KEYS2 ".ssh/authorized_keys2"
155 158
156/* 159/*
157 * Per-user and system-wide ssh "rc" files. These files are executed with 160 * Per-user and system-wide ssh "rc" files. These files are executed with
@@ -407,36 +410,6 @@ int auth_rsa_challenge_dialog(RSA *pk);
407 */ 410 */
408char *read_passphrase(const char *prompt, int from_stdin); 411char *read_passphrase(const char *prompt, int from_stdin);
409 412
410/*
411 * Saves the authentication (private) key in a file, encrypting it with
412 * passphrase. The identification of the file (lowest 64 bits of n) will
413 * precede the key to provide identification of the key without needing a
414 * passphrase.
415 */
416int
417save_private_key(const char *filename, const char *passphrase,
418 RSA * private_key, const char *comment);
419
420/*
421 * Loads the public part of the key file (public key and comment). Returns 0
422 * if an error occurred; zero if the public key was successfully read. The
423 * comment of the key is returned in comment_return if it is non-NULL; the
424 * caller must free the value with xfree.
425 */
426int
427load_public_key(const char *filename, RSA * pub,
428 char **comment_return);
429
430/*
431 * Loads the private key from the file. Returns 0 if an error is encountered
432 * (file does not exist or is not readable, or passphrase is bad). This
433 * initializes the private key. The comment of the key is returned in
434 * comment_return if it is non-NULL; the caller must free the value with
435 * xfree.
436 */
437int
438load_private_key(const char *filename, const char *passphrase,
439 RSA * private_key, char **comment_return);
440 413
441/*------------ Definitions for logging. -----------------------*/ 414/*------------ Definitions for logging. -----------------------*/
442 415