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

Bayonne2 / Common C++ 2 Framework
ZrtpUserCallback.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2006-2008 Werner Dittmann
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17 
18 #ifndef _ZRTPUSERCALLBACK_H_
19 #define _ZRTPUSERCALLBACK_H_
20 
29 #include <stdint.h>
30 #include <string>
31 
32 #include <libzrtpcpp/ZrtpCodes.h>
33 
54  class __EXPORT ZrtpUserCallback {
55 
56  public:
57 
59   ZrtpUserCallback() {}
60 
61   virtual ~ZrtpUserCallback() {};
62 
72   virtual void secureOn(std::string cipher) {
73  return;
74  }
82   virtual void secureOff() {
83  return;
84  }
85 
100   virtual void showSAS(std::string sas, bool verified) {
101  return;
102  }
103 
111   virtual void confirmGoClear() {
112  return;
113  }
114 
129   virtual void showMessage(GnuZrtpCodes::MessageSeverity sev, int32_t subCode) {
130  return;
131  }
132 
145   virtual void zrtpNegotiationFailed(GnuZrtpCodes::MessageSeverity severity,
146  int32_t subCode) {
147  return;
148  }
149 
157   virtual void zrtpNotSuppOther() {
158  return;
159  }
160 
172   virtual void zrtpAskEnrollment(GnuZrtpCodes::InfoEnrollment info) {
173  return;
174  }
175 
187   virtual void zrtpInformEnrollment(GnuZrtpCodes::InfoEnrollment info) {
188  return;
189  }
190 
206   virtual void signSAS(uint8_t* sasHash) {
207  return;
208  }
209 
229   virtual bool checkSASSignature(uint8_t* sasHash) {
230  return true;
231  }
232 };
233 
234 #endif
ZrtpUserCallback::showSAS
virtual void showSAS(std::string sas, bool verified)
Show the Short Authentication String (SAS) on user interface.
Definition: ZrtpUserCallback.h:100
ZrtpCodes.h
The ZRTP info, warning, and error codes.
info
__EXPORT AppLog & info(AppLog &sl)
Manipulator for info level.
Definition: applog.h:581
ZrtpUserCallback::zrtpNotSuppOther
virtual void zrtpNotSuppOther()
ZRTPQueue calls this method if the other side does not support ZRTP.
Definition: ZrtpUserCallback.h:157
ZrtpUserCallback::signSAS
virtual void signSAS(uint8_t *sasHash)
ZRTPQueue calls this method to request a SAS signature.
Definition: ZrtpUserCallback.h:206
ZrtpUserCallback::zrtpNegotiationFailed
virtual void zrtpNegotiationFailed(GnuZrtpCodes::MessageSeverity severity, int32_t subCode)
ZRTPQueue calls this if the negotiation failed.
Definition: ZrtpUserCallback.h:145
ZrtpUserCallback::showMessage
virtual void showMessage(GnuZrtpCodes::MessageSeverity sev, int32_t subCode)
Show some information to user.
Definition: ZrtpUserCallback.h:129
GnuZrtpCodes::InfoEnrollment
InfoEnrollment
Information codes for the Enrollment user callbacks.
Definition: ZrtpCodes.h:152
ZrtpUserCallback::checkSASSignature
virtual bool checkSASSignature(uint8_t *sasHash)
ZRTPQueue calls this method to request a SAS signature check.
Definition: ZrtpUserCallback.h:229
ZrtpUserCallback
Application callback methods.
Definition: ZrtpUserCallback.h:54
ZrtpUserCallback::confirmGoClear
virtual void confirmGoClear()
Inform the user that ZRTP received "go clear" message from its peer.
Definition: ZrtpUserCallback.h:111
ZrtpUserCallback::zrtpAskEnrollment
virtual void zrtpAskEnrollment(GnuZrtpCodes::InfoEnrollment info)
ZRTPQueue calls this method to inform about a PBX enrollment request.
Definition: ZrtpUserCallback.h:172
__EXPORT
#define __EXPORT
Definition: audio2.h:51
ZrtpUserCallback::~ZrtpUserCallback
virtual ~ZrtpUserCallback()
Definition: ZrtpUserCallback.h:61
ZrtpUserCallback::secureOff
virtual void secureOff()
Inform user interface that security is not active any more.
Definition: ZrtpUserCallback.h:82
GnuZrtpCodes::MessageSeverity
MessageSeverity
Definition: ZrtpCodes.h:65
ZrtpUserCallback::zrtpInformEnrollment
virtual void zrtpInformEnrollment(GnuZrtpCodes::InfoEnrollment info)
ZRTPQueue calls this method to inform about PBX enrollment result.
Definition: ZrtpUserCallback.h:187
ZrtpUserCallback::ZrtpUserCallback
ZrtpUserCallback()
Create the stadard user callback class.
Definition: ZrtpUserCallback.h:59
ZrtpUserCallback::secureOn
virtual void secureOn(std::string cipher)
Inform user interface that security is active now.
Definition: ZrtpUserCallback.h:72

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 によって変換されたページ (->オリジナル) /