diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-09-05 11:36:32 +0300 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-09-05 11:37:19 +0300 |
commit | f2c7e90a2fd324f7c86c0cc44cc1ce225143a715 (patch) | |
tree | 198227c22e06dafa36ce66bcbe391fc29a4dbd99 /tests/mini-record-2.c | |
parent | a54079812048e3dda5e94e8df5b9537eb82ad252 (diff) | |
download | gnutls-f2c7e90a2fd324f7c86c0cc44cc1ce225143a715.tar.gz |
Test the null cipher as well.
Diffstat (limited to 'tests/mini-record-2.c')
-rw-r--r-- | tests/mini-record-2.c | 8 |
1 files changed, 6 insertions, 2 deletions
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); |