Fix --disable-valgrind-tests.
[gnutls.git] / lib / auth_dh_common.h
blobb4ec6b6a00d4982bef0c95ba1fbb2a8822fe47e7
1 /*
2 * Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation
4 * Author: Nikos Mavrogiannopoulos
6 * This file is part of GNUTLS.
8 * The GNUTLS library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21 * USA
25 #ifndef AUTH_DH_COMMON
26 # define AUTH_DH_COMMON
28 typedef struct
30 int secret_bits;
32 gnutls_datum_t prime;
33 gnutls_datum_t generator;
34 gnutls_datum_t public_key;
35 } dh_info_st;
37 void _gnutls_free_dh_info (dh_info_st * dh);
38 int _gnutls_gen_dh_common_client_kx (gnutls_session_t, opaque **);
39 int _gnutls_proc_dh_common_client_kx (gnutls_session_t session,
40 opaque * data, size_t _data_size,
41 bigint_t p, bigint_t g);
42 int _gnutls_dh_common_print_server_kx (gnutls_session_t, bigint_t g, bigint_t p,
43 opaque ** data, int psk);
44 int _gnutls_proc_dh_common_server_kx (gnutls_session_t session,
45 opaque * data, size_t _data_size,
46 int psk);
48 #endif