diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-10-13 05:02:52 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-10-13 05:02:52 +0000 |
commit | 458e18ffad053301c7648deec7ad1da6f873747c (patch) | |
tree | 2612644d85306184254b31150b10264911b42b1c /lib/gnutls_alert.h | |
parent | 22853894970ea9db7e7bf34206f3a7abf514d1fa (diff) | |
download | gnutls-458e18ffad053301c7648deec7ad1da6f873747c.tar.gz |
several fixes in the codebase, mostly in signed/unsigned checkings.
Diffstat (limited to 'lib/gnutls_alert.h')
-rw-r--r-- | lib/gnutls_alert.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/gnutls_alert.h b/lib/gnutls_alert.h index ad9b747467..e0599cc31d 100644 --- a/lib/gnutls_alert.h +++ b/lib/gnutls_alert.h @@ -1,6 +1,5 @@ -typedef enum AlertLevel { GNUTLS_AL_WARNING=1, GNUTLS_AL_FATAL -} AlertLevel; -#define GNUTLS_AlertLevel AlertLevel +typedef enum gnutls_alert_level { GNUTLS_AL_WARNING=1, GNUTLS_AL_FATAL +} gnutls_alert_level; typedef enum AlertDescription { GNUTLS_A_CLOSE_NOTIFY, GNUTLS_A_UNEXPECTED_MESSAGE=10, @@ -15,8 +14,7 @@ typedef enum AlertDescription { GNUTLS_A_PROTOCOL_VERSION=70, GNUTLS_A_INSUFFICIENT_SECURITY, GNUTLS_A_INTERNAL_ERROR=80, GNUTLS_A_USER_CANCELED=90, GNUTLS_A_NO_RENEGOTIATION=100 -} AlertDescription; -#define GNUTLS_AlertDescription AlertDescription +} gnutls_alert_description; -AlertDescription gnutls_alert_get( gnutls_session session); -int gnutls_alert_send( gnutls_session session, AlertLevel level, AlertDescription desc); +gnutls_alert_description gnutls_alert_get( gnutls_session session); +int gnutls_alert_send( gnutls_session session, gnutls_alert_level level, gnutls_alert_description desc); |