tinydtls  0.8.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Macros | Enumerations | Functions
alert.h File Reference

DTLS alert protocol. More...

Go to the source code of this file.

Macros

#define DTLS_EVENT_CONNECT   0x01DC
 
#define DTLS_EVENT_CONNECTED   0x01DE
 
#define DTLS_EVENT_RENEGOTIATE   0x01DF
 

Enumerations

enum  dtls_alert_level_t { DTLS_ALERT_LEVEL_WARNING =1, DTLS_ALERT_LEVEL_FATAL =2 }
 
enum  dtls_alert_t {
  DTLS_ALERT_CLOSE_NOTIFY = 0, DTLS_ALERT_UNEXPECTED_MESSAGE = 10, DTLS_ALERT_BAD_RECORD_MAC = 20, DTLS_ALERT_RECORD_OVERFLOW = 22,
  DTLS_ALERT_DECOMPRESSION_FAILURE = 30, DTLS_ALERT_HANDSHAKE_FAILURE = 40, DTLS_ALERT_BAD_CERTIFICATE = 42, DTLS_ALERT_UNSUPPORTED_CERTIFICATE = 43,
  DTLS_ALERT_CERTIFICATE_REVOKED = 44, DTLS_ALERT_CERTIFICATE_EXPIRED = 45, DTLS_ALERT_CERTIFICATE_UNKNOWN = 46, DTLS_ALERT_ILLEGAL_PARAMETER = 47,
  DTLS_ALERT_UNKNOWN_CA = 48, DTLS_ALERT_ACCESS_DENIED = 49, DTLS_ALERT_DECODE_ERROR = 50, DTLS_ALERT_DECRYPT_ERROR = 51,
  DTLS_ALERT_PROTOCOL_VERSION = 70, DTLS_ALERT_INSUFFICIENT_SECURITY = 71, DTLS_ALERT_INTERNAL_ERROR = 80, DTLS_ALERT_USER_CANCELED = 90,
  DTLS_ALERT_NO_RENEGOTIATION = 100, DTLS_ALERT_UNSUPPORTED_EXTENSION = 110
}
 

Functions

static int dtls_alert_create (dtls_alert_level_t level, dtls_alert_t desc)
 
static int dtls_alert_fatal_create (dtls_alert_t desc)
 

Detailed Description

DTLS alert protocol.

Definition in file alert.h.

Macro Definition Documentation

#define DTLS_EVENT_CONNECT   0x01DC

initiated handshake

Definition at line 64 of file alert.h.

#define DTLS_EVENT_CONNECTED   0x01DE

handshake or re-negotiation has finished

Definition at line 65 of file alert.h.

#define DTLS_EVENT_RENEGOTIATE   0x01DF

re-negotiation has started

Definition at line 68 of file alert.h.

Enumeration Type Documentation

Enumerator
DTLS_ALERT_LEVEL_WARNING 
DTLS_ALERT_LEVEL_FATAL 

Definition at line 34 of file alert.h.

Enumerator
DTLS_ALERT_CLOSE_NOTIFY 
DTLS_ALERT_UNEXPECTED_MESSAGE 
DTLS_ALERT_BAD_RECORD_MAC 
DTLS_ALERT_RECORD_OVERFLOW 
DTLS_ALERT_DECOMPRESSION_FAILURE 
DTLS_ALERT_HANDSHAKE_FAILURE 
DTLS_ALERT_BAD_CERTIFICATE 
DTLS_ALERT_UNSUPPORTED_CERTIFICATE 
DTLS_ALERT_CERTIFICATE_REVOKED 
DTLS_ALERT_CERTIFICATE_EXPIRED 
DTLS_ALERT_CERTIFICATE_UNKNOWN 
DTLS_ALERT_ILLEGAL_PARAMETER 
DTLS_ALERT_UNKNOWN_CA 
DTLS_ALERT_ACCESS_DENIED 
DTLS_ALERT_DECODE_ERROR 
DTLS_ALERT_DECRYPT_ERROR 
DTLS_ALERT_PROTOCOL_VERSION 
DTLS_ALERT_INSUFFICIENT_SECURITY 
DTLS_ALERT_INTERNAL_ERROR 
DTLS_ALERT_USER_CANCELED 
DTLS_ALERT_NO_RENEGOTIATION 
DTLS_ALERT_UNSUPPORTED_EXTENSION 

Definition at line 39 of file alert.h.

Function Documentation

static int dtls_alert_create ( dtls_alert_level_t  level,
dtls_alert_t  desc 
)
inlinestatic

Definition at line 71 of file alert.h.

static int dtls_alert_fatal_create ( dtls_alert_t  desc)
inlinestatic

Definition at line 77 of file alert.h.