gnutls_datum.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 #include "gnutls_int.h"
00025 
00026 void MHD_gtls_write_datum16 (opaque * dest, MHD_gnutls_datum_t dat);
00027 void MHD_gtls_write_datum24 (opaque * dest, MHD_gnutls_datum_t dat);
00028 
00029 int MHD_gtls_set_datum_m (MHD_gnutls_datum_t * dat, const void *data,
00030                           size_t data_size, MHD_gnutls_alloc_function);
00031 #define MHD__gnutls_set_datum( x, y, z) MHD_gtls_set_datum_m(x,y,z, MHD_gnutls_malloc)
00032 #define MHD__gnutls_sset_datum( x, y, z) MHD_gtls_set_datum_m(x,y,z, MHD_gnutls_secure_malloc)
00033 
00034 #define MHD__gnutls_datum_append(x,y,z) MHD_gtls_datum_append_m(x,y,z, MHD_gnutls_realloc)
00035 
00036 void MHD_gtls_free_datum_m (MHD_gnutls_datum_t * dat,
00037                             MHD_gnutls_free_function);
00038 #define MHD__gnutls_free_datum(x) MHD_gtls_free_datum_m(x, MHD_gnutls_free)

Generated on Fri Feb 27 18:18:40 2009 for GNU libmicrohttpd by  doxygen 1.5.8