blob: 2688f21cf39bfbecf96ed008c19137f75d38ddb9 [file] [log] [blame]
Adam Tkaca0d90c92010-09-07 09:33:51 +00001/*
2 * Copyright (C) 2006 Martin Koegler
3 * Copyright (C) 2010 TigerVNC Team
4 *
5 * This 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 software 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 software; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
18 * USA.
19 */
20
21#ifndef __RFB_PAM_H__
22#define __RFB_PAM_H__
23
24#ifdef HAVE_CONFIG_H
25#include <config.h>
26#endif
27
28#ifndef HAVE_PAM
29#error "This header should not be included when PAM is unsupported"
30#endif
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36int do_pam_auth(const char *service, const char *username, const char *password);
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif