gnutls-commit
[Top][All Lists]
Advanced

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

[SCM] GNU gnutls branch, master, updated. gnutls_3_0_3-89-g85945e2


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU gnutls branch, master, updated. gnutls_3_0_3-89-g85945e2
Date: Wed, 12 Oct 2011 18:34:56 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=85945e245f6582fdbba2c5813c71c2d014b51420

The branch, master has been updated
       via  85945e245f6582fdbba2c5813c71c2d014b51420 (commit)
      from  7441316a38a03003aea456449d5f809ae57209b1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 85945e245f6582fdbba2c5813c71c2d014b51420
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Wed Oct 12 20:35:35 2011 +0200

    Added a test for servers not accepting small records.

-----------------------------------------------------------------------

Summary of changes:
 src/tests.c    |   16 ++++++++++++++++
 src/tests.h    |    1 +
 src/tls_test.c |    2 ++
 3 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/tests.c b/src/tests.c
index af5eec1..4d3d372 100644
--- a/src/tests.c
+++ b/src/tests.c
@@ -867,6 +867,22 @@ test_hello_extension (gnutls_session_t session)
            ":" ALL_KX ":%s", protocol_str, rest);
   _gnutls_priority_set_direct (session, prio_str);
   gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, xcred);
+  gnutls_record_set_max_size (session, 4096);
+
+  ret = do_handshake (session);
+  return ret;
+}
+
+test_code_t
+test_small_records (gnutls_session_t session)
+{
+  int ret;
+
+  sprintf (prio_str,
+           INIT_STR ALL_CIPHERS ":" ALL_COMP ":" ALL_CERTTYPES ":%s:" ALL_MACS
+           ":" ALL_KX ":%s", protocol_str, rest);
+  _gnutls_priority_set_direct (session, prio_str);
+  gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, xcred);
   gnutls_record_set_max_size (session, 512);
 
   ret = do_handshake (session);
diff --git a/src/tests.h b/src/tests.h
index e63c31b..41dd35e 100644
--- a/src/tests.h
+++ b/src/tests.h
@@ -8,6 +8,7 @@ test_code_t test_record_padding (gnutls_session_t state);
 test_code_t test_export (gnutls_session_t state);
 test_code_t test_export_info (gnutls_session_t state);
 test_code_t test_hello_extension (gnutls_session_t state);
+test_code_t test_small_records (gnutls_session_t state);
 test_code_t test_dhe (gnutls_session_t state);
 test_code_t test_dhe_group (gnutls_session_t state);
 test_code_t test_ssl3 (gnutls_session_t state);
diff --git a/src/tls_test.c b/src/tls_test.c
index 207bbbc..ace79da 100644
--- a/src/tls_test.c
+++ b/src/tls_test.c
@@ -106,6 +106,8 @@ static const TLS_TEST tls_tests[] = {
    test_rsa_pms_version_check, "yes", "no", "dunno"},
   {"whether the server can accept Hello Extensions",
    test_hello_extension, "yes", "no", "dunno"},
+  {"whether the server can accept small records (512 bytes)",
+   test_small_records, "yes", "no", "dunno"},
   {"whether the server can accept cipher suites not in SSL 3.0 spec",
    test_unknown_ciphersuites, "yes", "no", "dunno"},
   {"whether the server can accept a bogus TLS record version in the client 
hello", test_version_oob, "yes", "no", "dunno"},


hooks/post-receive
-- 
GNU gnutls



reply via email to

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