Obsolete subroutine: use the more general POPSTORE_command_d subroutine.FORMAT
int POPSTORE_command (command, command_len,
password_required,
user, user_len,
password, password_len,
usage, usage_len,
out_info, out_info_len,
context, output_proc)
char *command;
int command_len;
int password_required
char *user;
int user_len;
char *password;
int password_len;
char *usage;
int usage_len;
char *out_info;
int *out_info_len;
void *context;
int (*output_proc)();
The command to process. Used for input only.
commandLength in bytes of the command specified with
command_lencommand. Used for input only.Boolean flag indicating whether or not password authentication is required in order to process the command. Used for input only.
password_requiredName of the popstore user account to authenticate against when password authentication is required. Used for input only.
userLength in bytes of the username specified with
user_lenuser. Used for input only.User-supplied, plain text password to use when performing a password authentication. Used for input only.
passwordLength in bytes of the plain text password specified with
password_lenpassword. Used for input only.Usage description to be passed to site-supplied logging subroutines explaining the usage. Used for input only.
usageLength in bytes of the usage description specified with
usage_lenusage. Used for input only.Output buffer to receive post-processing information. Used for output only.
out_infoOn input, the maximum length in bytes of the buffer pointed at by
out_info_lenout_info. On output, the length in bytes of the information placed in theout_infobuffer. Used for input and output.Pointer to private client data to be passed to the client-supplied
contextoutput_procprocedure. Used for input only.Address of a client-supplied subroutine to receive command processing output. Used for input only.
output_proc
Although still supported, this subroutine is now obsolete. Use the more general POPSTORE_command_d subroutine instead.Return Values
| POPSTORE_SUCCESS | Normal, successful completion. |
| POPSTORE_BADARG | Null value received for the
out_proc argument.
|
| POPSTORE_ERRORS | The command was parsed and executed; execution of the command resulted in some errors which were reported via the
output_proc procedure.
|
| POPSTORE_AUTHFAIL | Invalid password or username supplied. The command was not executed. |
| POPSTORE_BADHEXVAL | The command contained an illegal hexadecimal encoded character. The command was not executed. |
| POPSTORE_CMDTOOLONG | The command contained too many name=value pairs. The command was not executed. |
| POPSTORE_CMDUNKOWN | The command contained an unrecognized right-hand-side in a name=value pair. The command was not executed. |
| POPSTORE_CMDUNKOWNL | The command contained an unrecognized left-hand-side in a name=value pair. The command was not executed. |
| POPSTORE_NOMANAGE | Specified account lacks management privileges. The command was not executed. |
| POPSTORE_PWDREQUIRED | A username and password are required. The command was not executed. |
| POPSTORE_VMERROR | Insufficient virtual memory. The command was not executed. |
Any error returned by the
output_proc procedure.
|