blob: da90cd91364b4c0470d340e0528180287b4a324c [file] [log] [blame]
Damien Millere4340be2000-09-16 13:29:08 +11001/*
2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
Damien Millere4340be2000-09-16 13:29:08 +11005 *
6 * As far as I am concerned, the code I have written for this software
7 * can be used freely for any purpose. Any derived versions of this
8 * software must be clearly marked as such, and if the derived work is
9 * incompatible with the protocol description in the RFC file, it must be
10 * called by a name other than "ssh" or "Secure Shell".
11 */
Damien Miller389edc42000-11-06 12:39:34 +110012
Ben Lindstromd0fca422001-03-26 13:44:06 +000013/* $OpenBSD: authfile.h,v 1.6 2001/03/26 08:07:08 markus Exp $ */
Damien Miller389edc42000-11-06 12:39:34 +110014
Damien Millereba71ba2000-04-29 23:57:08 +100015#ifndef AUTHFILE_H
16#define AUTHFILE_H
17
Damien Millereba71ba2000-04-29 23:57:08 +100018int
Ben Lindstromd0fca422001-03-26 13:44:06 +000019key_save_private(Key *key, const char *filename, const char *passphrase,
20 const char *comment);
Damien Millereba71ba2000-04-29 23:57:08 +100021
Ben Lindstromd0fca422001-03-26 13:44:06 +000022Key *
23key_load_public(const char *filename, char **commentp);
Damien Millereba71ba2000-04-29 23:57:08 +100024
Ben Lindstromd0fca422001-03-26 13:44:06 +000025Key *
26key_load_public_type(int type, const char *filename, char **commentp);
27
28Key *
29key_load_private(const char *filename, const char *passphrase,
30 char **commentp);
31
32Key *
33key_load_private_type(int type, const char *filename, const char *passphrase,
34 char **commentp);
Damien Millereba71ba2000-04-29 23:57:08 +100035
36#endif