AlertDescription gnutls_alert_get_last( GNUTLS_STATE state);
-int gnutls_send_alert( GNUTLS_STATE state, AlertLevel level, AlertDescription desc);
+int gnutls_alert_send( GNUTLS_STATE state, AlertLevel level, AlertDescription desc);
#define DEFAULT_MAX_RECORD_SIZE 16384
#define RECORD_HEADER_SIZE 5
#define MAX_RECORD_SIZE state->security_parameters.max_record_size
-#define MAX_RECV_SIZE 2048+MAX_RECORD_SIZE+RECORD_HEADER_SIZE /* 2^14+2048+RECORD_HEADER_SIZE */
+#define MAX_PAD_SIZE 255
+#define MAX_RECV_SIZE 2048+MAX_PAD_SIZE+MAX_RECORD_SIZE+RECORD_HEADER_SIZE /* MAX_RECORD_SIZE+MAX_PAD+2048+RECORD_HEADER_SIZE */
#define HANDSHAKE_HEADER_SIZE 4
#include "gnutls_record.h"
#include "gnutls_datum.h"
#include "ext_max_record.h"
+#include <gnutls_alert.h>
/**
* gnutls_protocol_get_version - Returns the version of the currently used protocol