21#define RESIPROCATE_SUBSYSTEM Subsystem::REPRO
23const resip::Data TlsPeerIdentityStore::SEPARATOR(
",");
41 const std::set<resip::Data>& identities )
const
48 const Data& authorizedIdentity)
68 Key newkey =
buildKey(peerName, authorizedIdentity);
71 if ( newkey != originalKey )
93 Data ret = peerName +
Data(SEPARATOR) + authorizedIdentity;
103 pb.
data(peerName, start);
106 pb.
data(authorizedIdentity, anchor);
resip::Data authorizedIdentity
virtual bool addTlsPeerIdentity(const Key &key, const TlsPeerIdentityRecord &rec)
virtual Key nextTlsPeerIdentityKey()
virtual void eraseTlsPeerIdentity(const Key &key)
virtual bool isAuthorized(const std::set< resip::Data > &peerNames, const std::set< resip::Data > &identities) const
virtual Key firstTlsPeerIdentityKey()
virtual TlsPeerIdentityRecord getTlsPeerIdentity(const Key &key) const
bool updateTlsPeerIdentity(const Key &originalKey, const resip::Data &peerName, const resip::Data &authorizedIdentity)
bool addTlsPeerIdentity(const resip::Data &peerName, const resip::Data &authorizedIdentity)
TlsPeerIdentityStore(AbstractDb &db)
static Key buildKey(const resip::Data &peerName, const resip::Data &authorizedIdentity)
bool isAuthorized(const std::set< resip::Data > &peerNames, const std::set< resip::Data > &identities) const
void eraseTlsPeerIdentity(const Key &key)
virtual ~TlsPeerIdentityStore()
static void getTlsPeerIdentityFromKey(const AbstractDb::Key &key, resip::Data &peerName, resip::Data &authorizedIdentity)
AbstractDb::TlsPeerIdentityRecord getTlsPeerIdentityInfo(const Key &key) const
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Provides string-parsing functionality with protection from buffer overflow.
CurrentPosition skipToEnd()
CurrentPosition position() const
CurrentPosition skipToOneOf(const char *cs)
CurrentPosition skipChar()
void data(Data &data, const char *start) const
make the passed in data share memory with the buffer (uses Data::Share)
This Class is used to implement a primitive form of RPC using loose XML formatting.
dcm! – add UnusedChecking(_enum) below;