diff options
author | Damien Miller <djm@mindrot.org> | 2000-04-29 23:57:08 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-04-29 23:57:08 +1000 |
commit | eba71bab9bf01c0d688f829a8971f902732558df (patch) | |
tree | a9d5b50568bfc10cc50291fd3604debfaf3e3783 /authfile.h | |
parent | 8117111a3c1360727e3c54aad31aa045e7a7871b (diff) |
- Merge big update to OpenSSH-2.0 from OpenBSD CVS
[README.openssh2]
- interop w/ F-secure windows client
- sync documentation
- ssh_host_dsa_key not ssh_dsa_key
[auth-rsa.c]
- missing fclose
[auth.c authfile.c compat.c dsa.c dsa.h hostfile.c key.c key.h radix.c]
[readconf.c readconf.h ssh-add.c ssh-keygen.c ssh.c ssh.h sshconnect.c]
[sshd.c uuencode.c uuencode.h authfile.h]
- add DSA pubkey auth and other SSH2 fixes. use ssh-keygen -[xX]
for trading keys with the real and the original SSH, directly from the
people who invented the SSH protocol.
[auth.c auth.h authfile.c sshconnect.c auth1.c auth2.c sshconnect.h]
[sshconnect1.c sshconnect2.c]
- split auth/sshconnect in one file per protocol version
[sshconnect2.c]
- remove debug
[uuencode.c]
- add trailing =
[version.h]
- OpenSSH-2.0
[ssh-keygen.1 ssh-keygen.c]
- add -R flag: exit code indicates if RSA is alive
[sshd.c]
- remove unused
silent if -Q is specified
[ssh.h]
- host key becomes /etc/ssh_host_dsa_key
[readconf.c servconf.c ]
- ssh/sshd default to proto 1 and 2
[uuencode.c]
- remove debug
[auth2.c ssh-keygen.c sshconnect2.c sshd.c]
- xfree DSA blobs
[auth2.c serverloop.c session.c]
- cleanup logging for sshd/2, respect PasswordAuth no
[sshconnect2.c]
- less debug, respect .ssh/config
[README.openssh2 channels.c channels.h]
- clientloop.c session.c ssh.c
- support for x11-fwding, client+server
Diffstat (limited to 'authfile.h')
-rw-r--r-- | authfile.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/authfile.h b/authfile.h new file mode 100644 index 000000000..afec27d54 --- /dev/null +++ b/authfile.h | |||
@@ -0,0 +1,36 @@ | |||
1 | #ifndef AUTHFILE_H | ||
2 | #define AUTHFILE_H | ||
3 | |||
4 | /* | ||
5 | * Saves the authentication (private) key in a file, encrypting it with | ||
6 | * passphrase. | ||
7 | * For RSA keys: The identification of the file (lowest 64 bits of n) | ||
8 | * will precede the key to provide identification of the key without | ||
9 | * needing a passphrase. | ||
10 | */ | ||
11 | int | ||
12 | save_private_key(const char *filename, const char *passphrase, | ||
13 | Key * private_key, const char *comment); | ||
14 | |||
15 | /* | ||
16 | * Loads the public part of the key file (public key and comment). Returns 0 | ||
17 | * if an error occurred; zero if the public key was successfully read. The | ||
18 | * comment of the key is returned in comment_return if it is non-NULL; the | ||
19 | * caller must free the value with xfree. | ||
20 | */ | ||
21 | int | ||
22 | load_public_key(const char *filename, Key * pub, | ||
23 | char **comment_return); | ||
24 | |||
25 | /* | ||
26 | * Loads the private key from the file. Returns 0 if an error is encountered | ||
27 | * (file does not exist or is not readable, or passphrase is bad). This | ||
28 | * initializes the private key. The comment of the key is returned in | ||
29 | * comment_return if it is non-NULL; the caller must free the value with | ||
30 | * xfree. | ||
31 | */ | ||
32 | int | ||
33 | load_private_key(const char *filename, const char *passphrase, | ||
34 | Key * private_key, char **comment_return); | ||
35 | |||
36 | #endif | ||