HP-UX Reference (11i v1 05/09) - 3 Library Functions N-Z (vol 7)
s
secure_rpc(3N) secure_rpc(3N)
NAME
secure_rpc, authdes_getucred, authdes_seccreate, getnetname, host2netname, key_decryptsession,
key_encryptsession, key_gendes, key_setsecret, key_secretkey_is_set, netname2host, netname2user,
user2netname - library routines for secure remote procedure calls
SYNOPSIS
#include <rpc/rpc.h>
#include <sys/types.h>
int authdes_getucred(const struct authdes_cred *
adc,
uid_t *
uidp,
gid_t *
gidp,
short *
gidlenp,
gid_t *
gidlist);
AUTH *authdes_seccreate(const char *
name,
const unsigned int
window,
const char *
timehost,
const des_block *
ckey);
int getnetname(char
name
[MAXNETNAMELEN+1]);
int host2netname(char
name[MAXNETNAMELEN+1],
const char *
host,
const char *
domain);
int key_decryptsession(const char *
remotename,
des_block *
deskey);
int key_encryptsession(const char *
remotename,
des_block *
deskey);
int key_gendes(des_block *
deskey);
int key_setsecret(const char *
key);
int key_secretkey_is_set(void);
int netname2host(const char *
name,
char *
host,
const int
hostlen);
int netname2user(const char *
name,
uid_t *
uidp,
gid_t *
gidp,
int *
gidlenp,
gid_t
gidlist[NGROUPS]);
int user2netname(char
name[MAXNETNAMELEN+1],
const uid_t
uid,
const char *
domain);
DESCRIPTION
RPC library routines allow C programs to make procedure calls on other machines across the network.
RPC supports various authentication flavors. Among them are:
AUTH_NONE (none) No authentication.
AUTH_SYS Traditional UNIX-style authentication.
AUTH_DES DES encryption-based authentication.
The authdes_getucred() and authdes_seccreate()
routines implement the AUTH_DES
authentication flavor. The keyserver daemon keyserv (see keyserv(1M)) must be running for the
AUTH_DES authentication system to work, and keylogin(1) must have been run. Only the AUTH_DES
style of authentication is discussed here. For information about the AUTH_NONE and AUTH_SYS styles of
authentication, refer to rpc_clnt_auth(3N).
The routines documented on this page are MT-Safe. See the pages of the other authentication styles for
their MT-level.
Section 3−−866 Hewlett-Packard Company − 1 − HP-UX 11i Version 1: September 2005