[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7763 - libmicrohttpd/src/daemon/https/tls
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7763 - libmicrohttpd/src/daemon/https/tls |
Date: |
Sun, 12 Oct 2008 15:00:50 -0600 (MDT) |
Author: grothoff
Date: 2008-10-12 15:00:50 -0600 (Sun, 12 Oct 2008)
New Revision: 7763
Modified:
libmicrohttpd/src/daemon/https/tls/gnutls_handshake.c
libmicrohttpd/src/daemon/https/tls/gnutls_handshake.h
Log:
removed too much
Modified: libmicrohttpd/src/daemon/https/tls/gnutls_handshake.c
===================================================================
--- libmicrohttpd/src/daemon/https/tls/gnutls_handshake.c 2008-10-12
20:52:17 UTC (rev 7762)
+++ libmicrohttpd/src/daemon/https/tls/gnutls_handshake.c 2008-10-12
21:00:50 UTC (rev 7763)
@@ -145,6 +145,24 @@
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)
{
Modified: libmicrohttpd/src/daemon/https/tls/gnutls_handshake.h
===================================================================
--- libmicrohttpd/src/daemon/https/tls/gnutls_handshake.h 2008-10-12
20:52:17 UTC (rev 7762)
+++ libmicrohttpd/src/daemon/https/tls/gnutls_handshake.h 2008-10-12
21:00:50 UTC (rev 7763)
@@ -36,6 +36,8 @@
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7763 - libmicrohttpd/src/daemon/https/tls,
gnunet <=