2 * Copyright (C) 2000-2012 Free Software Foundation, Inc.
4 * Author: Nikos Mavrogiannopoulos
6 * This file is part of GnuTLS.
8 * The GnuTLS is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 3 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>
22 #ifndef EXT_SERVER_NAME_H
23 #define EXT_SERVER_NAME_H
25 #include <gnutls_extensions.h>
29 uint8_t name
[MAX_SERVER_NAME_SIZE
];
31 gnutls_server_name_type_t type
;
34 #define MAX_SERVER_NAME_EXTENSIONS 3
38 server_name_st server_names
[MAX_SERVER_NAME_EXTENSIONS
];
39 /* limit server_name extensions */
40 unsigned server_names_size
;
43 extern extension_entry_st ext_mod_server_name
;