auth_dh_common.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation
00003  *
00004  * Author: Nikos Mavrogiannopoulos
00005  *
00006  * This file is part of GNUTLS.
00007  *
00008  * The GNUTLS library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation; either version 2.1 of
00011  * the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
00021  * USA
00022  *
00023  */
00024 
00025 #ifndef AUTH_DH_COMMON
00026 # define AUTH_DH_COMMON
00027 
00028 typedef struct
00029 {
00030   int secret_bits;
00031 
00032   MHD_gnutls_datum_t prime;
00033   MHD_gnutls_datum_t generator;
00034   MHD_gnutls_datum_t public_key;
00035 } MHD_gtls_dh_info_st;
00036 
00037 void MHD_gtls_free_dh_info (MHD_gtls_dh_info_st * dh);
00038 int MHD_gtls_gen_dh_common_client_kx (MHD_gtls_session_t, opaque **);
00039 int MHD_gtls_proc_dh_common_client_kx (MHD_gtls_session_t session,
00040                                        opaque * data, size_t _data_size,
00041                                        mpi_t p, mpi_t g);
00042 int MHD_gtls_dh_common_print_server_kx (MHD_gtls_session_t, mpi_t g, mpi_t p,
00043                                         opaque ** data, int psk);
00044 int MHD_gtls_proc_dh_common_server_kx (MHD_gtls_session_t session,
00045                                        opaque * data, size_t _data_size,
00046                                        int psk);
00047 
00048 #endif

Generated on Fri Feb 27 18:32:19 2009 for GNU libmicrohttpd by  doxygen 1.5.7.1