GetPeerMACISCL Example for C#
//LEADDICOMNet1 is a predefined LEADDicomNet object
private void TestGetPeerMACISCL ( )
{
string strMAC = null;
strMAC = "SHA algorithm";
if (LEADDICOMNet1.GetPeerMACISCL(LEADDICOMNet1.hNet)
== (int)
LTDNCLib.DicomMsgAuthCode.DICOM_ISCL_MAC_NONE) strMAC = "no message
authentication code";
else if (LEADDICOMNet1.GetPeerMACISCL(LEADDICOMNet1.hNet)
== (int)
LTDNCLib.DicomMsgAuthCode.DICOM_ISCL_MAC_MD5) strMAC = "MD5 algorithm";
MessageBox.Show("Sender tried to send a message with MAC " +
strMAC);
}