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::GetCipherFromIndexTLS

Show in webframe

#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 PACS Imaging 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

Platforms

Win32, x64

See Also

Functions:

LDicomNet::LDicomNet, LDicomNet::SetCipherToIndexTLS, LDicomNet::GetCiphersuiteTLS

Topics:

Negotiating a Ciphersuite

 

General Transport Layer Secure (TLS) Information

Example

L_INT LDicomNet_GetCipherFromIndexTLSExample()
{
   L_INT       nRet;
   LDicomNet*  pDicomNet;
   pDicomNet = new LDicomNet(TEXT(""), DICOM_SECURE_TLS);
   nRet = pDicomNet->SetCipherToIndexTLS(0, TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA);
   if(nRet != DICOM_SUCCESS)
      return nRet;
   L_CIPHERSUITE test;
   test = pDicomNet->GetCipherFromIndexTLS(0);
   return DICOM_SUCCESS;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.