summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-08-19 14:25:44 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-08-19 14:25:44 +0000
commit64076d11d87fe35153cd8d5a9aacee91e4fea339 (patch)
tree52704a570c9b78809eff5fe46baa3c39cebeda12 /src
parent4128d9c2a1441223f149de8856d0461d96f04eb4 (diff)
downloadgnutls-64076d11d87fe35153cd8d5a9aacee91e4fea339.tar.gz
better support for buffered read and several cleanups
Diffstat (limited to 'src')
-rw-r--r--src/cli.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli.c b/src/cli.c
index d3377609de..5c219d8362 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -288,8 +288,8 @@ int main(int argc, char** argv)
if (FD_ISSET(sd, &rset)) {
bzero(buffer, MAX_BUF+1);
-
ret = gnutls_read(sd, state, buffer, MAX_BUF);
+
/* remove new line */
if (gnutls_is_fatal_error(ret) == 1 || ret==0) {
@@ -304,8 +304,8 @@ int main(int argc, char** argv)
} else {
if (ret==GNUTLS_E_WARNING_ALERT_RECEIVED || ret==GNUTLS_E_FATAL_ALERT_RECEIVED)
printf("* Received alert [%d]\n", gnutls_get_last_alert(state));
- if (ret==GNUTLS_E_GOT_HELLO_REQUEST)
- printf("* Received HelloRequest message (server asked to rehandshake)\n");
+ if (ret==GNUTLS_E_REHANDSHAKE)
+ printf("* Rehandshake was performed\n");
if (ret > 0) {
printf("- Received[%d]: ", ret);