Bayonne2 / Common C++ 2 Framework: ZrtpCodes.h Source File

Bayonne2 / Common C++ 2 Framework
ZrtpCodes.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2006-2010 Werner Dittmann
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef _ZRTPCODES_H_
21 #define _ZRTPCODES_H_
22 
29  namespace GnuZrtpCodes {
65  enum MessageSeverity {
66   Info = 1,
67   Warning,
68   Severe,
69   ZrtpError
70 };
71 
75  enum InfoCodes {
76   InfoHelloReceived = 1,
77   InfoCommitDHGenerated,
78   InfoRespCommitReceived,
79   InfoDH1DHGenerated,
80   InfoInitDH1Received,
81   InfoRespDH2Received,
82   InfoInitConf1Received,
83   InfoRespConf2Received,
84   InfoRSMatchFound,
85   InfoSecureStateOn,
86   InfoSecureStateOff
87 };
88 
92  enum WarningCodes {
93   WarningDHAESmismatch = 1,
94   WarningGoClearReceived,
95   WarningDHShort,
96   WarningNoRSMatch,
97   WarningCRCmismatch,
98   WarningSRTPauthError,
99   WarningSRTPreplayError,
100   WarningNoExpectedRSMatch
101 };
102 
106  enum SevereCodes {
107   SevereHelloHMACFailed = 1,
108   SevereCommitHMACFailed,
109   SevereDH1HMACFailed,
110   SevereDH2HMACFailed,
111   SevereCannotSend,
112   SevereProtocolError,
113   SevereNoTimer,
114   SevereTooMuchRetries
115 };
116 
128  enum ZrtpErrorCodes {
129   MalformedPacket = 0x10,
130   CriticalSWError = 0x20,
131   UnsuppZRTPVersion = 0x30,
132   HelloCompMismatch = 0x40,
133   UnsuppHashType = 0x51,
134   UnsuppCiphertype = 0x52,
135   UnsuppPKExchange = 0x53,
136   UnsuppSRTPAuthTag = 0x54,
137   UnsuppSASScheme = 0x55,
138   NoSharedSecret = 0x56,
139   DHErrorWrongPV = 0x61,
140   DHErrorWrongHVI = 0x62,
141   SASuntrustedMiTM = 0x63,
142   ConfirmHMACWrong = 0x70,
143   NonceReused = 0x80,
144   EqualZIDHello = 0x90,
145   GoCleatNotAllowed = 0x100,
146   IgnorePacket = 0x7fffffff
147 };
148 
152  enum InfoEnrollment {
153   EnrollmentRequest,
154   EnrollmentCanceled,
155   EnrollmentFailed,
156   EnrollmentOk
157 };
158 
159 }
160 
164 #endif
GnuZrtpCodes::InfoDH1DHGenerated
DH1Part: Generated a public DH key.
Definition: ZrtpCodes.h:79
GnuZrtpCodes::DHErrorWrongPV
DH Error: bad pvi or pvr ( == 1, 0, or p-1)
Definition: ZrtpCodes.h:139
GnuZrtpCodes::NonceReused
Nonce reuse.
Definition: ZrtpCodes.h:143
GnuZrtpCodes::WarningDHShort
Hello offers an AES256 cipher but does not offer a Diffie-Helman 4096.
Definition: ZrtpCodes.h:95
GnuZrtpCodes::WarningCodes
WarningCodes
Sub-codes for Warning.
Definition: ZrtpCodes.h:92
GnuZrtpCodes::EnrollmentFailed
Enrollment process failed, no PBX secret available.
Definition: ZrtpCodes.h:155
GnuZrtpCodes::InfoSecureStateOff
No more security for this session.
Definition: ZrtpCodes.h:86
GnuZrtpCodes::SevereCommitHMACFailed
Hash HMAC check of Commit failed!
Definition: ZrtpCodes.h:108
GnuZrtpCodes::SevereProtocolError
Internal protocol error occured!
Definition: ZrtpCodes.h:112
GnuZrtpCodes::UnsuppSRTPAuthTag
SRTP auth. tag not supported.
Definition: ZrtpCodes.h:136
GnuZrtpCodes::SevereDH1HMACFailed
Hash HMAC check of DHPart1 failed!
Definition: ZrtpCodes.h:109
GnuZrtpCodes::SevereDH2HMACFailed
Hash HMAC check of DHPart2 failed!
Definition: ZrtpCodes.h:110
GnuZrtpCodes::EnrollmentRequest
Aks user to confirm or deny an Enrollemnt request.
Definition: ZrtpCodes.h:153
GnuZrtpCodes::HelloCompMismatch
Hello components mismatch.
Definition: ZrtpCodes.h:132
GnuZrtpCodes::InfoInitDH1Received
Initiator: DHPart1 received, preparing DHPart2.
Definition: ZrtpCodes.h:80
GnuZrtpCodes::WarningDHAESmismatch
Commit contains an AES256 cipher but does not offer a Diffie-Helman 4096.
Definition: ZrtpCodes.h:93
GnuZrtpCodes::InfoRespDH2Received
Responder: DHPart2 received, preparing Confirm1.
Definition: ZrtpCodes.h:81
GnuZrtpCodes::EqualZIDHello
Equal ZIDs in Hello.
Definition: ZrtpCodes.h:144
GnuZrtpCodes::MalformedPacket
Malformed packet (CRC OK, but wrong structure)
Definition: ZrtpCodes.h:129
GnuZrtpCodes::InfoHelloReceived
Hello received, preparing a Commit.
Definition: ZrtpCodes.h:76
GnuZrtpCodes::SevereNoTimer
Cannot start a timer - internal resources exhausted?
Definition: ZrtpCodes.h:113
GnuZrtpCodes::SevereHelloHMACFailed
Hash HMAC check of Hello failed!
Definition: ZrtpCodes.h:107
GnuZrtpCodes::InfoEnrollment
InfoEnrollment
Information codes for the Enrollment user callbacks.
Definition: ZrtpCodes.h:152
GnuZrtpCodes::WarningNoExpectedRSMatch
Valid retained shared secrets availabe but no matches found - must verify SAS.
Definition: ZrtpCodes.h:100
GnuZrtpCodes::InfoRespCommitReceived
Responder: Commit received, preparing DHPart1.
Definition: ZrtpCodes.h:78
GnuZrtpCodes::UnsuppSASScheme
SAS scheme not supported.
Definition: ZrtpCodes.h:137
GnuZrtpCodes::SevereTooMuchRetries
Too much retries during ZRTP negotiation - connection or peer down?
Definition: ZrtpCodes.h:114
GnuZrtpCodes::DHErrorWrongHVI
DH Error: hvi != hashed data.
Definition: ZrtpCodes.h:140
GnuZrtpCodes::ConfirmHMACWrong
Auth. Error: Bad Confirm pkt HMAC.
Definition: ZrtpCodes.h:142
GnuZrtpCodes::UnsuppHashType
Hash type not supported.
Definition: ZrtpCodes.h:133
GnuZrtpCodes::WarningCRCmismatch
Internal ZRTP packet checksum mismatch - packet dropped.
Definition: ZrtpCodes.h:97
GnuZrtpCodes::InfoCodes
InfoCodes
Sub-codes for Info.
Definition: ZrtpCodes.h:75
GnuZrtpCodes::UnsuppPKExchange
Public key exchange not supported.
Definition: ZrtpCodes.h:135
GnuZrtpCodes::CriticalSWError
Critical software error.
Definition: ZrtpCodes.h:130
GnuZrtpCodes::GoCleatNotAllowed
GoClear packet received, but not allowed.
Definition: ZrtpCodes.h:145
GnuZrtpCodes::EnrollmentOk
Enrollment process for this PBX was ok.
Definition: ZrtpCodes.h:156
GnuZrtpCodes::SevereCodes
SevereCodes
Sub-codes for Severe.
Definition: ZrtpCodes.h:106
GnuZrtpCodes::EnrollmentCanceled
User did not confirm the PBX enrollement.
Definition: ZrtpCodes.h:154
GnuZrtpCodes::InfoSecureStateOn
Entered secure state.
Definition: ZrtpCodes.h:85
GnuZrtpCodes::WarningGoClearReceived
Received a GoClear message.
Definition: ZrtpCodes.h:94
GnuZrtpCodes::NoSharedSecret
No shared secret available, DH mode required.
Definition: ZrtpCodes.h:138
GnuZrtpCodes::InfoInitConf1Received
Initiator: Confirm1 received, preparing Confirm2.
Definition: ZrtpCodes.h:82
GnuZrtpCodes::InfoRSMatchFound
At least one retained secrets matches - security OK.
Definition: ZrtpCodes.h:84
GnuZrtpCodes::WarningSRTPauthError
Dropping packet because SRTP authentication failed!
Definition: ZrtpCodes.h:98
GnuZrtpCodes::InfoCommitDHGenerated
Commit: Generated a public DH key.
Definition: ZrtpCodes.h:77
GnuZrtpCodes::WarningSRTPreplayError
Dropping packet because SRTP replay check failed!
Definition: ZrtpCodes.h:99
GnuZrtpCodes::MessageSeverity
MessageSeverity
Definition: ZrtpCodes.h:65
GnuZrtpCodes::SevereCannotSend
Cannot send data - connection or peer down?
Definition: ZrtpCodes.h:111
GnuZrtpCodes::WarningNoRSMatch
No retained shared secrets available - must verify SAS.
Definition: ZrtpCodes.h:96
GnuZrtpCodes::InfoRespConf2Received
Responder: Confirm2 received, preparing Conf2Ack.
Definition: ZrtpCodes.h:83
GnuZrtpCodes::UnsuppZRTPVersion
Unsupported ZRTP version.
Definition: ZrtpCodes.h:131
GnuZrtpCodes::SASuntrustedMiTM
Received relayed SAS from untrusted MiTM.
Definition: ZrtpCodes.h:141
GnuZrtpCodes::ZrtpErrorCodes
ZrtpErrorCodes
Error codes according to the ZRTP specification chapter 6.9.
Definition: ZrtpCodes.h:128
GnuZrtpCodes::UnsuppCiphertype
Cipher type not supported.
Definition: ZrtpCodes.h:134

Generated on Dec 21, 2017 for commoncpp2-1.8.1, ccrtp-1.7.2, libzrtpcpp-2.3.4, ccscript3-1.1.7, ccaudio2-1.0.0 and bayonne2-2.3.2 (after installation in /usr/local/) by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /