---
name: "tlsrpt_init_delivery_request"
section: "3"
platform: "linux"
package: "libtlsrpt"
version: "0.5.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/tlsrpt_init_delivery_request"
---

# tlsrpt\_init\_delivery\_request(3)

allocates and initializes the \`struct tlsrpt\_dr\_t\` object

## NAME

tlsrpt\_init\_delivery\_request - allocates and initializes the \`struct tlsrpt\_dr\_t\` object

## SYNOPSIS

\#include \<tlsrpt.h\>

int tlsrpt\_init\_delivery\_request(struct tlsrpt\_dr\_t\*\* pdr, struct tlsrpt\_connection\_t\* con, const char\* domainname, const char\* policyrecord)

## DESCRIPTION

The `tlsrpt_init_delivery_request` function allocates and initializes the `struct tlsrpt_dr_t` object. The resources it allocates must be freed by calling either `tlsrpt_finish_delivery_request` or `tlsrpt_cancel_delivery_request`.

## RETURN VALUE

The tlsrpt\_init\_delivery\_request function returns 0 on success and a combined error code on failure. The combined error code can be analyzed with the *tlsrpt\_strerror* function.

## SEE ALSO

man:tlsrpt\_cancel\_delivery\_request\[3\], man:tlsrpt\_finish\_delivery\_request\[3\], man:tlsrpt\_strerror\[3\], man:tlsrpt\_error\_code\_is\_internal\[3\]

## AUTHOR

Boris Lohner
