LDicomNet::SetMutualAuthAlgISCL

#include "ltdic.h"

L_UINT32 LDicomNet::SetMutualAuthAlgISCL(nmutualAuthMode)

L_UINT32 nmutualAuthMode;

/* mutual authentication mode */

Sets the mutual authentication mode. Currently only DICOM_ISCL_MUTUAL_AUTH_3P4W, the three-pass-four-way mutual authentication, is described in the standard. This function is available in the Medical Suite toolkits.

Parameter

Description

nMutualAuthMode

Flag that indicates the mutual authentication mode to use. Currently, only DICOM_ISCL_MUTUAL_AUTH_3P4W is supported.

Returns

DICOM_SUCCESS

Success. The mutual authentication mode was successfully set.

DICOM_ERROR_PARAMETER

A parameter error occurred. The mutual authentication mode will be DICOM_ISCL_MUTUAL_AUTH_3P4W.

Comments

The implicit value for the mutual authentication protocol is set at creation to DICOM_ISCL_MUTUAL_AUTH_3P4W.

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

Functions:

LDicomNet::SetDefaultSigningISCL, LDicomNet::SetDefaultEncryptionISCL, LDicomNet::SetAuthDataISCL, LDicomNet::SetMaxCommBlockLengthISCL, LDicomNet::SetMaxMessageLengthISCL, LDicomNet::SetMutualAuthKeyISCL, LDicomNet::SetIndexForMutualAuthISCL, LDicomNet::SetEncryptKeyISCL, LDicomNet::SetIndexForEncryptISCL, Class Members

Topics:

Adding Security to a DICOM Connection

 

General Integrated Secure Communication Layer (ISCL) Information

Example

L_INT LDicomNet_SetMutualAuthAlgISCLExample()
{
   L_INT nRet;
   // LMyDicomNet is derived from LDicomNet
   LMyDicomNet *pDicomNet;
   pDicomNet = new LMyDicomNet(TEXT(""), DICOM_SECURE_ISCL);
   nRet =pDicomNet->SetMutualAuthAlgISCL(DICOM_ISCL_MUTUAL_AUTH_3P4W);
   if(nRet !=DICOM_SUCCESS)
      return nRet;
   return DICOM_SUCCESS;
}