GetPeerMACISCL Example for C++ 6.0 and later
{
CString strMAC("SHA algorithm");
if(m_pLEADDicomNet->GetPeerMACISCL (m_pLEADDicomNet->GethNet ()) == DICOM_ISCL_MAC_NONE)
strMAC = "no message authentication code";
else if(m_pLEADDicomNet->GetPeerMACISCL (m_pLEADDicomNet->GethNet ()) == DICOM_ISCL_MAC_MD5)
strMAC = "MD5 algorithm";
AfxMessageBox("Sender tried to send a message with MAC " + strMAC);
}