---
name: "pam_verror"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd", "macos"]
url: "https://new.carta.tech/pam_verror"
---

# pam\_verror(3)

display an error message

## NAME

**pam\_verror** – display an error message

## SYNOPSIS

**#include \<sys/types.h\>**

**#include \<security/pam\_appl.h\>**

*int*\

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

## DESCRIPTION

The **pam\_verror**() function passes its arguments to [pam\_vprompt(3)](/pam_vprompt/3.md) with a style argument of PAM\_ERROR\_MSG, and discards the response.

## RETURN VALUES

The **pam\_verror**() function returns one of the following values:

- \[PAM\_SUCCESS\]

  Success.

- \[PAM\_BUF\_ERR\]

  Memory buffer error.

- \[PAM\_CONV\_ERR\]

  Conversation failure.

- \[PAM\_SYSTEM\_ERR\]

  System error.

## SEE ALSO

[pam(3)](/pam/3.md), [pam\_error(3)](/pam_error/3.md), [pam\_strerror(3)](/pam_strerror/3.md), [pam\_vinfo(3)](/pam_vinfo/3.md), [pam\_vprompt(3)](/pam_vprompt/3.md)

## STANDARDS

The **pam\_verror**() function is an OpenPAM extension.

## AUTHORS

The **pam\_verror**() function and this manual page were developed for the FreeBSD Project by ThinkSec AS and Network Associates Laboratories, the Security Research Division of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (“CBOSS”), as part of the DARPA CHATS research program.

The OpenPAM library is maintained by Dag-Erling Smørgrav ⟨*des@des.dev*⟩.
