diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-08-19 14:25:44 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2001-08-19 14:25:44 +0000 |
commit | 64076d11d87fe35153cd8d5a9aacee91e4fea339 (patch) | |
tree | 52704a570c9b78809eff5fe46baa3c39cebeda12 /src | |
parent | 4128d9c2a1441223f149de8856d0461d96f04eb4 (diff) | |
download | gnutls-64076d11d87fe35153cd8d5a9aacee91e4fea339.tar.gz |
better support for buffered read and several cleanups
Diffstat (limited to 'src')
-rw-r--r-- | src/cli.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |