AddPAdESDSSOCSPFromCertificatesA
Digital signatures
Requires the Enterprise edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibEnterprise (unit PDFlibEnterprise); the Enterprise DLL and ActiveX builds provide it unchanged; other editions keep the method, which returns 0, an empty string or False and sets LastErrorCode to 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED)
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to AddPAdESDSSOCSPFromCertificates and string arguments are interpreted using the current SetAnsiMode code page
Obtains an OCSP status response and files it in the document security store
Syntax
Delphi
Function DLAddPAdESDSSOCSPFromCertificatesA(InstanceID: Integer; DSSProcessID: Integer; SubjectCertDER: PAnsiChar; SubjectCertDERLength: Integer; IssuerCertDER: PAnsiChar; IssuerCertDERLength: Integer; ResponderURL: PAnsiChar): Integer;
DLL
int DLAddPAdESDSSOCSPFromCertificatesA(int InstanceID, int DSSProcessID, const char* SubjectCertDER, int SubjectCertDERLength, const char* IssuerCertDER, int IssuerCertDERLength, const char* ResponderURL);
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