mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
Comment typo fixes
--
This commit is contained in:
parent
3d9e0eb02c
commit
99135b89ce
@ -2130,7 +2130,7 @@ dirmngr_status_help (ctrl_t ctrl, const char *text)
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send a tick progress indicator back. Fixme: This is only does for
|
/* Send a tick progress indicator back. Fixme: This is only done for
|
||||||
the currently active channel. */
|
the currently active channel. */
|
||||||
gpg_error_t
|
gpg_error_t
|
||||||
dirmngr_tick (ctrl_t ctrl)
|
dirmngr_tick (ctrl_t ctrl)
|
||||||
|
@ -71,10 +71,10 @@ struct ks_put_parm_s
|
|||||||
|
|
||||||
/* Data used to associate an session with dirmngr contexts. We can't
|
/* Data used to associate an session with dirmngr contexts. We can't
|
||||||
use a simple one to one mapping because we sometimes need two
|
use a simple one to one mapping because we sometimes need two
|
||||||
connection s to the dirmngr; for example while doing a listing and
|
connections to the dirmngr; for example while doing a listing and
|
||||||
being in a data callback we may want to retrieve a key. The local
|
being in a data callback we may want to retrieve a key. The local
|
||||||
dirmngr data takes care of this. At the end of the session the
|
dirmngr data takes care of this. At the end of the session the
|
||||||
function dirmngr_deinit_session_data is called bu gpg.c to cleanup
|
function dirmngr_deinit_session_data is called by gpg.c to cleanup
|
||||||
these resources. Note that gpg.h defines a typedef dirmngr_local_t
|
these resources. Note that gpg.h defines a typedef dirmngr_local_t
|
||||||
for this structure. */
|
for this structure. */
|
||||||
struct dirmngr_local_s
|
struct dirmngr_local_s
|
||||||
@ -109,9 +109,8 @@ gpg_dirmngr_deinit_session_data (ctrl_t ctrl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Try to connect to the Dirmngr via a socket or fork it off if
|
/* Try to connect to the Dirmngr via a socket or spawn it if possible.
|
||||||
possible. Handle the server's initial greeting and set global
|
Handle the server's initial greeting and set global options. */
|
||||||
options. */
|
|
||||||
static gpg_error_t
|
static gpg_error_t
|
||||||
create_context (ctrl_t ctrl, assuan_context_t *r_ctx)
|
create_context (ctrl_t ctrl, assuan_context_t *r_ctx)
|
||||||
{
|
{
|
||||||
@ -135,7 +134,9 @@ create_context (ctrl_t ctrl, assuan_context_t *r_ctx)
|
|||||||
|
|
||||||
/* Set all configured keyservers. We clear existing keyservers
|
/* Set all configured keyservers. We clear existing keyservers
|
||||||
so that any keyserver configured in GPG overrides keyservers
|
so that any keyserver configured in GPG overrides keyservers
|
||||||
possibly configured in Dirmngr. */
|
possibly still configured in Dirmngr for the session (Note
|
||||||
|
that the keyserver list of a session in Dirmngr survives a
|
||||||
|
RESET. */
|
||||||
for (ksi = opt.keyserver; !err && ksi; ksi = ksi->next)
|
for (ksi = opt.keyserver; !err && ksi; ksi = ksi->next)
|
||||||
{
|
{
|
||||||
char *line;
|
char *line;
|
||||||
@ -166,8 +167,8 @@ create_context (ctrl_t ctrl, assuan_context_t *r_ctx)
|
|||||||
|
|
||||||
|
|
||||||
/* Get a context for accessing dirmngr. If no context is available a
|
/* Get a context for accessing dirmngr. If no context is available a
|
||||||
new one is created and - if requred - dirmngr started. On success
|
new one is created and - if required - dirmngr started. On success
|
||||||
an assuan context is stored at R_CTX. This Context may only be
|
an assuan context is stored at R_CTX. This context may only be
|
||||||
released by means of close_context. Note that NULL is stored at
|
released by means of close_context. Note that NULL is stored at
|
||||||
R_CTX on error. */
|
R_CTX on error. */
|
||||||
static gpg_error_t
|
static gpg_error_t
|
||||||
@ -199,7 +200,7 @@ open_context (ctrl_t ctrl, assuan_context_t *r_ctx)
|
|||||||
xfree (dml);
|
xfree (dml);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
/* To be on the Pth thread safe site we need to add it to a
|
/* To be on the nPth thread safe site we need to add it to a
|
||||||
list; this is far easier than to have a lock for this
|
list; this is far easier than to have a lock for this
|
||||||
function. It should not happen anyway but the code is free
|
function. It should not happen anyway but the code is free
|
||||||
because we need it for the is_active check above. */
|
because we need it for the is_active check above. */
|
||||||
|
@ -1650,13 +1650,16 @@ keyserver_put (ctrl_t ctrl, strlist_t keyspecs,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Loop over all URLs in STRLIST and fetch the key that URL. Note
|
||||||
|
that the fetch operation ignores the configured key servers and
|
||||||
|
instead directly retrieves the keys. */
|
||||||
int
|
int
|
||||||
keyserver_fetch (ctrl_t ctrl, strlist_t urilist)
|
keyserver_fetch (ctrl_t ctrl, strlist_t urilist)
|
||||||
{
|
{
|
||||||
gpg_error_t err;
|
gpg_error_t err;
|
||||||
strlist_t sl;
|
strlist_t sl;
|
||||||
estream_t datastream;
|
estream_t datastream;
|
||||||
unsigned int options = opt.keyserver_options.import_options;
|
unsigned int save_options = opt.keyserver_options.import_options;
|
||||||
|
|
||||||
/* Switch on fast-import, since fetch can handle more than one
|
/* Switch on fast-import, since fetch can handle more than one
|
||||||
import and we don't want each set to rebuild the trustdb.
|
import and we don't want each set to rebuild the trustdb.
|
||||||
@ -1686,7 +1689,7 @@ keyserver_fetch (ctrl_t ctrl, strlist_t urilist)
|
|||||||
es_fclose (datastream);
|
es_fclose (datastream);
|
||||||
}
|
}
|
||||||
|
|
||||||
opt.keyserver_options.import_options = options;
|
opt.keyserver_options.import_options = save_options;
|
||||||
|
|
||||||
/* If the original options didn't have fast import, and the trustdb
|
/* If the original options didn't have fast import, and the trustdb
|
||||||
is dirty, rebuild. */
|
is dirty, rebuild. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user