1226046Sdes/* $OpenBSD: authfile.h,v 1.16 2011/05/04 21:15:29 djm Exp $ */
292555Sdes
365668Skris/*
465668Skris * Author: Tatu Ylonen <ylo@cs.hut.fi>
565668Skris * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
665668Skris *                    All rights reserved
765668Skris *
865668Skris * As far as I am concerned, the code I have written for this software
965668Skris * can be used freely for any purpose.  Any derived versions of this
1065668Skris * software must be clearly marked as such, and if the derived work is
1165668Skris * incompatible with the protocol description in the RFC file, it must be
1265668Skris * called by a name other than "ssh" or "Secure Shell".
1365668Skris */
1469587Sgreen
1560573Skris#ifndef AUTHFILE_H
1660573Skris#define AUTHFILE_H
1760573Skris
1892555Sdesint	 key_save_private(Key *, const char *, const char *, const char *);
19226046Sdesint	 key_load_file(int, const char *, Buffer *);
20215116SdesKey	*key_load_cert(const char *);
2192555SdesKey	*key_load_public(const char *, char **);
2292555SdesKey	*key_load_public_type(int, const char *, char **);
23226046SdesKey	*key_parse_private(Buffer *, const char *, const char *, char **);
2492555SdesKey	*key_load_private(const char *, const char *, char **);
25215116SdesKey	*key_load_private_cert(int, const char *, const char *, int *);
26162852SdesKey	*key_load_private_type(int, const char *, const char *, char **, int *);
2798675SdesKey	*key_load_private_pem(int, int, const char *, char **);
28162852Sdesint	 key_perm_ok(int, const char *);
29204917Sdesint	 key_in_file(Key *, const char *, int);
3060573Skris
3160573Skris#endif
32