hpdf_network_timestamp_transport_v1
Enterprise edition: This API belongs to HotPDF Enterprise (HotPDFEnt / Lib\Enterprise); lower editions omit it or raise EHPDFEnterpriseRequired.
Built-in hpdf_timestamp_transport_v1 callback implementation that sends a DER-encoded RFC 3161 TimeStampReq via 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 as signing_operation.timestamp_transport alongside a handle created by hpdf_network_timestamp_transport_create_v1 in signing_operation.timestamp_user_data, or invoke directly with a valid transport handle.
- Sends
POSTrequests withContent-Type: application/timestamp-querythrough WinHTTP on Windows andlibcurlon POSIX platforms. - Polls
response_io->is_cancelledcooperatively before, during, and after network transfer and throughout chunked response delivery. - Streams response bytes through repeated partial
response_io->writecalls, rejecting zero-byte or over-length writes asHPDF_STATUS_IO_ERROR. - Emits failure details via
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 JSON-only opt-in without manually managing a transport handle, pass "useBuiltinTimestampTransport": true alongside "timestamp": true and "timestampURL" in sign operations; see JSON Job Configuration and HotPDF Stable C Callback ABI.