---
name: "pam_verror"
section: "3"
platform: "linux"
package: "libpam-doc"
version: "1.7.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux", "freebsd", "macos"]
url: "https://new.carta.tech/pam_error"
---

# pam\_verror(3)

display error messages to the user

Part of [pam\_error(3)](/pam_error/3.md).

## NAME

pam\_error, pam\_verror - display error messages to the user

## SYNOPSIS

```
#include <security/pam_ext.h>
```

**int pam\_error(pam\_handle\_t \****pamh***, const char \****fmt***,** *...***);**

**int pam\_verror(pam\_handle\_t \****pamh***, const char \****fmt***, va\_list** *args***);**

## DESCRIPTION

The **pam\_error** function prints error messages through the conversation function to the user.

The **pam\_verror** function performs the same task as **pam\_error()** with the difference that it takes a set of arguments which have been obtained using the [**stdarg**(3)](/stdarg/3.md) variable argument list macros.

## RETURN VALUES

PAM\_BUF\_ERR

Memory buffer error.

PAM\_CONV\_ERR

Conversation failure.

PAM\_SUCCESS

Error message was displayed.

PAM\_SYSTEM\_ERR

System error.

## SEE ALSO

[**pam\_info**(3)](/pam_info/3.md), [**pam\_vinfo**(3)](/pam_vinfo/3.md), [**pam\_prompt**(3)](/pam_prompt/3.md), [**pam\_vprompt**(3)](/pam_vprompt/3.md), [**pam**(7)](/pam/7.md)

## STANDARDS

The **pam\_error** and **pam\_verror** functions are Linux-PAM extensions.
