LDicomNet::SetClientCertificateTLS

Summary

Sets a certificate for the client. This function is available in the Medical Imaging Suite toolkits.

Syntax

#include "ltdic.h"

L_UINT32 LDicomNet::SetClientCertificateTLS(pszPathToCertificate, certType, pszPathToKeyFile);

Parameters

L_TCHAR *pszPathToCertificate

Character string that contains the path to the file that contains the certificate.

L_UINT32 certType

Flag that indicates whether the certificate is binary or text. Possible values are:

Value Meaning
L_TLS_FILETYPE_PEM Text certificate
L_TLS_FILETYPE_ASN1 Binary certificate

L_TCHAR *pszPathToKeyFile

Character string that contains the path to the file containing the private key. This parameter is used if the private key is available in raw mode.

Returns

Value Meaning
DICOM_SUCCESS Success
<>DICOM_SUCCESS An error occurred. Refer to Return Codes.

Comments

The usual sizes for an RSA key is 512 and 1024 bits. There is a limitation for import in Europe a RSA key must be at least 768 bits long. There are no known export restrictions.

Required DLLs and Libraries

Platforms

Win32, x64

See Also

Functions

Topics

Example

For an example, refer to LDicomNet::Initialize.

Help Version 23.0.2024.7.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.