Sets the current message authentication code. This function is available in the Medical Suite toolkits.
#include "ltdic.h"
L_LTDIC_API L_UINT32 L_DicomSetDefaultSigningISCL(hNet, SignMode)
Handle to an existing DICOM Network. This is the handle returned from the L_DicomCreateNet function.
Flag that indicates the type of message authentication code to be used. Possible values are:
Value | Meaning |
---|---|
DICOM_ISCL_MAC_NONE | [0x00000000] No message authentication code will be used. |
DICOM_ISCL_MAC_MD5 | [0x00001441] A 128 bit MD5 message authentication code is transmitted with the message. |
DICOM_ISCL_MAC_DESMAC | [0x00004001] A 64 bit DESMAC authentication code is transmitted with the message. |
Value | Meaning |
---|---|
DICOM_SUCCESS | The function was successful. |
DICOM_ERROR_PARAMETER | A parameter error occurred. The message authentication code will be of type DICOM_ISCL_MAC_MD5. Refer to Return Codes. |
The message authentication code is encrypted using the current encryption mode before being sent and decrypted after being received. The current encryption mode is set using the L_DicomSetDefaultEncryptionISCL function.
The encryption mode and the message authentication code type must be the same for both the sender and the receiver.
Win32, x64.
L_INT DicomSetDefaultSigningISCLExample(L_VOID)
{
L_INT nRet;
HDICOMNET hNet = NULL;
nRet = L_DicomStartUp();
if (nRet != DICOM_SUCCESS)
return nRet;
hNet = L_DicomCreateNet (TEXT(""),DICOM_SECURE_ISCL);
// other initialisations
nRet = L_DicomSetDefaultSigningISCL(hNet, DICOM_ISCL_MAC_MD5);
L_DicomShutDown();
return nRet;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document