|
enum | MessageSeverity { Info = 1,
Warning,
Severe,
ZrtpError
} |
|
enum | InfoCodes {
InfoHelloReceived = 1,
InfoCommitDHGenerated,
InfoRespCommitReceived,
InfoDH1DHGenerated,
InfoInitDH1Received,
InfoRespDH2Received,
InfoInitConf1Received,
InfoRespConf2Received,
InfoRSMatchFound,
InfoSecureStateOn,
InfoSecureStateOff
} |
| Sub-codes for Info. More...
|
|
enum | WarningCodes {
WarningDHAESmismatch = 1,
WarningGoClearReceived,
WarningDHShort,
WarningNoRSMatch,
WarningCRCmismatch,
WarningSRTPauthError,
WarningSRTPreplayError,
WarningNoExpectedRSMatch
} |
| Sub-codes for Warning. More...
|
|
enum | SevereCodes {
SevereHelloHMACFailed = 1,
SevereCommitHMACFailed,
SevereDH1HMACFailed,
SevereDH2HMACFailed,
SevereCannotSend,
SevereProtocolError,
SevereNoTimer,
SevereTooMuchRetries
} |
| Sub-codes for Severe. More...
|
|
enum | ZrtpErrorCodes {
MalformedPacket = 0x10,
CriticalSWError = 0x20,
UnsuppZRTPVersion = 0x30,
HelloCompMismatch = 0x40,
UnsuppHashType = 0x51,
UnsuppCiphertype = 0x52,
UnsuppPKExchange = 0x53,
UnsuppSRTPAuthTag = 0x54,
UnsuppSASScheme = 0x55,
NoSharedSecret = 0x56,
DHErrorWrongPV = 0x61,
DHErrorWrongHVI = 0x62,
SASuntrustedMiTM = 0x63,
ConfirmHMACWrong = 0x70,
NonceReused = 0x80,
EqualZIDHello = 0x90,
GoCleatNotAllowed = 0x100,
IgnorePacket = 0x7fffffff
} |
| Error codes according to the ZRTP specification chapter 6.9. More...
|
|
enum | InfoEnrollment { EnrollmentRequest,
EnrollmentCanceled,
EnrollmentFailed,
EnrollmentOk
} |
| Information codes for the Enrollment user callbacks. More...
|
|
This enum defines the information message severity.
The ZRTP implementation issues information messages to inform the user about ongoing processing, unusual behavior, or alerts in case of severe problems. Each main severity code a number of sub-codes exist that specify the exact nature of the problem.
An application gets message severity codes and the associated sub-codes via the ZrtpUserCallback::showMessage method.
The severity levels and their meaning are:
- Info
- keeps the user informed about ongoing processing and security setup. The enumeration InfoCodes defines the subcodes.
- Warning
- is an information about some security issues, e.g. if an AES 256 encryption is request but only DH 3072 as public key scheme is supported. ZRTP will establish a secure session (SRTP). The enumeration WarningCodes defines the sub-codes.
- Severe
- is used if an error occured during ZRTP protocol usage. In case of Severe ZRTP will not establish a secure session. The enumeration SevereCodes defines the sub-codes.
- Zrtp
- shows a ZRTP security problem. Refer to the enumeration ZrtpErrorCodes for sub-codes. GNU ZRTP of course will not establish a secure session.
Error codes according to the ZRTP specification chapter 6.9.
GNU ZRTP uses these error codes in two ways: to fill the appropriate field ing the ZRTP Error packet and as sub-code in ZrtpUserCallback::showMessage(). GNU ZRTP uses thes error codes also to report received Error packts, in this case the sub-codes are their negative values.
The enumeration member comments are copied from the ZRTP specification.
Enumerator |
---|
MalformedPacket |
Malformed packet (CRC OK, but wrong structure)
|
CriticalSWError |
Critical software error.
|
UnsuppZRTPVersion |
Unsupported ZRTP version.
|
HelloCompMismatch |
Hello components mismatch.
|
UnsuppHashType |
Hash type not supported.
|
UnsuppCiphertype |
Cipher type not supported.
|
UnsuppPKExchange |
Public key exchange not supported.
|
UnsuppSRTPAuthTag |
SRTP auth. tag not supported.
|
UnsuppSASScheme |
SAS scheme not supported.
|
NoSharedSecret |
No shared secret available, DH mode required.
|
DHErrorWrongPV |
DH Error: bad pvi or pvr ( == 1, 0, or p-1)
|
DHErrorWrongHVI |
DH Error: hvi != hashed data.
|
SASuntrustedMiTM |
Received relayed SAS from untrusted MiTM.
|
ConfirmHMACWrong |
Auth. Error: Bad Confirm pkt HMAC.
|
NonceReused |
Nonce reuse.
|
EqualZIDHello |
Equal ZIDs in Hello.
|
GoCleatNotAllowed |
GoClear packet received, but not allowed.
|
IgnorePacket |
|
Definition at line 128 of file ZrtpCodes.h.