Add announcement message.
[gnutls.git] / lib / auth_dh_common.h
blob57d17ffa4a3cf275ae3c7342cbac80748f2e0bf8
1 /*
2 * Copyright (C) 2002, 2003, 2004, 2005, 2010 Free Software Foundation,
3 * Inc.
5 * Author: Nikos Mavrogiannopoulos
7 * This file is part of GNUTLS.
9 * The GNUTLS library 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.
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.
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
26 #ifndef AUTH_DH_COMMON
27 # define AUTH_DH_COMMON
29 typedef struct
31 int secret_bits;
33 gnutls_datum_t prime;
34 gnutls_datum_t generator;
35 gnutls_datum_t public_key;
36 } dh_info_st;
38 void _gnutls_free_dh_info (dh_info_st * dh);
39 int _gnutls_gen_dh_common_client_kx (gnutls_session_t, opaque **);
40 int _gnutls_proc_dh_common_client_kx (gnutls_session_t session,
41 opaque * data, size_t _data_size,
42 bigint_t p, bigint_t g);
43 int _gnutls_dh_common_print_server_kx (gnutls_session_t, bigint_t g, bigint_t p,
44 opaque ** data, int psk);
45 int _gnutls_proc_dh_common_server_kx (gnutls_session_t session,
46 opaque * data, size_t _data_size,
47 int psk);
49 #endif