"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/h235/h2356.cxx" between
h323plus-1_26_9.tar.gz and h323plus-1_27_0.tar.gz

About: H.323 Plus offers libraries for voice (VoIP) and videoconferencing using H.323.

h2356.cxx  (h323plus-1_26_9):h2356.cxx  (h323plus-1_27_0)
skipping to change at line 86 skipping to change at line 86
return true; return true;
else else
return false; return false;
} }
} }
return false; return false;
} }
void LoadH235_DHMap(H235_DHMap & dhmap, H235_DHMap & dhcache, H235Authenticators ::DH_DataList & customData, const PString & filePath = PString(), PINDEX cipherl ength = P_MAX_INDEX, PINDEX maxTokenLength = 1024) void LoadH235_DHMap(H235_DHMap & dhmap, H235_DHMap & dhcache, H235Authenticators ::DH_DataList & customData, const PString & filePath = PString(), PINDEX cipherl ength = P_MAX_INDEX, PINDEX maxTokenLength = 1024)
{ {
if (dhcache.size() > 0) { if (!dhcache.empty()) {
H235_DHMap::iterator i = dhcache.begin(); H235_DHMap::iterator i = dhcache.begin();
while (i != dhcache.end()) { while (i != dhcache.end()) {
if (i->second) if (i->second)
dhmap.insert(pair<PString, H235_DiffieHellman*>(i->first, (H235_ DiffieHellman*)i->second->Clone())); dhmap.insert(pair<PString, H235_DiffieHellman*>(i->first, (H235_ DiffieHellman*)i->second->Clone()));
else else
dhmap.insert(pair<PString, H235_DiffieHellman*>(i->first, (H235_ DiffieHellman*)NULL)); dhmap.insert(pair<PString, H235_DiffieHellman*>(i->first, (H235_ DiffieHellman*)NULL));
++i; ++i;
} }
return; return;
} }
// Load from memory vendor supplied keys // Load from memory vendor supplied keys
if (customData.size() > 0) { if (!customData.empty()) {
H235Authenticators::DH_DataList::iterator r; H235Authenticators::DH_DataList::iterator r;
for (r = customData.begin(); r != customData.end(); ++r) { for (r = customData.begin(); r != customData.end(); ++r) {
if (IsSupportedOID(r->m_OID, cipherlength)) { if (IsSupportedOID(r->m_OID, cipherlength)) {
dhmap.insert(pair<PString, H235_DiffieHellman*>(r->m_OID, dhmap.insert(pair<PString, H235_DiffieHellman*>(r->m_OID,
new H235_DiffieHellman(r->m_pData.GetPointer(), r->m_pData.G etSize(), new H235_DiffieHellman(r->m_pData.GetPointer(), r->m_pData.G etSize(),
r->m_gData, r->m_gData.GetSize(), true))); r->m_gData, r->m_gData.GetSize(), true)));
PTRACE(6, "H2356\tMemory KeyPair " << r->m_OID << " loaded."); PTRACE(6, "H2356\tMemory KeyPair " << r->m_OID << " loaded.");
} else { } else {
PTRACE(6, "H2356\tMemory KeyPair " << r->m_OID << " ignored."); PTRACE(6, "H2356\tMemory KeyPair " << r->m_OID << " ignored.");
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)