summaryrefslogtreecommitdiff
path: root/authfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'authfile.h')
-rw-r--r--authfile.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/authfile.h b/authfile.h
index afec27d54..4283d9381 100644
--- a/authfile.h
+++ b/authfile.h
@@ -1,3 +1,15 @@
1/*
2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
5 * Functions to interface with the SSH_AUTHENTICATION_FD socket.
6 *
7 * As far as I am concerned, the code I have written for this software
8 * can be used freely for any purpose. Any derived versions of this
9 * software must be clearly marked as such, and if the derived work is
10 * incompatible with the protocol description in the RFC file, it must be
11 * called by a name other than "ssh" or "Secure Shell".
12 */
1#ifndef AUTHFILE_H 13#ifndef AUTHFILE_H
2#define AUTHFILE_H 14#define AUTHFILE_H
3 15
@@ -18,9 +30,8 @@ save_private_key(const char *filename, const char *passphrase,
18 * comment of the key is returned in comment_return if it is non-NULL; the 30 * comment of the key is returned in comment_return if it is non-NULL; the
19 * caller must free the value with xfree. 31 * caller must free the value with xfree.
20 */ 32 */
21int 33int load_public_key(const char *filename, Key * pub, char **comment_return);
22load_public_key(const char *filename, Key * pub, 34int try_load_public_key(const char *filename, Key * pub, char **comment_return);
23 char **comment_return);
24 35
25/* 36/*
26 * Loads the private key from the file. Returns 0 if an error is encountered 37 * Loads the private key from the file. Returns 0 if an error is encountered