---
name: "tlsrpt_cancel_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_cancel_delivery_request"
---

# tlsrpt\_cancel\_delivery\_request(3)

marks the delivery request as cancelled

## NAME

tlsrpt\_cancel\_delivery\_request - marks the delivery request as cancelled

## SYNOPSIS

\#include \<tlsrpt.h\>

int tlsrpt\_cancel\_delivery\_request(struct tlsrpt\_dr\_t\*\* pdr)

## DESCRIPTION

The `tlsrpt_cancel_delivery_request` function marks the delivery request as cancelled. This is done by an internal library "dummy error" `TLSRPT_ERR_TLSRPT_CANCELLED` which, like all errors, will prevent the delivery request from being sent out. The function then calls `tlsrpt_finish_delivery_request`, which will do all the clean-up of used resources.

## RETURN VALUE

The tlsrpt\_cancel\_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\_init\_delivery\_request\[3\], man:tlsrpt\_finish\_delivery\_request\[3\], man:tlsrpt\_strerror\[3\], man:tlsrpt\_error\_code\_is\_internal\[3\]

## AUTHOR

Boris Lohner
