---
name: "krb5_is_thread_safe"
section: "3"
platform: "linux"
package: "heimdal-dev"
version: "7.8.git20221117.28daf24+dfsg-9+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/krb5_is_thread_safe"
---

# krb5\_is\_thread\_safe(3)

is the Kerberos library compiled with multithread support

## NAME

**krb5\_is\_thread\_safe** – is the Kerberos library compiled with multithread support

## LIBRARY

Kerberos 5 Library (libkrb5, -lkrb5)

## SYNOPSIS

**#include \<krb5.h\>**

*krb5\_boolean*\

**krb5\_is\_thread\_safe**(*void*);

## DESCRIPTION

**krb5\_is\_thread\_safe** returns TRUE if the library was compiled with with multithread support. If the library isn't compiled, the consumer have to use a global lock to make sure Kerboros functions are not called at the same time by different threads.

## SEE ALSO

[krb5\_create\_checksum(3)](/krb5_create_checksum/3.md), [krb5\_encrypt(3)](/krb5_encrypt/3.md)
