hpdf_network_timestamp_transport_v1
Enterprise edition: this API belongs to HotPDF Enterprise (HotPDFEnt / Lib\Enterprise); lower editions leave it out or raise EHPDFEnterpriseRequired
Built-in implementation of the hpdf_timestamp_transport_v1 callback: it sends a DER-encoded RFC 3161 TimeStampReq over HTTP/HTTPS POST and streams the response body to response_io->write
hpdf_status HPDF_CDECL hpdf_network_timestamp_transport_v1(
void *user_data,
const void *request,
size_t request_length,
const hpdf_io_v1 *response_io);
Pass it as signing_operation.timestamp_transport together with a handle from hpdf_network_timestamp_transport_create_v1 in signing_operation.timestamp_user_data, or invoke it directly with a valid transport handle
- Sends
POSTrequests carryingContent-Type: application/timestamp-queryvia WinHTTP on Windows andlibcurlon POSIX platforms - Polls
response_io->is_cancelledcooperatively before, during and after the network transfer, and throughout chunked response delivery - Streams response bytes through repeated partial
response_io->writecalls; zero-byte or over-length writes are refused withHPDF_STATUS_IO_ERROR - Reports failure details through
response_io->diagnostic(severity2) and maps failures deterministically:HPDF_STATUS_INVALID_ARGUMENT(1),HPDF_STATUS_INVALID_HANDLE(2),HPDF_STATUS_INCOMPATIBLE_ABI(3),HPDF_STATUS_CANCELLED(4),HPDF_STATUS_IO_ERROR(5),HPDF_STATUS_PARSE_ERROR(6) orHPDF_STATUS_BUDGET_EXCEEDED(8)
For a JSON-only opt-in that avoids managing a transport handle by hand, pass "useBuiltinTimestampTransport": true alongside "timestamp": true and "timestampURL" in sign operations; see JSON Job Configuration and HotPDF Stable C Callback ABI