|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
#include <TlsPeerAuthManager.hxx>
Public Types | |
| enum | Result { Authorized , Skipped , Rejected , RequestedInfo } |
Public Types inherited from resip::DumFeature | |
| enum | ProcessingResultMask { EventDoneBit = 1 << 0 , EventTakenBit = 1 << 1 , FeatureDoneBit = 1 << 2 , ChainDoneBit = 1 << 3 } |
| enum | ProcessingResult { EventTaken = EventTakenBit , FeatureDone = FeatureDoneBit , FeatureDoneAndEventDone = FeatureDoneBit | EventDoneBit , FeatureDoneAndEventTaken = FeatureDoneBit | EventTakenBit , ChainDoneAndEventDone = ChainDoneBit | EventDoneBit , ChainDoneAndEventTaken = ChainDoneBit | EventTakenBit } |
Public Member Functions | |
| TlsPeerAuthManager (DialogUsageManager &dum, TargetCommand::Target &target, const std::set< Data > &trustedPeers, bool thirdPartyRequiresCertificate=true) | |
| TlsPeerAuthManager (DialogUsageManager &dum, TargetCommand::Target &target, const std::set< Data > &trustedPeers, bool thirdPartyRequiresCertificate, CommonNameMappings &commonNameMappings) | |
| virtual | ~TlsPeerAuthManager () |
| virtual ProcessingResult | process (Message *msg) |
Public Member Functions inherited from resip::DumFeature | |
| DumFeature (DialogUsageManager &dum, TargetCommand::Target &target) | |
| virtual | ~DumFeature () |
| virtual void | postCommand (std::unique_ptr< Message > message) |
Protected Member Functions | |
| virtual Result | handle (SipMessage *sipMsg) |
| virtual SipMessage * | handleTlsPeerIdentityInfo (TlsPeerIdentityInfoMessage *tpiInfo) |
| virtual AsyncBool | authorizedForThisIdentity (const resip::Data &transactionId, const std::list< resip::Data > &peerNames, resip::Uri &fromUri) |
| should return true if the passed in user is authorized for the provided uri | |
| virtual bool | requiresAuthorization (const SipMessage &msg) |
| should return true if the request must be challenged The default is to challenge all requests - override this class to change this beviour | |
| virtual AsyncBool | asyncLookup (TlsPeerIdentityInfoMessage *info) |
| virtual bool | isTrustedSource (const SipMessage &msg) |
| should return true if the request should be trusted based on the source/transport default implementation uses mTrustedPeers | |
Additional Inherited Members | |
Protected Attributes inherited from resip::DumFeature | |
| DialogUsageManager & | mDum |
| TargetCommand::Target & | mTarget |
Definition at line 19 of file TlsPeerAuthManager.hxx.
| Enumerator | |
|---|---|
| Authorized | |
| Skipped | |
| Rejected | |
| RequestedInfo | |
Definition at line 22 of file TlsPeerAuthManager.hxx.
| TlsPeerAuthManager::TlsPeerAuthManager | ( | DialogUsageManager & | dum, |
| TargetCommand::Target & | target, | ||
| const std::set< Data > & | trustedPeers, | ||
| bool | thirdPartyRequiresCertificate = true |
||
| ) |
Definition at line 17 of file TlsPeerAuthManager.cxx.
| TlsPeerAuthManager::TlsPeerAuthManager | ( | DialogUsageManager & | dum, |
| TargetCommand::Target & | target, | ||
| const std::set< Data > & | trustedPeers, | ||
| bool | thirdPartyRequiresCertificate, | ||
| CommonNameMappings & | commonNameMappings | ||
| ) |
Definition at line 24 of file TlsPeerAuthManager.cxx.
|
virtual |
Definition at line 32 of file TlsPeerAuthManager.cxx.
|
protectedvirtual |
Reimplemented in repro::ReproTlsPeerAuthManager.
Definition at line 297 of file TlsPeerAuthManager.cxx.
|
protectedvirtual |
should return true if the passed in user is authorized for the provided uri
Definition at line 82 of file TlsPeerAuthManager.cxx.
|
protectedvirtual |
Definition at line 144 of file TlsPeerAuthManager.cxx.
|
protectedvirtual |
Definition at line 273 of file TlsPeerAuthManager.cxx.
|
protectedvirtual |
should return true if the request should be trusted based on the source/transport default implementation uses mTrustedPeers
Reimplemented in repro::ReproTlsPeerAuthManager.
Definition at line 312 of file TlsPeerAuthManager.cxx.
|
virtual |
dcm! – unnecessary happens in handle
Implements resip::DumFeature.
Definition at line 42 of file TlsPeerAuthManager.cxx.
|
protectedvirtual |
should return true if the request must be challenged The default is to challenge all requests - override this class to change this beviour
Definition at line 304 of file TlsPeerAuthManager.cxx.