LDicomNet::SetDefaultEncryptionISCL
#include "ltdic.h"
L_UINT32 LDicomNet::SetDefaultEncryptionISCL(nEncryptionMode)
L_UINT32 nEncryptionMode; |
/* encryption mode */ |
Sets the encryption mode used by the ISCL operations. This function is available in the Medical Suite toolkits.
Parameter |
Description |
|
nEncryptionMode |
Flag that specifies the encryption mode. Possible values are: |
|
|
Value |
Meaning |
|
DICOM_ISCL_ENCRYPT_NONE |
The data is transmitted without encryption. |
|
DICOM_ISCL_ENCRYPT_DESCBC |
The data is transmitted encrypted using the DES algorithm in cipher block chaining mode. |
Returns
DICOM_SUCCESS |
Success |
DICOM_ERROR_PARAMETER |
A parameter error occurred. The encryption mode will be set to DICOM_ISCL_ENCRYPT_NONE. |
Comments
If an incorrect value is passed for the nEncryptionMode parameter, the encryption mode is set to DICOM_ISCL_ENCRYPT_NONE.
This function may be called after an LDicomNet object is created, regardless of whether a connection has been established.
Required DLLs and Libraries
LTDIC For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
See Also
Example
{
// LMyDicomNet is a class derived from LDicomNet
int nRet;
LMyDicomNet *pDicomNet;
pDicomNet = new LMyDicomNet("", DICOM_SECURE_ISCL);
nRet = pDicomNet->StartUp();
if (nRet == DICOM_SUCCESS)
AfxMessageBox("StartUp() Successful");
else
AfxMessageBox("StartUp() Failed");
//connect to a server
nRet = m_pDicomNet->Connect(NULL, 0, "127.0.0.1",2761);
if(nRet != DICOM_SUCCESS)
AfxMessageBox("Connect() failed");
else
AfxMessageBox("Connect() successful");
pDicomNet->SetDefaultEncryptionISCL(DICOM_ISCL_ENCRYPT_DESCBC);
}