ATMI C Function Reference
tpchkauth()
—Routine for checking if authentication required to join an application.
#include <atmi.h>
int tpchkauth(void)
tpchkauth()
checks if authentication is required by the application configuration. This is typically used by application clients prior to calling tpinit()
to determine if a password should be obtained from the user.
In a multithreaded application, a thread in the TPINVALIDCONTEXT
state is not allowed to issue a call to tpchkauth()
.
Upon success, tpchkauth()
returns one of the following non-negative values:
Upon failure, tpchkauth()
returns -1 and sets tperrno
to indicate the error condition.
Upon failure, tpchkauth()
sets tperrno
to one of the following values:
tpchkauth()
is available only on sites running release 4.2 or later.
The interfaces described in tpchkauth(3c)
are supported on UNIX, Windows, and MS-DOS operating systems.