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 * Notice: By downloading and using this artifact, you accept PDF Tools AG's
13 * [license agreement](https://www.pdf-tools.com/license-agreement/),
14 * [privacy policy](https://www.pdf-tools.com/privacy-policy/),
15 * and allow PDF Tools AG to track your usage data.
16 *
17 *****************************************************************************/
18
19#ifndef PDFTOOLS_PDFTOOLSCRYPTOPROVIDERS_H__
20#define PDFTOOLS_PDFTOOLSCRYPTOPROVIDERS_H__
21
22#ifndef PDFTOOLS_CALL
23#if defined(WIN32)
24#define PDFTOOLS_CALL __stdcall
25#else
26#define PDFTOOLS_CALL
27#endif
28#endif
29
30#include "PdfTools_Types.h"
32
33#ifdef __cplusplus
34extern "C"
35{
36#endif
37
38#ifdef _UNICODE
39#define PdfToolsCryptoProviders_Certificate_GetName PdfToolsCryptoProviders_Certificate_GetNameW
40
41#define PdfToolsCryptoProviders_Certificate_GetSubject PdfToolsCryptoProviders_Certificate_GetSubjectW
42
43#define PdfToolsCryptoProviders_Certificate_GetIssuer PdfToolsCryptoProviders_Certificate_GetIssuerW
44
45#define PdfToolsCryptoProviders_Certificate_GetFingerprint PdfToolsCryptoProviders_Certificate_GetFingerprintW
46
47#else
48#define PdfToolsCryptoProviders_Certificate_GetName PdfToolsCryptoProviders_Certificate_GetNameA
49
50#define PdfToolsCryptoProviders_Certificate_GetSubject PdfToolsCryptoProviders_Certificate_GetSubjectA
51
52#define PdfToolsCryptoProviders_Certificate_GetIssuer PdfToolsCryptoProviders_Certificate_GetIssuerA
53
54#define PdfToolsCryptoProviders_Certificate_GetFingerprint PdfToolsCryptoProviders_Certificate_GetFingerprintA
55
56#endif
57
84/******************************************************************************
85 * Certificate
86 *****************************************************************************/
109 TPdfToolsCryptoProviders_Certificate* pCertificate, char* pBuffer, size_t nBufferSize);
132 TPdfToolsCryptoProviders_Certificate* pCertificate, WCHAR* pBuffer, size_t nBufferSize);
154 TPdfToolsCryptoProviders_Certificate* pCertificate, char* pBuffer, size_t nBufferSize);
176 TPdfToolsCryptoProviders_Certificate* pCertificate, WCHAR* pBuffer, size_t nBufferSize);
199 TPdfToolsCryptoProviders_Certificate* pCertificate, char* pBuffer, size_t nBufferSize);
222 TPdfToolsCryptoProviders_Certificate* pCertificate, WCHAR* pBuffer, size_t nBufferSize);
245 TPdfToolsCryptoProviders_Certificate* pCertificate, char* pBuffer, size_t nBufferSize);
268 TPdfToolsCryptoProviders_Certificate* pCertificate, WCHAR* pBuffer, size_t nBufferSize);
287
288/******************************************************************************
289 * CertificateList
290 *****************************************************************************/
324
325#ifdef __cplusplus
326}
327#endif
328
329#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_GetSubjectW(TPdfToolsCryptoProviders_Certificate *pCertificate, WCHAR *pBuffer, size_t nBufferSize)
The subject of the certificate The distinguished name (DN) of the person or authority who owns the ce...
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_GetSubjectA(TPdfToolsCryptoProviders_Certificate *pCertificate, char *pBuffer, size_t nBufferSize)
The subject of the certificate The distinguished name (DN) 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:26
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:143
unsigned short WCHAR
Definition PdfTools_Platform.h:95
#define BOOL
Definition PdfTools_Types.h:23
TPdfToolsCryptoProviders_ProviderType
Type and subtype enumeration of TPdfToolsCryptoProviders_Provider.
Definition PdfTools_Types.h:2122
Base class for cryptographic providers.