mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
Adjust for assuan_register_command change.
This commit is contained in:
parent
717c38381a
commit
8e8368b00e
@ -1,3 +1,8 @@
|
||||
2009-11-04 Werner Koch <wk@g10code.com>
|
||||
|
||||
* command.c (register_commands): Add NULL arg to
|
||||
assuan_register_command.
|
||||
|
||||
2009-11-02 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* command.c (reset_notify): Take LINE arg and return error.
|
||||
|
@ -1865,7 +1865,7 @@ register_commands (assuan_context_t ctx)
|
||||
|
||||
for (i=0; table[i].name; i++)
|
||||
{
|
||||
rc = assuan_register_command (ctx, table[i].name, table[i].handler);
|
||||
rc = assuan_register_command (ctx, table[i].name, table[i].handler, NULL);
|
||||
if (rc)
|
||||
return rc;
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
2009-11-04 Werner Koch <wk@g10code.com>
|
||||
|
||||
* server.c (register_commands): Add NULL arg to
|
||||
assuan_register_command.
|
||||
|
||||
2009-11-02 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* server.c (reset_notify, input_notify, output_notify): Update to
|
||||
|
@ -634,7 +634,7 @@ register_commands (assuan_context_t ctx)
|
||||
|
||||
for (i=0; table[i].name; i++)
|
||||
{
|
||||
rc = assuan_register_command (ctx, table[i].name, table[i].handler);
|
||||
rc = assuan_register_command (ctx, table[i].name, table[i].handler, NULL);
|
||||
if (rc)
|
||||
return rc;
|
||||
}
|
||||
|
@ -1,2 +1,4 @@
|
||||
2009-11-04 Werner Koch <wk@g10code.com>
|
||||
|
||||
Under initial development - no need for a ChangeLog.
|
||||
|
||||
|
15
g13/server.c
15
g13/server.c
@ -212,6 +212,15 @@ reset_notify (assuan_context_t ctx, char *line)
|
||||
further commands. The filename is reset with the RESET command,
|
||||
another OPEN or the CREATE command.
|
||||
*/
|
||||
static const char hlp_open[] =
|
||||
"OPEN [<options>] <filename>\n"
|
||||
"\n"
|
||||
"Open the container FILENAME. FILENAME must be percent-plus\n"
|
||||
"escaped. A quick check to see whether this is a suitable G13\n"
|
||||
"container file is done. However no cryptographic check or any\n"
|
||||
"other check is done. This command is used to define the target for\n"
|
||||
"further commands. The filename is reset with the RESET command,\n"
|
||||
"another OPEN or the CREATE command.";
|
||||
static gpg_error_t
|
||||
cmd_open (assuan_context_t ctx, char *line)
|
||||
{
|
||||
@ -543,8 +552,9 @@ register_commands (assuan_context_t ctx)
|
||||
static struct {
|
||||
const char *name;
|
||||
assuan_handler_t handler;
|
||||
const char * const help;
|
||||
} table[] = {
|
||||
{ "OPEN", cmd_open },
|
||||
{ "OPEN", cmd_open, hlp_open },
|
||||
{ "MOUNT", cmd_mount },
|
||||
{ "UMOUNT", cmd_umount },
|
||||
{ "RECIPIENT", cmd_recipient },
|
||||
@ -560,7 +570,8 @@ register_commands (assuan_context_t ctx)
|
||||
|
||||
for (i=0; table[i].name; i++)
|
||||
{
|
||||
err = assuan_register_command (ctx, table[i].name, table[i].handler);
|
||||
err = assuan_register_command (ctx, table[i].name, table[i].handler,
|
||||
table[i].help);
|
||||
if (err)
|
||||
return err;
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
2009-11-04 Werner Koch <wk@g10code.com>
|
||||
|
||||
* command.c (register_commands): Add NULL arg to
|
||||
assuan_register_command.
|
||||
|
||||
2009-11-02 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* command.c (reset_notify): Take LINE arg and return error.
|
||||
|
@ -1879,7 +1879,7 @@ register_commands (assuan_context_t ctx)
|
||||
|
||||
for (i=0; table[i].name; i++)
|
||||
{
|
||||
rc = assuan_register_command (ctx, table[i].name, table[i].handler);
|
||||
rc = assuan_register_command (ctx, table[i].name, table[i].handler, NULL);
|
||||
if (rc)
|
||||
return rc;
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
2009-11-04 Werner Koch <wk@g10code.com>
|
||||
|
||||
* server.c (register_commands): Add NULL arg to
|
||||
assuan_register_command.
|
||||
|
||||
2009-11-02 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* server.c (reset_notify, input_notify, output_notify): Update to
|
||||
|
@ -1132,7 +1132,7 @@ register_commands (assuan_context_t ctx)
|
||||
|
||||
for (i=0; table[i].name; i++)
|
||||
{
|
||||
rc = assuan_register_command (ctx, table[i].name, table[i].handler);
|
||||
rc = assuan_register_command (ctx, table[i].name, table[i].handler, NULL);
|
||||
if (rc)
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user