gnutls_extensions.c File Reference

#include "MHD_config.h"
#include "gnutls_int.h"
#include "gnutls_extensions.h"
#include "gnutls_errors.h"
#include "ext_max_record.h"
#include <ext_cert_type.h>
#include <ext_server_name.h>
#include <gnutls_num.h>

Include dependency graph for gnutls_extensions.c:

Go to the source code of this file.

Defines

#define GNUTLS_EXTENSION_ENTRY(type, parse_type, ext_func_recv, ext_func_send)   { #type, type, parse_type, ext_func_recv, ext_func_send }
#define MAX_EXT_SIZE   10
#define GNUTLS_EXTENSION_LOOP2(b)
#define GNUTLS_EXTENSION_LOOP(a)   GNUTLS_EXTENSION_LOOP2( if(p->type == type) { a; break; } )

Functions

MHD_gtls_ext_recv_func MHD_gtls_ext_func_recv (uint16_t type, MHD_gtls_ext_parse_type_t parse_type)
MHD_gtls_ext_send_func MHD_gtls_ext_func_send (uint16_t type)
const char * MHD_gtls_extension_get_name (uint16_t type)
static int MHD__gnutls_extension_list_check (MHD_gtls_session_t session, uint16_t type)
int MHD_gtls_parse_extensions (MHD_gtls_session_t session, MHD_gtls_ext_parse_type_t parse_type, const opaque *data, int data_size)
static void MHD__gnutls_extension_list_add (MHD_gtls_session_t session, uint16_t type)
int MHD_gtls_gen_extensions (MHD_gtls_session_t session, opaque *data, size_t data_size)

Variables

const int MHD_gtls_extensions_size = MAX_EXT_SIZE
MHD_gtls_extension_entry MHD_gtls_extensions [MAX_EXT_SIZE]


Define Documentation

#define GNUTLS_EXTENSION_ENTRY ( type,
parse_type,
ext_func_recv,
ext_func_send   )     { #type, type, parse_type, ext_func_recv, ext_func_send }

Definition at line 40 of file gnutls_extensions.c.

#define GNUTLS_EXTENSION_LOOP (  )     GNUTLS_EXTENSION_LOOP2( if(p->type == type) { a; break; } )

#define GNUTLS_EXTENSION_LOOP2 (  ) 

Value:

MHD_gtls_extension_entry *p; \
                for(p = MHD_gtls_extensions; p->name != NULL; p++) { b ; }

Definition at line 63 of file gnutls_extensions.c.

#define MAX_EXT_SIZE   10

Definition at line 44 of file gnutls_extensions.c.


Function Documentation

static void MHD__gnutls_extension_list_add ( MHD_gtls_session_t  session,
uint16_t  type 
) [static]

static int MHD__gnutls_extension_list_check ( MHD_gtls_session_t  session,
uint16_t  type 
) [static]

MHD_gtls_ext_recv_func MHD_gtls_ext_func_recv ( uint16_t  type,
MHD_gtls_ext_parse_type_t  parse_type 
)

Definition at line 74 of file gnutls_extensions.c.

References EXTENSION_ANY, and GNUTLS_EXTENSION_LOOP.

Referenced by MHD_gtls_parse_extensions().

Here is the caller graph for this function:

MHD_gtls_ext_send_func MHD_gtls_ext_func_send ( uint16_t  type  ) 

Definition at line 86 of file gnutls_extensions.c.

References GNUTLS_EXTENSION_LOOP.

Referenced by MHD_gtls_gen_extensions().

Here is the caller graph for this function:

const char* MHD_gtls_extension_get_name ( uint16_t  type  ) 

Definition at line 95 of file gnutls_extensions.c.

References GNUTLS_EXTENSION_LOOP.

Referenced by MHD_gtls_gen_extensions(), and MHD_gtls_parse_extensions().

Here is the caller graph for this function:

int MHD_gtls_gen_extensions ( MHD_gtls_session_t  session,
opaque data,
size_t  data_size 
)

int MHD_gtls_parse_extensions ( MHD_gtls_session_t  session,
MHD_gtls_ext_parse_type_t  parse_type,
const opaque data,
int  data_size 
)


Variable Documentation

const int MHD_gtls_extensions_size = MAX_EXT_SIZE

Definition at line 45 of file gnutls_extensions.c.


Generated on Fri Feb 27 18:33:20 2009 for GNU libmicrohttpd by  doxygen 1.5.7.1