1 /*
2  * ProFTPD - mod_sftp public key store (including RFC4716 public key file
3  *                                      format)
4  * Copyright (c) 2008-2016 TJ Saunders
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
19  *
20  * As a special exemption, TJ Saunders and other respective copyright holders
21  * give permission to link this program with OpenSSL, and distribute the
22  * resulting executable, without including the source code for OpenSSL in the
23  * source distribution.
24  */
25 
26 #ifndef MOD_SFTP_KEYSTORE_H
27 #define MOD_SFTP_KEYSTORE_H
28 
29 #include "mod_sftp.h"
30 
31 int sftp_keystore_init(void);
32 int sftp_keystore_free(void);
33 
34 int sftp_keystore_supports_store(const char *, unsigned int);
35 int sftp_keystore_verify_host_key(pool *, const char *, const char *,
36   const char *, unsigned char *, uint32_t);
37 int sftp_keystore_verify_user_key(pool *, const char *, unsigned char *,
38   uint32_t);
39 
40 #endif /* MOD_SFTP_KEYSTORE_H */
41