diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-09-22 18:48:07 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-09-22 18:48:12 +0200 |
commit | f3abb3c8e37dfdb0881c23499abf4fe3aa779e14 (patch) | |
tree | 118bc125b97004106dc047ba8eeffee81733e070 /tests/eagain-common.h | |
parent | 06ef6e616fb08a6db4499f6bb64f99bed1a03043 (diff) | |
download | gnutls-f3abb3c8e37dfdb0881c23499abf4fe3aa779e14.tar.gz |
Simplified and corrected decompression and compression.
Added test program.
Diffstat (limited to 'tests/eagain-common.h')
-rw-r--r-- | tests/eagain-common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/eagain-common.h b/tests/eagain-common.h index c55e97c210..07d514885e 100644 --- a/tests/eagain-common.h +++ b/tests/eagain-common.h @@ -32,6 +32,9 @@ ret = gnutls_record_send (c, msg, msglen); \ } \ while(ret == GNUTLS_E_AGAIN); \ + \ + if (ret < 0) fail ("client send error: %s\n", gnutls_strerror (ret)); \ + \ do \ { \ do \ @@ -54,6 +57,7 @@ ns = gnutls_record_send (server, msg, msglen); \ } \ while (ns == GNUTLS_E_AGAIN); \ + if (ns < 0) fail ("server send error: %s\n", gnutls_strerror (ret)); \ do \ { \ ret = gnutls_record_recv (client, buf, buflen); \ @@ -81,6 +85,7 @@ ns = gnutls_record_send (client, buf, msglen); \ } \ while (ns == GNUTLS_E_AGAIN); \ + if (ns < 0) fail ("client send error: %s\n", gnutls_strerror (ret)); \ transferred += ret; \ if (debug) \ fputs (".", stdout); \ |