#include "ltdic.h"
L_LTDIC_API L_UINT32 L_DicomGetPeerAuthDataISCL(hNet, pBuffer, nLength)
Gets the authentication data the peer computer sent during mutual authentication. This function is available in the PACS Imaging toolkits.
Handle to an existing DICOM Network. This is the handle returned from the L_DicomCreateNet function.
Pointer to a buffer to be updated with the authentication data of the peer computer. This buffer must be 128 bytes long to hold the longest possible authentication data.
Pointer to an integer variable. This variable contains initially the size of the pBuffer array. After this function returns, it is updated with the actual size of the peer authentication data.
Value | Meaning |
---|---|
DICOM_SUCCESS | Success. The peer authentication data were copied into pBuffer and the variable pointed to by nLength was updated with the length of the authentication data. |
DICOM_ERROR_PARAMETER | A parameter error occurred. The authentication data could not be retrieved. (pBuffer is NULL, or the value pointed to by nLength is not large enough to contain the entire peer authentication data.). Refer to Return Codes. |
If pBuffer is NULL or the value pointed to by nLength (size of pBuffer) is too small for the peer authentication data, the return value is DICOM_ERROR_PARAMETER and *nLength is updated with the required length of the peer authentication data. No other actions are performed.
The receiver of a message can only call this function, if the message is not successfully received.
Required DLLs and Libraries
Win32, x64.
L_INT DicomGetPeerAuthDataISCLExample(L_VOID)
{
// After a successful connect
HDICOMNET hNet = NULL;
L_TCHAR peerAuthData[128];
L_UINT32 n = 128;
L_INT nRet;
hNet = L_DicomCreateNetExt(MAKE_IMAGE_PATH(TEXT("")),DICOM_SECURE_ISCL, NULL);
nRet = L_DicomGetPeerAuthDataISCL(hNet, peerAuthData, &n);
if (nRet != DICOM_SUCCESS)
return nRet;
L_TCHAR strMsg[200];
wsprintf(strMsg, TEXT("Connected with the peer identified by: %s\n"), peerAuthData);
MessageBox(NULL, strMsg, TEXT(""), MB_OK);
return DICOM_SUCCESS;
};
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document