#ifndef _SSLALERTMESSAGE_H_
#define _SSLALERTMESSAGE_H_ 1
#ifndef _SECURE_TRANSPORT_H_
#include "SecureTransport.h"
#endif
#include "sslPriv.h"
#include "sslRecord.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{ SSL_AlertLevelWarning = 1,
SSL_AlertLevelFatal = 2
} AlertLevel;
typedef enum
{ SSL_AlertCloseNotify = 0,
SSL_AlertUnexpectedMsg = 10,
SSL_AlertBadRecordMac = 20,
SSL_AlertDecryptionFail = 21,
SSL_AlertRecordOverflow = 22,
SSL_AlertDecompressFail = 30,
SSL_AlertHandshakeFail = 40,
SSL_AlertNoCert = 41,
SSL_AlertBadCert = 42,
SSL_AlertUnsupportedCert = 43,
SSL_AlertCertRevoked = 44,
SSL_AlertCertExpired = 45,
SSL_AlertCertUnknown = 46,
SSL_AlertIllegalParam = 47,
SSL_AlertUnknownCA = 48,
SSL_AlertAccessDenied = 49,
SSL_AlertDecodeError = 50,
SSL_AlertDecryptError = 51,
SSL_AlertExportRestriction = 60,
SSL_AlertProtocolVersion = 70,
SSL_AlertInsufficientSecurity = 71,
SSL_AlertInternalError = 80,
SSL_AlertUserCancelled = 90,
SSL_AlertNoRenegotiation = 100
} AlertDescription;
OSStatus SSLProcessAlert(
SSLRecord rec,
SSLContext *ctx);
OSStatus SSLSendAlert(
AlertLevel level,
AlertDescription desc,
SSLContext *ctx);
OSStatus SSLFatalSessionAlert(
AlertDescription desc,
SSLContext *ctx);
#ifdef __cplusplus
}
#endif
#endif