MCPcopy Create free account
hub / github.com/CommE2E/comm / hasSessionFor

Method hasSessionFor

native/cpp/CommonCpp/CryptoTools/CryptoModule.cpp:261–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261bool CryptoModule::hasSessionFor(const std::string &targetDeviceId) {
262 return (this->sessions.find(targetDeviceId) != this->sessions.end());
263}
264
265std::shared_ptr<Session>
266CryptoModule::getSessionByDeviceId(const std::string &deviceId) {

Callers 5

encryptMethod · 0.95
decryptMethod · 0.95

Calls 1

endMethod · 0.80

Tested by

no test coverage detected