From: Nikos Mavrogiannopoulos Date: Thu, 5 Sep 2013 08:36:32 +0000 (+0300) Subject: Test the null cipher as well. X-Git-Tag: gnutls_3_2_5~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2c7e90a2fd324f7c86c0cc44cc1ce225143a715;p=thirdparty%2Fgnutls.git Test the null cipher as well. --- diff --git a/tests/mini-record-2.c b/tests/mini-record-2.c index 54167cdafc..da609a2c6f 100644 --- a/tests/mini-record-2.c +++ b/tests/mini-record-2.c @@ -51,8 +51,8 @@ int main() static void terminate(void); -/* This program tests the robustness of record - * decoding. +/* This program tests the ability to transfer various data size + * by the record layer, under different ciphersuites. */ static void @@ -366,6 +366,8 @@ static void start (const char* prio, int ign) #define ARCFOUR_SHA1 "NONE:+VERS-TLS1.0:-CIPHER-ALL:+ARCFOUR-128:+SHA1:+SIGN-ALL:+COMP-NULL:+ANON-ECDH:+CURVE-ALL" #define ARCFOUR_MD5 "NONE:+VERS-TLS1.0:-CIPHER-ALL:+ARCFOUR-128:+MD5:+SIGN-ALL:+COMP-NULL:+ANON-ECDH:+CURVE-ALL:+RSA" +#define NULL_SHA1 "NONE:+VERS-TLS1.0:-CIPHER-ALL:+NULL:+SHA1:+SIGN-ALL:+COMP-NULL:+ANON-ECDH:+RSA:+CURVE-ALL" + #define NEW_AES_CBC "NONE:+VERS-TLS1.0:-CIPHER-ALL:+AES-128-CBC:+SHA1:+SIGN-ALL:+COMP-NULL:+ANON-ECDH:+CURVE-ALL:%NEW_PADDING" #define NEW_ARCFOUR_SHA1 "NONE:+VERS-TLS1.0:-CIPHER-ALL:+ARCFOUR-128:+SHA1:+SIGN-ALL:+COMP-NULL:+ANON-ECDH:+CURVE-ALL:%NEW_PADDING" #define NEW_AES_CBC_SHA256 "NONE:+VERS-TLS1.2:-CIPHER-ALL:+RSA:+AES-128-CBC:+AES-256-CBC:+SHA256:+SIGN-ALL:+COMP-NULL:+ANON-ECDH:+CURVE-ALL:%NEW_PADDING" @@ -392,6 +394,8 @@ doit (void) { signal(SIGCHLD, ch_handler); + start(NULL_SHA1, 0); + start(NEW_ARCFOUR_SHA1, 1); start(NEW_AES_CBC, 1); start(NEW_AES_CBC_SHA256, 1);