Back to index

lightning-sunbird  0.9+nobinonly
Defines | Enumerations | Variables
error.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SUCCESS   NO_ERR

Enumerations

enum  Error {
  NO_ERR = 0, INVALID_USAGE_ERR, UNEXPECTED_ARG_ERR, UNKNOWN_OPTION_ERR,
  MULTIPLE_COMMAND_ERR, OPTION_NEEDS_ARG_ERR, DUPLICATE_OPTION_ERR, MISSING_PARAM_ERR,
  INVALID_FIPS_ARG, NO_COMMAND_ERR, NO_DBDIR_ERR, FIPS_SWITCH_FAILED_ERR,
  FIPS_ALREADY_ON_ERR, FIPS_ALREADY_OFF_ERR, FILE_ALREADY_EXISTS_ERR, FILE_DOESNT_EXIST_ERR,
  FILE_NOT_READABLE_ERR, FILE_NOT_WRITEABLE_ERR, DIR_DOESNT_EXIST_ERR, DIR_NOT_READABLE_ERR,
  DIR_NOT_WRITEABLE_ERR, INVALID_CONSTANT_ERR, ADD_MODULE_FAILED_ERR, ADD_MODULE_FAILED_STATUS_ERR,
  OUT_OF_MEM_ERR, DELETE_INTERNAL_ERR, DELETE_FAILED_ERR, NO_LIST_LOCK_ERR,
  NO_MODULE_LIST_ERR, NO_SUCH_MODULE_ERR, MOD_INFO_ERR, SLOT_INFO_ERR,
  TOKEN_INFO_ERR, NO_SUCH_TOKEN_ERR, CHANGEPW_FAILED_ERR, BAD_PW_ERR,
  DB_ACCESS_ERR, AUTHENTICATION_FAILED_ERR, NO_SUCH_SLOT_ERR, ENABLE_FAILED_ERR,
  UPDATE_MOD_FAILED_ERR, DEFAULT_FAILED_ERR, UNDEFAULT_FAILED_ERR, STDIN_READ_ERR,
  UNSPECIFIED_ERR, NOCERTDB_MISUSE_ERR, NSS_INITIALIZE_FAILED_ERR, LAST_ERR,
  DUPLICATE_OPTION_ERR = 0, OPTION_NEEDS_ARG_ERR, NO_ERR = 0, INVALID_USAGE_ERR,
  UNEXPECTED_ARG_ERR, UNKNOWN_OPTION_ERR, MULTIPLE_COMMAND_ERR, OPTION_NEEDS_ARG_ERR,
  DUPLICATE_OPTION_ERR, MISSING_PARAM_ERR, INVALID_FIPS_ARG, NO_COMMAND_ERR,
  NO_DBDIR_ERR, FIPS_SWITCH_FAILED_ERR, FIPS_ALREADY_ON_ERR, FIPS_ALREADY_OFF_ERR,
  FILE_ALREADY_EXISTS_ERR, FILE_DOESNT_EXIST_ERR, FILE_NOT_READABLE_ERR, FILE_NOT_WRITEABLE_ERR,
  DIR_DOESNT_EXIST_ERR, DIR_NOT_READABLE_ERR, DIR_NOT_WRITEABLE_ERR, INVALID_CONSTANT_ERR,
  ADD_MODULE_FAILED_ERR, ADD_MODULE_FAILED_STATUS_ERR, OUT_OF_MEM_ERR, DELETE_INTERNAL_ERR,
  DELETE_FAILED_ERR, NO_LIST_LOCK_ERR, NO_MODULE_LIST_ERR, NO_SUCH_MODULE_ERR,
  MOD_INFO_ERR, SLOT_INFO_ERR, TOKEN_INFO_ERR, NO_SUCH_TOKEN_ERR,
  CHANGEPW_FAILED_ERR, BAD_PW_ERR, DB_ACCESS_ERR, AUTHENTICATION_FAILED_ERR,
  NO_SUCH_SLOT_ERR, ENABLE_FAILED_ERR, UPDATE_MOD_FAILED_ERR, DEFAULT_FAILED_ERR,
  UNDEFAULT_FAILED_ERR, STDIN_READ_ERR, UNSPECIFIED_ERR, NOCERTDB_MISUSE_ERR,
  NSS_INITIALIZE_FAILED_ERR, LAST_ERR, DUPLICATE_OPTION_ERR = 0, OPTION_NEEDS_ARG_ERR
}
enum  Message {
  FIPS_ENABLED_MSG = 0, FIPS_DISABLED_MSG, USING_DBDIR_MSG, CREATING_DB_MSG,
  ADD_MODULE_SUCCESS_MSG, DELETE_SUCCESS_MSG, CHANGEPW_SUCCESS_MSG, BAD_PW_MSG,
  PW_MATCH_MSG, DONE_MSG, ENABLE_SUCCESS_MSG, DEFAULT_SUCCESS_MSG,
  UNDEFAULT_SUCCESS_MSG, BROWSER_RUNNING_MSG, ABORTING_MSG, LAST_MSG,
  FIPS_ENABLED_MSG = 0, FIPS_DISABLED_MSG, USING_DBDIR_MSG, CREATING_DB_MSG,
  ADD_MODULE_SUCCESS_MSG, DELETE_SUCCESS_MSG, CHANGEPW_SUCCESS_MSG, BAD_PW_MSG,
  PW_MATCH_MSG, DONE_MSG, ENABLE_SUCCESS_MSG, DEFAULT_SUCCESS_MSG,
  UNDEFAULT_SUCCESS_MSG, BROWSER_RUNNING_MSG, ABORTING_MSG, LAST_MSG
}

