Available in LEADTOOLS Medical Imaging toolkits. |
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 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 For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
Win32, x64
See Also
Functions: |
LDicomNet::LDicomNet, LDicomNet::SetCipherToIndexTLS, LDicomNet::GetCiphersuiteTLS |
Topics: |
|
|
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; }