| error_type CALLING_CONVENTION | SignatureVerificationSettings_Create (SignatureVerificationSettingsHandle **result) |
| | Create new signature verification settings with default values.
|
| |
| error_type CALLING_CONVENTION | SignatureVerificationSettings_GetSkipCertificateValidation (SignatureVerificationSettingsHandle *handle, boolean_type *result) |
| | Get skip certificate validation flag.
|
| |
| error_type CALLING_CONVENTION | SignatureVerificationSettings_SetSkipCertificateValidation (SignatureVerificationSettingsHandle *handle, boolean_type value) |
| | Set 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_SetCheckSigningTimeFlag (SignatureVerificationSettingsHandle *handle, boolean_type value) |
| | Set check signing time flag.
|
| |
| error_type CALLING_CONVENTION | SignatureVerificationSettings_GetAllowWeakAlgorithmsFlag (SignatureVerificationSettingsHandle *handle, boolean_type *result) |
| | Get allow weak algorithms 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_ToUnknown (SignatureVerificationSettingsHandle *handle, IUnknownHandle **result) |
| | Reinterpret current object as IUnknownHandle.
|
| |
|
error_type CALLING_CONVENTION | SignatureVerificationSettings_FromUnknown (IUnknownHandle *handle, SignatureVerificationSettingsHandle **result) |
| | Convert IUnknownHandle to SignatureVerificationSettingsHandle.
|
| |
| error_type CALLING_CONVENTION | SignatureVerificationSettings_Release (SignatureVerificationSettingsHandle *handle) |
| | Decrement the internal reference counter.
|
| |
Configuration settings for signature verification.
- Examples
- verify.c.
Get skip certificate validation flag.
- Parameters
-
| handle | The settings handle |
| result | Output flag value |
- Returns
- Error code
When enabled, signature verification will skip X509 certificate chain validation. The cryptographic signature is still verified, but the certificate chain is not validated against the trust store.
- Note
- Effect on verification result when enabled:
- SignatureVerificationResult_GetStatus() returns SignatureStatus_Valid (assuming the cryptographic signature is correct)
- SignatureVerificationResult_IsSignatureValid() returns VANILLAPDF_RV_TRUE
- SignatureVerificationResult_IsCertificateTrusted() returns VANILLAPDF_RV_FALSE
The IsCertificateTrusted flag remains false because the certificate chain was not actually verified - we cannot claim trust for something we did not check. This provides transparency: a Valid status with IsCertificateTrusted=false indicates that validation was bypassed rather than successfully completed.
- Warning
- This is a security bypass intended for testing/debugging only. In production, certificates should be properly added to the trust store.