Variables

static char * errStrings []
static char * msgStrings []

Define Documentation

Definition at line 91 of file error.h.


Enumeration Type Documentation

enum Error
Enumerator:
NO_ERR 
INVALID_USAGE_ERR 
UNEXPECTED_ARG_ERR 
UNKNOWN_OPTION_ERR 
MULTIPLE_COMMAND_ERR 
OPTION_NEEDS_ARG_ERR 
DUPLICATE_OPTION_ERR 
MISSING_PARAM_ERR 
INVALID_FIPS_ARG 
NO_COMMAND_ERR 
NO_DBDIR_ERR 
FIPS_SWITCH_FAILED_ERR 
FIPS_ALREADY_ON_ERR 
FIPS_ALREADY_OFF_ERR 
FILE_ALREADY_EXISTS_ERR 
FILE_DOESNT_EXIST_ERR 
FILE_NOT_READABLE_ERR 
FILE_NOT_WRITEABLE_ERR 
DIR_DOESNT_EXIST_ERR 
DIR_NOT_READABLE_ERR 
DIR_NOT_WRITEABLE_ERR 
INVALID_CONSTANT_ERR 
ADD_MODULE_FAILED_ERR 
ADD_MODULE_FAILED_STATUS_ERR 
OUT_OF_MEM_ERR 
DELETE_INTERNAL_ERR 
DELETE_FAILED_ERR 
NO_LIST_LOCK_ERR 
NO_MODULE_LIST_ERR 
NO_SUCH_MODULE_ERR 
MOD_INFO_ERR 
SLOT_INFO_ERR 
TOKEN_INFO_ERR 
NO_SUCH_TOKEN_ERR 
CHANGEPW_FAILED_ERR 
BAD_PW_ERR 
DB_ACCESS_ERR 
AUTHENTICATION_FAILED_ERR 
NO_SUCH_SLOT_ERR 
ENABLE_FAILED_ERR 
UPDATE_MOD_FAILED_ERR 
DEFAULT_FAILED_ERR 
UNDEFAULT_FAILED_ERR 
STDIN_READ_ERR 
UNSPECIFIED_ERR 
NOCERTDB_MISUSE_ERR 
NSS_INITIALIZE_FAILED_ERR 
LAST_ERR 
DUPLICATE_OPTION_ERR 
OPTION_NEEDS_ARG_ERR 
NO_ERR 
INVALID_USAGE_ERR 
UNEXPECTED_ARG_ERR 
UNKNOWN_OPTION_ERR 
MULTIPLE_COMMAND_ERR 
OPTION_NEEDS_ARG_ERR 
DUPLICATE_OPTION_ERR 
MISSING_PARAM_ERR 
INVALID_FIPS_ARG 
NO_COMMAND_ERR 
NO_DBDIR_ERR 
FIPS_SWITCH_FAILED_ERR 
FIPS_ALREADY_ON_ERR 
FIPS_ALREADY_OFF_ERR 
FILE_ALREADY_EXISTS_ERR 
FILE_DOESNT_EXIST_ERR 
FILE_NOT_READABLE_ERR 
FILE_NOT_WRITEABLE_ERR 
DIR_DOESNT_EXIST_ERR 
DIR_NOT_READABLE_ERR 
DIR_NOT_WRITEABLE_ERR 
INVALID_CONSTANT_ERR 
ADD_MODULE_FAILED_ERR 
ADD_MODULE_FAILED_STATUS_ERR 
OUT_OF_MEM_ERR 
DELETE_INTERNAL_ERR 
DELETE_FAILED_ERR 
NO_LIST_LOCK_ERR 
NO_MODULE_LIST_ERR 
NO_SUCH_MODULE_ERR 
MOD_INFO_ERR 
SLOT_INFO_ERR 
TOKEN_INFO_ERR 
NO_SUCH_TOKEN_ERR 
CHANGEPW_FAILED_ERR 
BAD_PW_ERR 
DB_ACCESS_ERR 
AUTHENTICATION_FAILED_ERR 
NO_SUCH_SLOT_ERR 
ENABLE_FAILED_ERR 
UPDATE_MOD_FAILED_ERR 
DEFAULT_FAILED_ERR 
UNDEFAULT_FAILED_ERR 
STDIN_READ_ERR 
UNSPECIFIED_ERR 
NOCERTDB_MISUSE_ERR 
NSS_INITIALIZE_FAILED_ERR 
LAST_ERR 
DUPLICATE_OPTION_ERR 
OPTION_NEEDS_ARG_ERR 

