---
name: "tlsrpt_add_policy_string"
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_add_policy_string"
---

# tlsrpt\_add\_policy\_string(3)

adds a policy string to describe the current policy

## NAME

tlsrpt\_add\_policy\_string - adds a policy string to describe the current policy

## SYNOPSIS

\#include \<tlsrpt.h\>

int tlsrpt\_add\_policy\_string(struct tlsrpt\_dr\_t\* dr, const char\* policy\_string)

## DESCRIPTION

The `tlsrpt_add_policy_string` function adds a policy string to describe the current policy. Multiple policy strings can be added within one policy.

## RETURN VALUE

The tlsrpt\_add\_policy\_string 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\_strerror\[3\], man:tlsrpt\_error\_code\_is\_internal\[3\]

## AUTHOR

Boris Lohner
