summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-02-22 00:40:23 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-02-22 00:40:23 +0000
commit1512dfb8069670fcc753f2c4175b308d829a691d (patch)
treee4a9586519c13ce9494fe63ac50dc71bc6f39374 /src/cli.c
parentf1996b73edb201964d301000e1e8997de859c9b9 (diff)
downloadgnutls-1512dfb8069670fcc753f2c4175b308d829a691d.tar.gz
Several alert protocol changes.
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli.c b/src/cli.c
index 18bf464c84..a65df17fea 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -269,9 +269,9 @@ int main(int argc, char **argv)
if (ret < 0) {
if (ret == GNUTLS_E_WARNING_ALERT_RECEIVED
|| ret == GNUTLS_E_FATAL_ALERT_RECEIVED)
- alert = gnutls_alert_get_last( state);
+ alert = gnutls_alert_get( state);
printf("*** Received alert [%d]: %s\n",
- alert, gnutls_alert_str( alert));
+ alert, gnutls_alert_get_name( alert));
fprintf(stderr, "*** Handshake has failed\n");
gnutls_perror(ret);
@@ -377,7 +377,7 @@ int main(int argc, char **argv)
|| ret ==
GNUTLS_E_FATAL_ALERT_RECEIVED)
printf("* Received alert [%d]\n",
- gnutls_alert_get_last
+ gnutls_alert_get
(state));
if (ret == GNUTLS_E_REHANDSHAKE) {