gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r8177 - in libmicrohttpd/src: daemon/https/tls testcurl/htt


From: gnunet
Subject: [GNUnet-SVN] r8177 - in libmicrohttpd/src: daemon/https/tls testcurl/https
Date: Mon, 2 Feb 2009 22:35:28 -0700 (MST)

Author: grothoff
Date: 2009-02-02 22:35:28 -0700 (Mon, 02 Feb 2009)
New Revision: 8177

Modified:
   libmicrohttpd/src/daemon/https/tls/gnutls_datum.h
   libmicrohttpd/src/daemon/https/tls/gnutls_handshake.c
   libmicrohttpd/src/testcurl/https/tls_daemon_options_test.c
   libmicrohttpd/src/testcurl/https/tls_extension_test.c
   libmicrohttpd/src/testcurl/https/tls_test_common.c
   libmicrohttpd/src/testcurl/https/tls_test_common.h
Log:
making stuff compile

Modified: libmicrohttpd/src/daemon/https/tls/gnutls_datum.h
===================================================================
--- libmicrohttpd/src/daemon/https/tls/gnutls_datum.h   2009-02-03 05:22:32 UTC 
(rev 8176)
+++ libmicrohttpd/src/daemon/https/tls/gnutls_datum.h   2009-02-03 05:35:28 UTC 
(rev 8177)
@@ -21,6 +21,7 @@
  * USA
  *
  */
+#include "gnutls_int.h"
 
 void MHD_gtls_write_datum16 (opaque * dest, MHD_gnutls_datum_t dat);
 void MHD_gtls_write_datum24 (opaque * dest, MHD_gnutls_datum_t dat);

Modified: libmicrohttpd/src/daemon/https/tls/gnutls_handshake.c
===================================================================
--- libmicrohttpd/src/daemon/https/tls/gnutls_handshake.c       2009-02-03 
05:22:32 UTC (rev 8176)
+++ libmicrohttpd/src/daemon/https/tls/gnutls_handshake.c       2009-02-03 
05:35:28 UTC (rev 8177)
@@ -1493,7 +1493,7 @@
 /* This function copies the appropriate ciphersuites to a locally allocated 
buffer
  * Needed in client hello messages. Returns the new data length.
  */
-static int
+int
 MHD__gnutls_copy_ciphersuites (MHD_gtls_session_t session,
                                opaque * ret_data, size_t ret_data_size)
 {

Modified: libmicrohttpd/src/testcurl/https/tls_daemon_options_test.c
===================================================================
--- libmicrohttpd/src/testcurl/https/tls_daemon_options_test.c  2009-02-03 
05:22:32 UTC (rev 8176)
+++ libmicrohttpd/src/testcurl/https/tls_daemon_options_test.c  2009-02-03 
05:35:28 UTC (rev 8177)
@@ -49,7 +49,7 @@
   struct CBC cbc;
   if (NULL == (cbc.buf = malloc (sizeof (char) * 256)))
     {
-      fprintf (stderr, "Error: failed to read test file. %s\n",
+      fprintf (stderr, "Error: failed to allocate: %s\n",
                strerror (errno));
       return -1;
     }
@@ -59,6 +59,7 @@
   char url[255];
   if (gen_test_file_url (url, DEAMON_TEST_PORT))
     {
+      free (cbc.buf);
       return -1;
     }
 
@@ -66,9 +67,11 @@
   if (CURLE_OK ==
       send_curl_req (url, &cbc, cipher_suite, curl_req_ssl_version))
     {
+      free (cbc.buf);
       return -1;
     }
 
+  free (cbc.buf);
   return 0;
 }
 

Modified: libmicrohttpd/src/testcurl/https/tls_extension_test.c
===================================================================
--- libmicrohttpd/src/testcurl/https/tls_extension_test.c       2009-02-03 
05:22:32 UTC (rev 8176)
+++ libmicrohttpd/src/testcurl/https/tls_extension_test.c       2009-02-03 
05:35:28 UTC (rev 8177)
@@ -93,7 +93,7 @@
     MHD_gtls_hash_init (MHD_GNUTLS_MAC_SHA1);
 
   /* version = 2 , random = [4 for unix time + 28 for random bytes] */
-  datalen = TLS_VERSION_SIZE + TLS_RANDOM_SIZE + (session_id_len + 1);
+  datalen = 2 /* version */ + TLS_RANDOM_SIZE + (session_id_len + 1);
 
   data = MHD_gnutls_malloc (datalen);
 

Modified: libmicrohttpd/src/testcurl/https/tls_test_common.c
===================================================================
--- libmicrohttpd/src/testcurl/https/tls_test_common.c  2009-02-03 05:22:32 UTC 
(rev 8176)
+++ libmicrohttpd/src/testcurl/https/tls_test_common.c  2009-02-03 05:35:28 UTC 
(rev 8177)
@@ -26,6 +26,8 @@
 
 #include "tls_test_common.h"
 #include "tls_test_keys.h"
+#include "gnutls.h"
+#include "gnutls_datum.h"
 
 const char test_file_data[] = "Hello World\n";
 
@@ -125,6 +127,7 @@
  * @return
  */
 /* TODO have test wrap consider a NULL cbc */
+int
 send_curl_req (char *url, struct CBC * cbc, char *cipher_suite,
                int proto_version)
 {

Modified: libmicrohttpd/src/testcurl/https/tls_test_common.h
===================================================================
--- libmicrohttpd/src/testcurl/https/tls_test_common.h  2009-02-03 05:22:32 UTC 
(rev 8176)
+++ libmicrohttpd/src/testcurl/https/tls_test_common.h  2009-02-03 05:35:28 UTC 
(rev 8177)
@@ -29,8 +29,8 @@
 #include "gnutls.h"
 
 /* this enables verbos CURL version checking */
-#define DEBUG_HTTPS_TEST 1
-#define CURL_VERBOS_LEVEL 1
+#define DEBUG_HTTPS_TEST 0
+#define CURL_VERBOS_LEVEL 0
 
 #define DEAMON_TEST_PORT 42433
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]