Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS DICOM C++ Class Library Help

LDicomNet::SetIndexForMutualAuthISCL

Show in webframe

#include "ltdic.h"

L_UINT32 LDicomNet::SetIndexForMutualAuthISCL(nIndex)

L_UINT32 nIndex;

/* index */

Sets the index of the mutual authentication key to be used during the mutual authentication process. This function is available in the PACS Imaging toolkits.

Parameter

Description

nIndex

Index of the key to be used for mutual authentication. Possible values for this index are between 1 and 8, inclusive.

Returns

DICOM_SUCCESS

Success. The key in the specified location in the array was set as the key to use for mutual authentication.

DICOM_ERROR_PARAMETER

A parameter error occurred. nIndex was 0 or bigger than 8.

Comments

This function sets the actual key used for mutual authentication operations, based on an index from 1 to 8

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

Platforms

Win32, x64

See Also

Functions:

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

Topics:

Adding Security to a DICOM Connection

 

General Integrated Secure Communication Layer (ISCL) Information

Example

L_INT LDicomNet_SetIndexForMutualAuthISCLExample()
{
   L_INT nRet;
   // LMyDicomNet is derived from LDicomNet
   LMyDicomNet *pDicomNet;
   pDicomNet = new LMyDicomNet(TEXT(""), DICOM_SECURE_ISCL);
   
   nRet =pDicomNet->SetMutualAuthKeyISCL(1, 0x0123456789ABCDEF);
   if(nRet !=DICOM_SUCCESS)
      return nRet;
   // 64-bit value, in hexadecimal notation
   nRet = pDicomNet->SetIndexForMutualAuthISCL(1);
   if(nRet !=DICOM_SUCCESS)
      return nRet;
   return DICOM_SUCCESS;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.