gnutls_extensions.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <gnutls_int.h>
00026
00027 const char *MHD_gtls_extension_get_name (uint16_t type);
00028 int MHD_gtls_parse_extensions (MHD_gtls_session_t, MHD_gtls_ext_parse_type_t,
00029 const opaque *, int);
00030 int MHD_gtls_gen_extensions (MHD_gtls_session_t session, opaque * data,
00031 size_t data_size);
00032
00033 typedef int (*MHD_gtls_ext_recv_func) (MHD_gtls_session_t, const opaque *, size_t);
00034 typedef int (*MHD_gtls_ext_send_func) (MHD_gtls_session_t, opaque *, size_t);
00035
00036 MHD_gtls_ext_send_func MHD_gtls_ext_func_send (uint16_t type);
00037 MHD_gtls_ext_recv_func MHD_gtls_ext_func_recv (uint16_t type,
00038 MHD_gtls_ext_parse_type_t);
00039
00040 typedef struct
00041 {
00042 const char *name;
00043 uint16_t type;
00044 MHD_gtls_ext_parse_type_t parse_type;
00045 MHD_gtls_ext_recv_func MHD_gnutls_ext_func_recv;
00046 MHD_gtls_ext_send_func MHD_gnutls_ext_func_send;
00047 } MHD_gtls_extension_entry;