tlsrpt_init_policy(3)

tlsrpt_init_policy3

Initializes a new policy within an existing delivery request

Usage

#include <tlsrpt.h>

int tlsrpt_init_policy(struct tlsrpt_dr_t* dr, tlsrpt_policy_type_t policy_type, * const char* policydomainname)

Overview

The tlsrpt_init_policy function initializes a new policy within an existing delivery request. A delivery request must contain at least one policy.

The policy must be properly completed by calls to some of the following functions and a final call to tlsrpt_finish_policy.

Note

An unfinished policy after some properly finished policies will result in the whole delivery request datagram to fail and not being sent out at all, so the other already completed policies won´t be reported either!

Return value

The tlsrpt_init_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.