tlsrpt_finish_policy(3)

tlsrpt_finish_policy3

Finishes a policy within a delivery request

Usage

#include <tlsrpt.h>

int tlsrpt_finish_policy(struct tlsrpt_dr_t* dr, tlsrpt_final_result_t final_result)

Overview

The tlsrpt_finish_policy function finishes a policy within a delivery request. It frees all the resources allocated by tlsrpt_init_policy. Every call to tlsrpt_init_policy must be matched by a call to tlsrpt_finish_policy!

Note

No plausibility checks are done by the library regarding the number of failures added to this policy and the final result. It is just as well possible to finish a poliy as TLSRPT_FINAL_FAILURE with no failures added at all, as it is possible to finish a poliy as TLSRPT_FINAL_SUCCESS with one or more failures added.

Return value

The tlsrpt_finish_policy function returns 0 on success and a combined error code on failure. The combined error code can be analyzed with the tlsrpt_strerror function.

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

Author

Boris Lohner

From libtlsrpt 0.5.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.