get_seed_es(3) Library Functions Manual get_seed_es(3)NAME
get_seed_es - Obtain a drand48 seed value for an extended profile (Enhanced Security)
LIBRARY
Security Library (libsecurity.so)
SYNOPSIS
#include <sys/types.h>
#include <sys/security.h>
#include <prot.h>
long get_seed_es(
struct es_passwd *prpwd);
PARAMETERS
prpwd Specifies a pointer to the protected profile structure (prpasswd)
DESCRIPTION
Returns a hashed value of the protected profile for use in random-number generation, such as that used with lrand48 or drand48 and so
forth. The get_seed_es() function is used by the login and passwd commands under ENHANCED security to initialize the seed value for pass-
word generation.
RETURN VALUES
The computed hash value for the extended profile.
RELATED INFORMATION getespwent(3) delim off
get_seed_es(3)
Check Out this Related Man Page
get_num_crypts(3) Library Functions Manual get_num_crypts(3)NAME
get_num_crypts, get_crypt_name - determine the encryption types available (Enhanced Security)
LIBRARY
Security Library (libsecurity.so)
SYNOPSIS
#include <prot.h>
int get_num_crypts(void);
const char *get_crypt_name(
int cryptnum);
PARAMETERS
cryptnum
The encryption algorithm for which the name is to be returned.
DESCRIPTION
The get_num_crypts() function returns the number of encryption algorithms which the current system supports. This value is non-negative,
and at least four.
The get_crypt_name() function returns a pointer to static storage containing the name of the encryption algorithm with the index value
given in the cryptnum parameter. Other calls to get_crypt_name() could overwrite the stored name, so applications should copy the names
this function returns if there is a chance that other parts of the application might also call this function. This function returns NULL
if the given algorithm index is negative or if it is not less than the return value of get_num_crypts(). Algorithm indexes are most com-
monly obtained from the fd_oldcrypt and fd_newcrypt fields of an extended profile entry.
The dxaccounts system management GUI uses the get_num_crypts() and get_crypt_name() functions to determine how to display the menu of
allowable encryption algorithms for ENHANCED security.
RETURN VALUES
The get_num_crypts() function returns a non-negative value which is at least four.
The get_crypt_name() function returns a name for a known encryption algorithm, or a NULL pointer if the given index is out of range.
NOTES
In order to quickstart a program, the program must be linked as follows:
-lsecurity -ldb -laud -lm
See the shared library discussion in the Programmer's Guide for more information about using the quickstarting feature.
RELATED INFORMATION getespwent(3), getesdfent(3), dispcrypt(3), dxaccounts(8)
Security delim off
get_num_crypts(3)
Hi Folks,
Today hasn't been the best one of my career in IT.
I've been a contractor for a major utility company for a number of years, on a number of seperate IT contracts mostly Unix. The company had 10 different flavours of unix and multiple different varsions of most of them.
At the... (3 Replies)