---
name: "tlsrpt_version_check"
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_version_check"
---

# tlsrpt\_version\_check(3)

check whether the version of libtlsrpt is compatible with the calling program

## NAME

tlsrpt\_version\_check - check whether the version of libtlsrpt is compatible with the calling program

## SYNOPSIS

\#include \<tlsrpt.h\>

int tlsrpt\_version\_check(int major, int minor, int patch)

## DESCRIPTION

The `tlsrpt_version_check` function checks whether the version of libtlsrpt is compatible with the calling program.

A program compiled with libtlsrpt version a.b.c can call `tlsrpt_version_check(a, b, c)` to determine if the loaded library is compatible with the program.

## RETURN VALUE

The tlsrpt\_version function returns 1 when the library is compatible with the calling program and 0 otherwise.

## SEE ALSO

man:tlsrpt\_version\_check\[3\]

## AUTHOR

Boris Lohner
