LDicomNet::GetCipherFromIndexTLS

#include "ltdic.h"

L_CIPHERSUITE LDicomNet::GetCipherFromIndexTLS(nIndex);

L_UINT32 nIndex;

/* index of the ciphersuite */

Returns a value that represents the ciphersuite present at the specified index. This function is available in the Medical Suite toolkits.

Parameter

Description

nIndex

Index of the ciphersuite to get. This is a zero-based index into an 8-position array that contains available ciphersuites, listed by preference.

Returns

<>0

A value that indicates the ciphersuite agreed upon during the TLS protocol.

0

No cipher suite has been agreed upon yet.

Comments

More ciphersuites from the TLS standard can be added. Currently however, LEADTOOLS only supports those ciphersuites listed in the L_CIPHERSUITE enumerated type.

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::SetCipherToIndexTLS, LDicomNet::GetCiphersuiteTLS

Topics:

Negotiating a Ciphersuite

 

General Transport Layer Secure (TLS) Information

Example

{
   LDicomNet *pDicomNet;
   pDicomNet = new LDicomNet("", DICOM_SECURE_TLS);
   pDicomNet->SetCipherToIndexTLS(0, TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA);
   L_CIPHERSUITE test;
   test = pDicomNet->GetCipherFromIndexTLS(0);
}