LDicomNet::SetCipherToIndexTLS

#include "ltdic.h"

L_UINT32 LDicomNet::SetCipherToIndexTLS(nIndex, cipher)

L_UINT32 nIndex;

/* index into an array */

L_CIPHERSUITE cipher;

/* ciphersuite */

Sets the ciphersuite for the specified index. This function is available in the PACS Imaging toolkits.

Parameter

Description

nIndex

Position in an array for which to set the specified ciphersuite. The ciphersuites in this array are those known by the client and should be ordered by preference.

cipher

Value that indicates the ciphersuite to set at the specified index. For a list of possible values, refer to L_CIPHERSUITE.

Returns

DICOM_SUCCESS

Success

DICOM_ERROR_PARAMETER

A parameter error occurred.

Comments

The server chooses the first ciphersuite proposed by client, which it can understand. If the client puts the ciphersuites with reduced security first, then a ciphersuite with reduced security will most likely be selected by the server.

Required DLLs and Libraries

LTDIC
LTCRY
LTTLS

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::LDicomNet, LDicomNet::GetCipherFromIndexTLS, LDicomNet::GetCiphersuiteTLS, Class Members

Topics:

Negotiating a Ciphersuite

 

General Transport Layer Secure (TLS) Information

Example

For an example, refer to LDicomNet::GetCipherFromIndexTLS.