1263970Sdes/* $OpenBSD: authfile.h,v 1.17 2013/12/06 13:34:54 markus 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 18263970Sdesint key_save_private(Key *, const char *, const char *, const char *, 19263970Sdes int, const char *, int); 20247485Sdesint key_load_file(int, const char *, Buffer *); 21215116SdesKey *key_load_cert(const char *); 2292555SdesKey *key_load_public(const char *, char **); 2392555SdesKey *key_load_public_type(int, const char *, char **); 24247485SdesKey *key_parse_private(Buffer *, const char *, const char *, char **); 2592555SdesKey *key_load_private(const char *, const char *, char **); 26215116SdesKey *key_load_private_cert(int, const char *, const char *, int *); 27162852SdesKey *key_load_private_type(int, const char *, const char *, char **, int *); 2898675SdesKey *key_load_private_pem(int, int, const char *, char **); 29162852Sdesint key_perm_ok(int, const char *); 30204917Sdesint key_in_file(Key *, const char *, int); 3160573Skris 3260573Skris#endif 33