mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent: Add const qualifier for read-only table.
* agent/call-pinentry.c (start_pinentry): Add const to tbl. * agent/command-ssh.c (request_specs): Add const. (ssh_key_types): Likewise. (request_spec_lookup): Add const to the return value and SPEC. (ssh_request_process): Likewise. * agent/protect.c (protect_info): Add const. (agent_unprotect): Add const to algotable. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
fbb2259d22
commit
509e4a4d74
4 changed files with 9 additions and 9 deletions
|
@ -54,7 +54,7 @@
|
|||
|
||||
/* A table containing the information needed to create a protected
|
||||
private key. */
|
||||
static struct {
|
||||
static const struct {
|
||||
const char *algo;
|
||||
const char *parmlist;
|
||||
int prot_from, prot_to;
|
||||
|
@ -1010,7 +1010,7 @@ agent_unprotect (ctrl_t ctrl,
|
|||
gnupg_isotime_t protected_at,
|
||||
unsigned char **result, size_t *resultlen)
|
||||
{
|
||||
static struct {
|
||||
static const struct {
|
||||
const char *name; /* Name of the protection method. */
|
||||
int algo; /* (A zero indicates the "openpgp-native" hack.) */
|
||||
int keylen; /* Used key length in bytes. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue