"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/h235auth.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.

h235auth.cxx  (h323plus-1_26_9):h235auth.cxx  (h323plus-1_27_0)
skipping to change at line 461 skipping to change at line 461
} }
} }
} }
H235Authenticator::ValidationResult H235Authenticator::ValidationResult
H235Authenticators::ValidateSignalPDU(unsigned code, H235Authenticators::ValidateSignalPDU(unsigned code,
const PASN_Array & clearTokens, const PASN_Array & clearTokens,
const PASN_Array & cryptoTokens, const PASN_Array & cryptoTokens,
const PBYTEArray & rawPDU) const const PBYTEArray & rawPDU) const
{ {
H235Authenticator::ValidationResult finalresult = H235Authenticator::e_Absent; H235Authenticator::ValidationResult finalresult = H235Authenticator::e_Absent;
for (PINDEX i = 0; i < GetSize(); i++) { for (PINDEX i = 0; i < GetSize(); i++) {
H235Authenticator & authenticator = (*this)[i]; H235Authenticator & authenticator = (*this)[i];
if (authenticator.IsSecuredSignalPDU(code, TRUE)) { if (authenticator.IsSecuredSignalPDU(code, TRUE)) {
H235Authenticator::ValidationResult result = authenticator.ValidateTokens(
H235Authenticator::ValidationResult result = authenticator.ValidateToken clearTokens, cryptoTokens, rawPDU);
s(clearTokens, cryptoTokens, rawPDU); switch (result) {
switch (result) { case H235Authenticator::e_OK :
case H235Authenticator::e_OK : PTRACE(4, "H235EP\tAuthenticator " << authenticator << " succeeded");
PTRACE(4, "H235EP\tAuthenticator " << authenticator << " succeeded finalresult = result;
"); break;
finalresult = result;
break; case H235Authenticator::e_Absent :
PTRACE(4, "H235EP\tAuthenticator " << authenticator << " absent from P
case H235Authenticator::e_Absent : DU");
PTRACE(4, "H235EP\tAuthenticator " << authenticator << " absent fr authenticator.Disable();
om PDU");
authenticator.Disable();
#ifdef H323_H235 #ifdef H323_H235
if (authenticator.GetApplication() == H235Authenticator::MediaEncr if (authenticator.GetApplication() == H235Authenticator::MediaEncrypti
yption) on)
return (H235Authenticators::GetEncryptionPolicy() < 2) ? H235A return (H235Authenticators::GetEncryptionPolicy() < 2) ? H235Authent
uthenticator::e_Absent : H235Authenticator::e_Failed; icator::e_Absent : H235Authenticator::e_Failed;
#endif #endif
break; break;
case H235Authenticator::e_Disabled : case H235Authenticator::e_Disabled :
PTRACE(4, "H235EP\tAuthenticator " << authenticator << " disabled" PTRACE(4, "H235EP\tAuthenticator " << authenticator << " disabled");
); break;
break;
default : // Various other failure modes
default : // Various other failure modes PTRACE(4, "H235EP\tAuthenticator " << authenticator << " failed: " <
PTRACE(4, "H235EP\tAuthenticator " << authenticator << " failed: " < (int)result);
<< (int)result); if (finalresult != H235Authenticator::e_OK)
if (finalresult != H235Authenticator::e_OK) finalresult = result;
finalresult = result; break;
break; }
}
} else { } else {
authenticator.Disable(); authenticator.Disable();
} }
} // for
}
return finalresult; return finalresult;
} }
#ifdef H323_H235 #ifdef H323_H235
PStringArray GetIdentifiers(const PASN_Array & clearTokens, const PASN_Array & c ryptoTokens) PStringArray GetIdentifiers(const PASN_Array & clearTokens, const PASN_Array & c ryptoTokens)
{ {
PStringArray ids; PStringArray ids;
for (PINDEX i = 0; i < clearTokens.GetSize(); i++) { for (PINDEX i = 0; i < clearTokens.GetSize(); i++) {
 End of changes. 6 change blocks. 
34 lines changed or deleted 29 lines changed or added

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