AddPAdESDSSOCSPFromCertificates
Digital signatures
Description
Obtains an OCSP status response and files it in the document security store.
Syntax
Delphi
Function TPDFlib.AddPAdESDSSOCSPFromCertificates(DSSProcessID: Integer; Const SubjectCertDER, IssuerCertDER: AnsiString; Const ResponderURL: WideString): Integer;Parameters
| DSSProcessID | A DSS process created by one of the NewPAdESDSSProcess functions. |
|---|---|
| SubjectCertDER | The certificate whose status is being asked about, DER encoded. |
| IssuerCertDER | The certificate that issued it, DER encoded. |
| ResponderURL | The responder address, or an empty string to use the one the certificate names. |
Return values
| 1 | The response was obtained and added. |
|---|---|
| 0 | The exchange or the insertion failed; GetTimeStampError carries the reason. |
Remarks
Equivalent to FetchOCSPResponse followed by AddPAdESDSSOCSP, which remain available when the response comes from somewhere else.
Together with AddPAdESDSSCRLFromURL and AddPAdESDSSCertificateFromURL this covers the validation material a long-term signature profile expects.