Tizen 2.0 Release
[external/libgnutls26.git] / lib / auth_anon.h
1 /*
2  * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2010 Free Software
3  * Foundation, Inc.
4  *
5  * Author: Nikos Mavrogiannopoulos
6  *
7  * This file is part of GnuTLS.
8  *
9  * The GnuTLS is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * as published by the Free Software Foundation; either version 2.1 of
12  * the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22  * USA
23  *
24  */
25
26 /* this is not to be included by gnutls_anon.c */
27 #include <gnutls_auth.h>
28 #include <auth_dh_common.h>
29
30 typedef struct gnutls_anon_server_credentials_st
31 {
32   gnutls_dh_params_t dh_params;
33   /* this callback is used to retrieve the DH or RSA
34    * parameters.
35    */
36   gnutls_params_function *params_func;
37 } anon_server_credentials_st;
38
39 typedef struct gnutls_anon_client_credentials_st
40 {
41   int dummy;
42 } anon_client_credentials_st;
43
44 typedef struct anon_auth_info_st
45 {
46   dh_info_st dh;
47 } *anon_auth_info_t;
48
49 typedef struct anon_auth_info_st anon_auth_info_st;