Vanilla.PDF  2.2.0
Cross-platform toolkit for creating and modifying PDF documents
c_signature_verification_settings.h
Go to the documentation of this file.
1#ifndef _C_SIGNATURE_VERIFICATION_SETTINGS_H
2#define _C_SIGNATURE_VERIFICATION_SETTINGS_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
35 VANILLAPDF_API error_type CALLING_CONVENTION SignatureVerificationSettings_Create(
37 );
38
39 /* TODO: CRL/OCSP revocation checking (https://github.com/vanillapdf/vanillapdf/issues/157)
40
41 **
42 * \brief Get certificate revocation checking flag
43 * \param handle The settings handle
44 * \param result Output flag value
45 * \return Error code
46 *
47 VANILLAPDF_API error_type CALLING_CONVENTION SignatureVerificationSettings_GetCheckRevocationFlag(
48 SignatureVerificationSettingsHandle* handle,
49 boolean_type* result
50 );
51
52 **
53 * \brief Set certificate revocation checking flag
54 * \param handle The settings handle
55 * \param value Flag value to set
56 * \return Error code
57 *
58 VANILLAPDF_API error_type CALLING_CONVENTION SignatureVerificationSettings_SetCheckRevocationFlag(
59 SignatureVerificationSettingsHandle* handle,
60 boolean_type value
61 );
62 */
63
90 boolean_type* result
91 );
92
115 boolean_type value
116 );
117
126 boolean_type* result
127 );
128
137 boolean_type value
138 );
139
148 boolean_type* result
149 );
150
159 boolean_type value
160 );
161
166 VANILLAPDF_API error_type CALLING_CONVENTION SignatureVerificationSettings_Release(
168 );
169
172#ifdef __cplusplus
173};
174#endif
175
176#endif /* _C_SIGNATURE_VERIFICATION_SETTINGS_H */
This file contains macro declarations for importing and exporting symbols from library boundaries.
This file contains all type forward declarations returned by the library API.
This file contains types and constants used as parameters or return values.
Configuration settings for signature verification.
error_type CALLING_CONVENTION SignatureVerificationSettings_GetAllowWeakAlgorithmsFlag(SignatureVerificationSettingsHandle *handle, boolean_type *result)
Get allow weak algorithms flag.
error_type CALLING_CONVENTION SignatureVerificationSettings_Release(SignatureVerificationSettingsHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION SignatureVerificationSettings_SetSkipCertificateValidation(SignatureVerificationSettingsHandle *handle, boolean_type value)
Set skip certificate validation flag.
error_type CALLING_CONVENTION SignatureVerificationSettings_GetSkipCertificateValidation(SignatureVerificationSettingsHandle *handle, boolean_type *result)
Get skip certificate validation flag.
error_type CALLING_CONVENTION SignatureVerificationSettings_GetCheckSigningTimeFlag(SignatureVerificationSettingsHandle *handle, boolean_type *result)
Get check signing time flag.
error_type CALLING_CONVENTION SignatureVerificationSettings_SetAllowWeakAlgorithmsFlag(SignatureVerificationSettingsHandle *handle, boolean_type value)
Set allow weak algorithms flag (MD5, SHA-1, RSA < 2048 bits)
error_type CALLING_CONVENTION SignatureVerificationSettings_Create(SignatureVerificationSettingsHandle **result)
Create new signature verification settings with default values.
error_type CALLING_CONVENTION SignatureVerificationSettings_SetCheckSigningTimeFlag(SignatureVerificationSettingsHandle *handle, boolean_type value)
Set check signing time flag.
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25
int8_t boolean_type
Boolean type supported in C.
Definition c_types.h:31