diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-02-22 00:40:23 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-02-22 00:40:23 +0000 |
commit | 1512dfb8069670fcc753f2c4175b308d829a691d (patch) | |
tree | e4a9586519c13ce9494fe63ac50dc71bc6f39374 /src/cli.c | |
parent | f1996b73edb201964d301000e1e8997de859c9b9 (diff) | |
download | gnutls-1512dfb8069670fcc753f2c4175b308d829a691d.tar.gz |
Several alert protocol changes.
Diffstat (limited to 'src/cli.c')
-rw-r--r-- | src/cli.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |