*** empty log message ***
[gnutls.git] / lib / gnutls_extensions.h
blob30243f8ca66250544ef93386d8fce1b2b2c5385e
1 /*
2 * Copyright (C) 2001 Nikos Mavroyanopoulos
4 * This file is part of GNUTLS.
6 * GNUTLS is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * GNUTLS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
21 #include <gnutls_int.h>
23 void* _gnutls_ext_func_send(uint16 type);
24 void* _gnutls_ext_func_recv(uint16 type);
25 const char *_gnutls_extension_get_name(uint16 type);
26 int _gnutls_parse_extensions( GNUTLS_STATE, const opaque*, int);
27 int _gnutls_gen_extensions( GNUTLS_STATE state, opaque** data);
29 typedef struct {
30 char *name;
31 uint16 type;
32 int (*gnutls_ext_func_recv)( GNUTLS_STATE, const opaque*, int); /* recv data */
33 int (*gnutls_ext_func_send)( GNUTLS_STATE, opaque*, int); /* send data */
34 } gnutls_extension_entry;