source: src/router/proftpd/contrib/mod_sftp/auth.h @ 17876

Last change on this file since 17876 was 17876, checked in by BrainSlayer, 19 months ago

update proftp

File size: 2.2 KB
Line 
1/*
2 * ProFTPD - mod_sftp user authentication (auth)
3 * Copyright (c) 2008-2011 TJ Saunders
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18 *
19 * As a special exemption, TJ Saunders and other respective copyright holders
20 * give permission to link this program with OpenSSL, and distribute the
21 * resulting executable, without including the source code for OpenSSL in the
22 * source distribution.
23 *
24 * $Id: auth.h,v 1.7 2011/08/04 21:15:19 castaglia Exp $
25 */
26
27#include "mod_sftp.h"
28
29#ifndef MOD_SFTP_AUTH_H
30#define MOD_SFTP_AUTH_H
31
32#include "packet.h"
33
34#define SFTP_AUTH_FL_METH_PUBLICKEY     0x001
35#define SFTP_AUTH_FL_METH_KBDINT        0x002
36#define SFTP_AUTH_FL_METH_PASSWORD      0x004
37#define SFTP_AUTH_FL_METH_HOSTBASED     0x008
38
39char *sftp_auth_get_default_dir(void);
40int sftp_auth_handle(struct ssh2_packet *);
41int sftp_auth_init(void);
42
43/* Handles 'hostbased' user authentication. */
44int sftp_auth_hostbased(struct ssh2_packet *, cmd_rec *,
45  const char *, const char *, const char *, char **, uint32_t *, int *);
46
47/* Handles 'keyboard-interactive' user authentication. */
48int sftp_auth_kbdint(struct ssh2_packet *, cmd_rec *,
49  const char *, const char *, const char *, char **, uint32_t *, int *);
50
51/* Handles 'password' user authentication. */
52int sftp_auth_password(struct ssh2_packet *, cmd_rec *,
53  const char *, const char *, const char *, char **, uint32_t *, int *);
54
55/* Handles 'publickey' user authentication. */
56int sftp_auth_publickey(struct ssh2_packet *, cmd_rec *,
57  const char *, const char *, const char *, char **, uint32_t *, int *);
58
59#endif
Note: See TracBrowser for help on using the repository browser.