|
Packit Service |
4684c1 |
/*
|
|
Packit Service |
4684c1 |
* Copyright (C) 2001-2012 Free Software Foundation, Inc.
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* Author: Nikos Mavrogiannopoulos
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* This file is part of GnuTLS.
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* The GnuTLS is free software; you can redistribute it and/or
|
|
Packit Service |
4684c1 |
* modify it under the terms of the GNU Lesser General Public License
|
|
Packit Service |
4684c1 |
* as published by the Free Software Foundation; either version 2.1 of
|
|
Packit Service |
4684c1 |
* the License, or (at your option) any later version.
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* This library is distributed in the hope that it will be useful, but
|
|
Packit Service |
4684c1 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
4684c1 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
4684c1 |
* Lesser General Public License for more details.
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
* You should have received a copy of the GNU Lesser General Public License
|
|
Packit Service |
4684c1 |
* along with this program. If not, see <https://www.gnu.org/licenses/>
|
|
Packit Service |
4684c1 |
*
|
|
Packit Service |
4684c1 |
*/
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
#ifndef GNUTLS_LIB_AUTH_ANON_H
|
|
Packit Service |
4684c1 |
#define GNUTLS_LIB_AUTH_ANON_H
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
/* this is not to be included by gnutls_anon.c */
|
|
Packit Service |
4684c1 |
#include <auth.h>
|
|
Packit Service |
4684c1 |
#include <auth/dh_common.h>
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
typedef struct gnutls_anon_server_credentials_st {
|
|
Packit Service |
4684c1 |
gnutls_dh_params_t dh_params;
|
|
Packit Service |
4684c1 |
unsigned deinit_dh_params;
|
|
Packit Service |
4684c1 |
gnutls_sec_param_t dh_sec_param;
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
/* this callback is used to retrieve the DH or RSA
|
|
Packit Service |
4684c1 |
* parameters.
|
|
Packit Service |
4684c1 |
*/
|
|
Packit Service |
4684c1 |
gnutls_params_function *params_func;
|
|
Packit Service |
4684c1 |
} anon_server_credentials_st;
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
typedef struct gnutls_anon_client_credentials_st {
|
|
Packit Service |
4684c1 |
int dummy;
|
|
Packit Service |
4684c1 |
} anon_client_credentials_st;
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
typedef struct anon_auth_info_st {
|
|
Packit Service |
4684c1 |
dh_info_st dh;
|
|
Packit Service |
4684c1 |
gnutls_ecc_curve_t curve;
|
|
Packit Service |
4684c1 |
} *anon_auth_info_t;
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
typedef struct anon_auth_info_st anon_auth_info_st;
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
#endif /* GNUTLS_LIB_AUTH_ANON_H */
|