Pdftools SDK
Loading...
Searching...
No Matches
PdfTools_PdfToolsCryptoProviders.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * File: PdfTools_PdfToolsCryptoProviders.h
4 *
5 * Description: Sub Header file for Pdftools SDK
6 *
7 * Author: PDF Tools AG
8 *
9 * Copyright: Copyright (C) 2023 - 2024 PDF Tools AG, Switzerland
10 * All rights reserved.
11 *
12 *****************************************************************************/
13
14#ifndef PDFTOOLS_PDFTOOLSCRYPTOPROVIDERS_H__
15#define PDFTOOLS_PDFTOOLSCRYPTOPROVIDERS_H__
16
17#ifndef PDFTOOLS_CALL
18#if defined(WIN32)
19#define PDFTOOLS_CALL __stdcall
20#else
21#define PDFTOOLS_CALL
22#endif
23#endif
24
25#include "PdfTools_Types.h"
27
28#ifdef __cplusplus
29extern "C"
30{
31#endif
32
33#ifdef _UNICODE
34#define PdfToolsCryptoProviders_Certificate_GetName PdfToolsCryptoProviders_Certificate_GetNameW
35
36#define PdfToolsCryptoProviders_Certificate_GetIssuer PdfToolsCryptoProviders_Certificate_GetIssuerW
37
38#define PdfToolsCryptoProviders_Certificate_GetFingerprint PdfToolsCryptoProviders_Certificate_GetFingerprintW
39
40#else
41#define PdfToolsCryptoProviders_Certificate_GetName PdfToolsCryptoProviders_Certificate_GetNameA
42
43#define PdfToolsCryptoProviders_Certificate_GetIssuer PdfToolsCryptoProviders_Certificate_GetIssuerA
44
45#define PdfToolsCryptoProviders_Certificate_GetFingerprint PdfToolsCryptoProviders_Certificate_GetFingerprintA
46
47#endif
48
75/******************************************************************************
76 * Certificate
77 *****************************************************************************/
100 TPdfToolsCryptoProviders_Certificate* pCertificate, char* pBuffer, size_t nBufferSize);
123 TPdfToolsCryptoProviders_Certificate* pCertificate, WCHAR* pBuffer, size_t nBufferSize);
146 TPdfToolsCryptoProviders_Certificate* pCertificate, char* pBuffer, size_t nBufferSize);
169 TPdfToolsCryptoProviders_Certificate* pCertificate, WCHAR* pBuffer, size_t nBufferSize);
192 TPdfToolsCryptoProviders_Certificate* pCertificate, char* pBuffer, size_t nBufferSize);
215 TPdfToolsCryptoProviders_Certificate* pCertificate, WCHAR* pBuffer, size_t nBufferSize);
234
235/******************************************************************************
236 * CertificateList
237 *****************************************************************************/
273
274#ifdef __cplusplus
275}
276#endif
277
278#endif /* PDFTOOLS_PDFTOOLSCRYPTOPROVIDERS_H__ */
PDFTOOLS_EXPORT TPdfToolsCryptoProviders_ProviderType PDFTOOLS_CALL PdfToolsCryptoProviders_Provider_GetType(TPdfToolsCryptoProviders_Provider *pProvider)
Get actual derived type of base type TPdfToolsCryptoProviders_Provider.
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetHasPrivateKey(TPdfToolsCryptoProviders_Certificate *pCertificate)
Whether the cryptographic provider has a private key for the certificate. Note that whether the priva...
PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsCryptoProviders_CertificateList_GetCount(TPdfToolsCryptoProviders_CertificateList *pCertificateList)
Get the number of elements in the list.
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsCryptoProviders_Provider_Close(TPdfToolsCryptoProviders_Provider *pObject)
Close object.
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetNameW(TPdfToolsCryptoProviders_Certificate *pCertificate, WCHAR *pBuffer, size_t nBufferSize)
The name (subject) of the certificate The common name (CN) of the person or authority who owns the ce...
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetFingerprintW(TPdfToolsCryptoProviders_Certificate *pCertificate, WCHAR *pBuffer, size_t nBufferSize)
The certificate's fingerprint The hex string representation of the certificate’s SHA-1 digest.
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetNameA(TPdfToolsCryptoProviders_Certificate *pCertificate, char *pBuffer, size_t nBufferSize)
The name (subject) of the certificate The common name (CN) of the person or authority who owns the ce...
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetIssuerW(TPdfToolsCryptoProviders_Certificate *pCertificate, WCHAR *pBuffer, size_t nBufferSize)
The name of the certificate's issuer (CA) The common name (CN) of the certificate authority (CA) who ...
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetFingerprintA(TPdfToolsCryptoProviders_Certificate *pCertificate, char *pBuffer, size_t nBufferSize)
The certificate's fingerprint The hex string representation of the certificate’s SHA-1 digest.
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsCryptoProviders_Certificate_GetIssuerA(TPdfToolsCryptoProviders_Certificate *pCertificate, char *pBuffer, size_t nBufferSize)
The name of the certificate's issuer (CA) The common name (CN) of the certificate authority (CA) who ...
#define PDFTOOLS_CALL
Definition PdfTools_PdfToolsCryptoProviders.h:21
PDFTOOLS_EXPORT TPdfToolsCryptoProviders_Certificate *PDFTOOLS_CALL PdfToolsCryptoProviders_CertificateList_Get(TPdfToolsCryptoProviders_CertificateList *pCertificateList, int iIndex)
Returns the element at the specified position in the given list.
#define PDFTOOLS_EXPORT
Definition PdfTools_Platform.h:138
unsigned short WCHAR
Definition PdfTools_Platform.h:90
struct TPdfToolsCryptoProviders_Provider TPdfToolsCryptoProviders_Provider
Base class for cryptographic providers.
Definition PdfTools_Types.h:2866
struct TPdfToolsCryptoProviders_Certificate TPdfToolsCryptoProviders_Certificate
A X.509 certificate.
Definition PdfTools_Types.h:2870
struct TPdfToolsCryptoProviders_CertificateList TPdfToolsCryptoProviders_CertificateList
Definition PdfTools_Types.h:2873
#define BOOL
Definition PdfTools_Types.h:18
TPdfToolsCryptoProviders_ProviderType
Type and subtype enumeration of TPdfToolsCryptoProviders_Provider.
Definition PdfTools_Types.h:2055