L_DicomGetCiphersuiteTLS

#include "ltdic.h"

L_LTDIC_API L_CIPHERSUITE L_DicomGetCiphersuiteTLS(hNet)

HDICOMNET hNet;

/* handle to an existing DICOM Network */

Returns the cipher suite agreed upon during the TLS protocol.

Parameter

Description

hNet

Handle to an existing DICOM Network. This is the handle returned from the L_DicomCreateNet function.

Returns

<>0

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

DICOM_SUCCESS

No cipher suite has been agreed upon yet.

Comments

The ciphersuite is chosen by the server as the first client proposed ciphersuite that the server can understand.

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:

L_DicomGetCipherFromIndexTLS, L_DicomGetCiphersuiteTLS

Topics:

DICOM Net: TLS Protocol

 

Adding TLS Security to a DICOM Connection

 

Negotiating a Ciphersuite

 

General Transport Layer Secure (TLS) Information

Example

// in the OnSecureLinkReady callback:
L_VOID EXT_CALLBACK myOnSecureLinkready(HDICOMNET hNet, L_UINT32 nError)
{
   L_CIPHERSUITE test;
   if(nError != DICOM_SUCCESS)
   {
      MessageBox(NULL, TEXT("Error on setting secure link connection"), TEXT(""), MB_OK);
      return;
   }
   test = L_DicomGetCiphersuiteTLS (hNet);
   if(test == TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA)
      MessageBox(NULL, TEXT("Ciphersuite is TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA"),TEXT( ""), MB_OK);
}