TPDFlibNativeOCSPNonceMode

Data types, security and signatures

Description

TPDFlibNativeOCSPNonceMode controls whether native OCSP requests carry a nonce and how strictly the response is matched against it.

It is the type of the NativeOCSPNonceMode property on TPDFlibSignatureVerifier and applies to native signer-chain and timestamp OCSP retrieval.

Syntax

Delphi

TPDFlibNativeOCSPNonceMode = (nonmDisabled, nonmPrefer, nonmRequire);

Values

nonmDisabledSends no nonce and performs no nonce check on the response
nonmPreferSends a nonce and accepts a response that omits it, while rejecting a response that carries a different nonce
nonmRequireSends a nonce and accepts only a response that echoes the exact same nonce

Remarks

The verifier initializes the mode to nonmDisabled.

Enabled requests carry a 32-byte CSPRNG nonce and keep one stable request identity per certificate and issuer within each verification call.

The policy applies to fetched OCSP responses; supplied DSS and archival responses are checked by their own syntax rules rather than against a nonce that was never requested.

The property setter range-checks the value and raises an argument exception for an out-of-range ordinal.

See also

TPDFlibSignatureVerifier, NativeOCSPNonceMode, NativeOCSPNonce, NativeOCSPRevocation