version 1.10, 2001/07/04 14:08:19
|
version 1.13.2.4, 2001/12/01 02:48:19
|
|
|
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: | // Modified By: |
|
// Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
| |
static DynamicLibraryHandle loadDynamicLibrary(const char* fileName); | static DynamicLibraryHandle loadDynamicLibrary(const char* fileName); |
| |
static String DynamicLoadError(void); |
static void unloadDynamicLibrary(DynamicLibraryHandle libraryHandle); |
|
|
|
static String dynamicLoadError(void); |
| |
static DynamicSymbolHandle loadDynamicSymbol( | static DynamicSymbolHandle loadDynamicSymbol( |
DynamicLibraryHandle libraryHandle, | DynamicLibraryHandle libraryHandle, |
const char* symbolName); | const char* symbolName); |
| |
static String getHostName(); | static String getHostName(); |
|
|
|
static String getCurrentLoginName(); |
|
|
|
/** |
|
This function is used to input a password with echo disabled. |
|
The function reads up to a newline and returns a password of at most |
|
8 characters. |
|
|
|
@param prompt String containing the message prompt to be displayed |
|
@return password obtained from the user |
|
*/ |
|
static String getPassword(const char* prompt); |
|
|
|
/** |
|
This function is used to encrypt the user's password. |
|
The encryption is compatible with Apache's password file (generated using |
|
the htpasswd command ) |
|
|
|
@param password Password to be encrypted. |
|
@param salt Two character string chosen from the set [a-zA-Z0-9./]. |
|
|
|
@return Encrypted password. |
|
*/ |
|
static String encryptPassword(const char* password, const char* salt); |
|
|
|
/** |
|
This function is used to verify whether specified user is a user |
|
on the local system. |
|
|
|
@param userName User name to be verified. |
|
|
|
@return true if the username is valid, else false |
|
*/ |
|
static Boolean isSystemUser(char* userName); |
|
|
|
/** |
|
This function is used to check whether the user running the command is |
|
a privileged user. On Unix implementation it checks whether the user |
|
is a root user. |
|
|
|
@return true if the user running the command is a |
|
privileged user, else false |
|
*/ |
|
static Boolean isPrivilegedUser(); |
|
|
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |