2 * Copyright (C) 2009, 2010 Free Software Foundation, Inc.
4 * Author: Steve Dispensa (<dispensa@phonefactor.com>)
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 2.1 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
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
25 #ifndef EXT_SAFE_RENEGOTIATION_H
26 #define EXT_SAFE_RENEGOTIATION_H
28 #include <gnutls_extensions.h>
32 uint8_t client_verify_data
[MAX_VERIFY_DATA_SIZE
];
33 size_t client_verify_data_len
;
34 uint8_t server_verify_data
[MAX_VERIFY_DATA_SIZE
];
35 size_t server_verify_data_len
;
36 uint8_t ri_extension_data
[MAX_VERIFY_DATA_SIZE
* 2]; /* max signal is 72 bytes in s->c sslv3 */
37 size_t ri_extension_data_len
;
39 int safe_renegotiation_received
:1;
40 int initial_negotiation_completed
:1;
41 int connection_using_safe_renegotiation
:1;
44 extern extension_entry_st ext_mod_sr
;
46 int _gnutls_ext_sr_finished (gnutls_session_t session
, void *vdata
,
47 size_t vdata_size
, int dir
);
48 int _gnutls_ext_sr_recv_cs (gnutls_session_t session
);
49 int _gnutls_ext_sr_verify (gnutls_session_t session
);
50 int _gnutls_ext_sr_send_cs (gnutls_session_t
);
52 #endif /* EXT_SAFE_RENEGOTIATION_H */