mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-06 04:03:18 +03:00
removed too much
This commit is contained in:
1 parent
e30a3a0a1c
commit
19db7f74f4
2 files changed
+20
No files matched your search
@@ -145,6 +145,24 @@ resume_copy_required_values (MHD_gtls_session_t session)
|
||||
session->internals.resumed_security_parameters.session_id_size;
|
||||
}
|
||||
|
||||
/**
|
||||
* gnutls_handshake_set_max_packet_length - This function will set the maximum length of a handshake message
|
||||
* @session: is a #gnutls_session_t structure.
|
||||
* @max: is the maximum number.
|
||||
*
|
||||
* This function will set the maximum size of a handshake message.
|
||||
* Handshake messages over this size are rejected.
|
||||
* The default value is 16kb which is large enough. Set this to 0 if you do not want
|
||||
* to set an upper limit.
|
||||
*
|
||||
**/
|
||||
void
|
||||
MHD__gnutls_handshake_set_max_packet_length (MHD_gtls_session_t session, size_t max)
|
||||
{
|
||||
session->internals.max_handshake_data_buffer_size = max;
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
MHD_gtls_set_server_random (MHD_gtls_session_t session, uint8_t * rnd)
|
||||
{
|
||||
|
||||
@@ -36,6 +36,8 @@ int MHD_gtls_recv_hello (MHD_gtls_session_t session, opaque * data,
|
||||
int MHD_gtls_recv_handshake (MHD_gtls_session_t session, uint8_t **, int *,
|
||||
MHD_gnutls_handshake_description_t,
|
||||
Optional optional);
|
||||
void
|
||||
MHD__gnutls_handshake_set_max_packet_length (MHD_gtls_session_t session, size_t max);
|
||||
|
||||
#define STATE session->internals.handshake_state
|
||||
/* This returns true if we have got there
|
||||
|
||||
Reference in new issue
Block a user