United States-English |
|
|
HP-UX Reference > Rrpc_gss_getcred(3N)HP-UX 11i Version 3: February 2007 |
|
NAMErpc_gss_getcred() — get credentials of client SYNOPSIS#include <rpc/rpcsec_gss.h> bool_t rpc_gss_getcred( struct svc_req *req, rpc_gss_rawcred_t **rcred, rpc_gss_ucred **ucred, void **cookie); DESCRIPTIONrpc_gss_getcred() is used by a server to fetch the credentials of a client. These credentials may either be network credentials (in the form of a rpc_gss_rawcred_t structure) or UNIX credentials. For more information on RPCSEC_GSS data types, see the rpcsec_gss(3N) manpage. PARAMETERSEssentially, rpc_gss_getcred() passes a pointer to a request (svc_req) as well as pointers to two credential structures and a user-defined cookie. If rpc_gss_getcred() is successful, at least one credential structure is "filled out" with values, as is, optionally, the cookie.
MULTITHREAD USAGE
These functions can be called safely in a multithreaded environment. They may be cancellation points in that they call functions that are cancel points. In a multithreaded environment, these functions are not safe to be called by a child process after fork() and before exec(). These functions should not be called by a multithreaded application that supports asynchronous cancellation or asynchronous signals. RETURN VALUErpc_gss_getcred() returns TRUE if it is successful; otherwise, use rpc_gss_get_error() to get the error associated with the failure. SEE ALSOrpc(3N), rpc_gss_set_callback(3N), rpc_gss_set_svc_name(3N), rpcsec_gss(3N). ONC+ Developer's Guide Network Working Group RFC 2078 |
Printable version | ||
|