hpdf_network_timestamp_transport_create_v1
Enterprise edition: this API belongs to HotPDF Enterprise (HotPDFEnt / Lib\Enterprise); lower editions leave it out or raise EHPDFEnterpriseRequired
Builds an opaque built-in HTTP/HTTPS RFC 3161 timestamp transport handle from a validated hpdf_network_timestamp_options_v1 structure
hpdf_status HPDF_CDECL hpdf_network_timestamp_transport_create_v1(
const hpdf_network_timestamp_options_v1 *options,
hpdf_network_timestamp_transport *out_transport);
Declared in hotpdf_abi.h and exported by HotPDFABI.dll (Windows) and libhotpdf_linux_abi.so (POSIX Linux) with the C calling convention
The call checks the ABI fields (struct_size, abi_version = HPDF_ABI_VERSION_1, flags = 0), the strict UTF-8 http:// or https:// endpoint URL (RFC 3986 IPv6 literal hosts included), the timeout (<= 300000 ms), the redirect bound (<= 16) and the response size cap (<= 64 MiB)
On success it returns HPDF_STATUS_OK (0) and writes the opaque handle into *out_transport; a null or invalid URL or options yields HPDF_STATUS_INVALID_ARGUMENT (1), mismatched ABI fields yield HPDF_STATUS_INCOMPATIBLE_ABI (3), and a max_response_bytes value beyond the 64 MiB hard cap yields HPDF_STATUS_BUDGET_EXCEEDED (8)
Pair the returned handle with hpdf_network_timestamp_transport_v1 inside THPDFCABISigningOperationV1 and free it afterwards using hpdf_network_timestamp_transport_destroy. See also THPDFCABINetworkTimestampOptionsV1