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
(3c) to determine if a password should be obtained from the user.
tpchkauth
() returns one of the following non-negative values on success.
TPNOAUTH
TPSYSAUTH
TPAPPAUTH
It returns -1 on error and sets tperrno
to indicate the error condition.
Under the following conditions, tpchkauth
() fails and sets tperrno
to:
TPESYSTEM
]
TPEOS
]
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. However, signal-based notification is not supported on 16-bit Windows or MS-DOS platforms. If it is selected at tpinit
() time, then a userlog
(3c) message is generated and the method is automatically set to dip-in.
tpinit
(3c)