Definition at line 40 of file error.h.

enum Message
Enumerator:
FIPS_ENABLED_MSG 
FIPS_DISABLED_MSG 
USING_DBDIR_MSG 
CREATING_DB_MSG 
ADD_MODULE_SUCCESS_MSG 
DELETE_SUCCESS_MSG 
CHANGEPW_SUCCESS_MSG 
BAD_PW_MSG 
PW_MATCH_MSG 
DONE_MSG 
ENABLE_SUCCESS_MSG 
DEFAULT_SUCCESS_MSG 
UNDEFAULT_SUCCESS_MSG 
BROWSER_RUNNING_MSG 
ABORTING_MSG 
LAST_MSG 
FIPS_ENABLED_MSG 
FIPS_DISABLED_MSG 
USING_DBDIR_MSG 
CREATING_DB_MSG 
ADD_MODULE_SUCCESS_MSG 
DELETE_SUCCESS_MSG 
CHANGEPW_SUCCESS_MSG 
BAD_PW_MSG 
PW_MATCH_MSG 
DONE_MSG 
ENABLE_SUCCESS_MSG 
DEFAULT_SUCCESS_MSG 
UNDEFAULT_SUCCESS_MSG 
BROWSER_RUNNING_MSG 
ABORTING_MSG 
LAST_MSG 

Definition at line 144 of file error.h.


Variable Documentation

char* errStrings[] [static]

Definition at line 94 of file error.h.

char* msgStrings[] [static]
Initial value:
 {
       "FIPS mode enabled.\n",
       "FIPS mode disabled.\n",
       "Using database directory %s...\n",
       "Creating \"%s\"...",
       "Module \"%s\" added to database.\n",
       "Module \"%s\" deleted from database.\n",
       "Token \"%s\" password changed successfully.\n",
       "Incorrect password, try again...\n",
       "Passwords do not match, try again...\n",
       "done.\n",
       "Slot \"%s\" %s.\n",
       "Successfully changed defaults.\n",
       "Successfully changed defaults.\n",
"\nWARNING: Performing this operation while the browser is running could cause"
"\ncorruption of your security databases. If the browser is currently running,"
"\nyou should exit browser before continuing this operation. Type "
"\n'q <enter>' to abort, or <enter> to continue: ",
       "\nAborting...\n"
}

Definition at line 164 of file error.h.