dg_encryptsessionkey(2) DG/UX 5.4R3.00 dg_encryptsessionkey(2)
NAME
dgencryptsessionkey - encrypt conversation key with the
client/server common key
SYNOPSIS
int dgencryptsessionkey (netname, deskey)
char * netname;
desblock * deskey;
where:
netname Netname of the server
deskey Pointer to the des key to encrypt
DESCRIPTION
This call is used to request the user keyserver process to encrypt a
conversation key with the common key for this user and the server
machine.
ACCESS CONTROL
None.
RETURN VALUE
0 The operation was successful.
-1 An error occurred. errno indicates the error.
DIAGNOSTICS
Errno may be set to one of the following error codes:
EINVAL Secure RPC is not configured. Secure RPC using DES
Authentication is an additional feature that must be
purchased separately from the DG/UX (Trademark) ONC
(Trademark)/NFSĀ® product.
ENOMEM Kernel memory could not be allocated to read in the
netname.
EFAULT Some part of the string pointed to by netname lies outside
the process's readable address space.
EFAULT Some part of the string pointed to by deskey lies outside
the process's writable address space.
SEE ALSO
dgdecryptsessionkey(2), dggetrootkey(2), dgsetsecretkey(2).
Licensed material--property of copyright holder(s) 1