gnutls_handshake.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2000, 2001, 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 typedef enum Optional
00026 { OPTIONAL_PACKET, MANDATORY_PACKET } Optional;
00027 
00028 int MHD_gtls_send_handshake (MHD_gtls_session_t session, void *i_data,
00029                              uint32_t i_datasize,
00030                              MHD_gnutls_handshake_description_t type);
00031 int MHD_gtls_recv_hello_request (MHD_gtls_session_t session, void *data,
00032                                  uint32_t data_size);
00033 int MHD_gtls_send_hello (MHD_gtls_session_t session, int again);
00034 int MHD_gtls_recv_hello (MHD_gtls_session_t session, opaque * data,
00035                          int datalen);
00036 int MHD_gtls_recv_handshake (MHD_gtls_session_t session, uint8_t **, int *,
00037                              MHD_gnutls_handshake_description_t,
00038                              Optional optional);
00039 void
00040 MHD__gnutls_handshake_set_max_packet_length (MHD_gtls_session_t session,
00041                                              size_t max);
00042 
00043 #define STATE session->internals.handshake_state
00044 /* This returns true if we have got there
00045  * before (and not finished due to an interrupt).
00046  */
00047 #define AGAIN(target) STATE==target?1:0

Generated on Tue May 19 23:21:08 2009 for GNU libmicrohttpd by  doxygen 1.5.8