mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
A bunch of minor changes
This commit is contained in:
parent
9129fcd868
commit
4b4e243f7d
19 changed files with 312 additions and 119 deletions
|
@ -1,3 +1,7 @@
|
|||
2009-12-21 Werner Koch <wk@g10code.com>
|
||||
|
||||
* command.c (cmd_getinfo): Add sub-command "s2k_count".
|
||||
|
||||
2009-12-14 Werner Koch <wk@g10code.com>
|
||||
|
||||
* protect.c (agent_unprotect): Decode the S2K count here and take
|
||||
|
|
|
@ -1614,7 +1614,7 @@ cmd_reloadagent (assuan_context_t ctx, char *line)
|
|||
socket_name - Return the name of the socket.
|
||||
ssh_socket_name - Return the name of the ssh socket.
|
||||
scd_running - Return OK if the SCdaemon is already running.
|
||||
|
||||
s2k_count - Return the calibrated S2K count.
|
||||
cmd_has_option CMD OPT
|
||||
- Returns OK if the command CMD implements the option OPT.
|
||||
*/
|
||||
|
@ -1657,6 +1657,13 @@ cmd_getinfo (assuan_context_t ctx, char *line)
|
|||
{
|
||||
rc = agent_scd_check_running ()? 0 : gpg_error (GPG_ERR_GENERAL);
|
||||
}
|
||||
else if (!strcmp (line, "s2k_count"))
|
||||
{
|
||||
char numbuf[50];
|
||||
|
||||
snprintf (numbuf, sizeof numbuf, "%lu", get_standard_s2k_count ());
|
||||
rc = assuan_send_data (ctx, numbuf, strlen (numbuf));
|
||||
}
|
||||
else if (!strncmp (line, "cmd_has_option", 14)
|
||||
&& (line[14] == ' ' || line[14] == '\t' || !line[14]))
|
||||
{
|
||||
|
|
|
@ -80,7 +80,7 @@ ask_for_card (ctrl_t ctrl, const unsigned char *shadow_info, char **r_kid)
|
|||
}
|
||||
else
|
||||
{
|
||||
log_error ("error accesing card: %s\n", gpg_strerror (rc));
|
||||
log_error ("error accessing card: %s\n", gpg_strerror (rc));
|
||||
}
|
||||
|
||||
if (!rc)
|
||||
|
|
|
@ -1698,7 +1698,7 @@ build_key_sequence (gcry_mpi_t *kparms, size_t *r_length)
|
|||
}
|
||||
if (i != 8)
|
||||
{
|
||||
log_error ("invalid paramters for p12_build\n");
|
||||
log_error ("invalid parameters for p12_build\n");
|
||||
return NULL;
|
||||
}
|
||||
/* Now this all goes into a sequence. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue