Skip to content

Commit 0904b8e

Browse files
committed
Spelling cleanup.
No functional changes, just fixing minor spelling issues. --- Most of these were identified from the command line by running: codespell \ --ignore-words-list fpr,stati,keyserver,keyservers,asign,cas,iff,ifset \ --skip '*.po,ChangeLog*,help.*.txt,*.jpg,*.eps,*.pdf,*.png,*.gpg,*.asc' \ doc g13 g10 kbx agent artwork scd tests tools am common dirmngr sm \ NEWS README README.maint TODO Signed-off-by: Daniel Kahn Gillmor <[email protected]>
1 parent 0e1cbab commit 0904b8e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+122
-122
lines changed

NEWS

+3-3
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ Noteworthy changes in version 2.3.0 (unreleased)
299299

300300
Changes also found in 2.2.11:
301301

302-
* gpgsm: Fix CRL loading when intermediate certicates are not yet
302+
* gpgsm: Fix CRL loading when intermediate certificates are not yet
303303
trusted.
304304

305305
* gpgsm: Fix an error message about the digest algo. [#4219]
@@ -634,7 +634,7 @@ Noteworthy changes in version 2.3.0 (unreleased)
634634

635635
* gpgsm: Do not expect X.509 keyids to be unique. [#1644]
636636

637-
* agent: Fix stucked Pinentry when using --max-passphrase-days. [#3190]
637+
* agent: Fix stuck Pinentry when using --max-passphrase-days. [#3190]
638638

639639
* agent: New option --s2k-count. [#3276 (workaround)]
640640

@@ -1910,7 +1910,7 @@ Noteworthy changes in version 2.1.0 (2014-11-06)
19101910

19111911
* scdaemon: Rename option --disable-pinpad (was --disable-keypad).
19121912

1913-
* scdaemon: Better support fo CCID readers. Now, internal CCID
1913+
* scdaemon: Better support for CCID readers. Now, internal CCID
19141914
driver supports readers with no auto configuration feature.
19151915

19161916
* dirmngr: Removed support for the original HKP keyserver which is

agent/agent.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#define MAX_DIGEST_LEN 64
4949

5050
/* The maximum length of a passphrase (in bytes). Note: this is
51-
further contrained by the Assuan line length (and any other text on
51+
further constrained by the Assuan line length (and any other text on
5252
the same line). However, the Assuan line length is 1k bytes so
5353
this shouldn't be a problem in practice. */
5454
#define MAX_PASSPHRASE_LEN 255
@@ -126,7 +126,7 @@ struct
126126
int enable_passphrase_history;
127127

128128
/* If set the extended key format is used for new keys. Note that
129-
* this may vave the value 2 in which case
129+
* this may have the value 2 in which case
130130
* --disable-extended-key-format won't have any effect and thus
131131
* effectivley locking it. This is required to support existing
132132
* profiles which lock the use of --enable-extended-key-format. */

agent/cache.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ housekeeping (void)
205205
for (r=thecache; r; r = r->next)
206206
{
207207
if (r->cache_mode == CACHE_MODE_PIN)
208-
; /* Don't let it expire - scdaemon explictly flushes them. */
208+
; /* Don't let it expire - scdaemon explicitly flushes them. */
209209
else if (r->pw && r->ttl >= 0 && r->accessed + r->ttl < current)
210210
{
211211
if (DBG_CACHE)

agent/command-ssh.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ ssh_signature_encoder_dsa (ssh_key_type_spec_t *spec,
15081508

15091509
/* DSA specific code. */
15101510

1511-
/* FIXME: Why this complicated code? Why collecting boths mpis in a
1511+
/* FIXME: Why this complicated code? Why collecting both mpis in a
15121512
buffer instead of writing them out one after the other? */
15131513
for (i = 0; i < 2; i++)
15141514
{

agent/command.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ static const char hlp_setkeydesc[] =
656656
"Set a description to be used for the next PKSIGN, PKDECRYPT, IMPORT_KEY\n"
657657
"or EXPORT_KEY operation if this operation requires a passphrase. If\n"
658658
"this command is not used a default text will be used. Note, that\n"
659-
"this description implictly selects the label used for the entry\n"
659+
"this description implicitly selects the label used for the entry\n"
660660
"box; if the string contains the string PIN (which in general will\n"
661661
"not be translated), \"PIN\" is used, otherwise the translation of\n"
662662
"\"passphrase\" is used. The description string should not contain\n"

agent/findkey.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ write_extended_private_key (char *fname, estream_t fp, int update,
199199

200200
/* Write an S-expression formatted key to our key storage. With FORCE
201201
* passed as true an existing key with the given GRIP will get
202-
* overwritten. If SERIALNO and KEYREF are give an a Token line is added to
203-
* th key if the extended format ist used. */
202+
* overwritten. If SERIALNO and KEYREF are given a Token line is added to
203+
* the key if the extended format is used. */
204204
int
205205
agent_write_private_key (const unsigned char *grip,
206206
const void *buffer, size_t length, int force,

agent/gpg-agent.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2030,7 +2030,7 @@ agent_copy_startup_env (ctrl_t ctrl)
20302030
Fixme: Due to the way the argument parsing works, we create a
20312031
memory leak here for all string type arguments. There is currently
20322032
no clean way to tell whether the memory for the argument has been
2033-
allocated or points into the process' original arguments. Unless
2033+
allocated or points into the process's original arguments. Unless
20342034
we have a mechanism to tell this, we need to live on with this. */
20352035
static void
20362036
reread_configuration (void)

agent/pksign.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ agent_pksign_do (ctrl_t ctrl, const char *cache_nonce,
349349

350350
if (agent_card_serialno (ctrl, &serialno, NULL))
351351
{
352-
/* No card availabale or error reading the card. */
352+
/* No card available or error reading the card. */
353353
err = gpg_error (GPG_ERR_NO_SECKEY);
354354
goto leave;
355355
}

agent/w32main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ static HWND glob_hwnd;
4040
number of args to reserve before the first one. This code is based
4141
on Alexandre Julliard's LGPLed wine-0.9.34/dlls/kernel32/process.c
4242
and modified to fit into our framework. The function returns NULL
43-
on error; on success an arry with the argiments is returned. This
44-
array has been allocaqted using a plain malloc (and not the usual
43+
on error; on success an array with the arguments is returned. This
44+
array has been allocated using a plain malloc (and not the usual
4545
xtrymalloc). */
4646
static char **
4747
build_argv (char *cmdline_arg, int reserved)

common/argparse.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
/* This file may be used as part of GnuPG or standalone. A GnuPG
2424
build is detected by the presence of the macro GNUPG_MAJOR_VERSION.
25-
Some feature are only availalbe in the GnuPG build mode.
25+
Some feature are only available in the GnuPG build mode.
2626
*/
2727

2828
#ifdef HAVE_CONFIG_H

common/asshelp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ start_new_service (assuan_context_t *r_ctx,
600600
}
601601

602602

603-
/* Try to connect tothe agent or start a new one. */
603+
/* Try to connect to the agent or start a new one. */
604604
gpg_error_t
605605
start_new_gpg_agent (assuan_context_t *r_ctx,
606606
gpg_err_source_t errsource,

common/asshelp2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
static assuan_context_t (*the_assuan_ctx_func)(ctrl_t ctrl);
4646

4747

48-
/* Set FUNC to be used as a mapping fucntion from CTRL to an assuan
48+
/* Set FUNC to be used as a mapping function from CTRL to an assuan
4949
* context. Pass NULL for FUNC to disable the use of the assuan
5050
* context in this module. */
5151
void

common/audit.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void writeout_rem (audit_ctx_t ctx,
8080

8181

8282
/* Add NAME to the list of help tags. NAME needs to be a const string
83-
an this function merly stores this pointer. */
83+
an this function merely stores this pointer. */
8484
static void
8585
add_helptag (audit_ctx_t ctx, const char *name)
8686
{

common/dotlock.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
that the handle shall only be used by one thread at a time. This
125125
function creates a unique file temporary file (".#lk*") in the same
126126
directory as FNAME and returns a handle for further operations.
127-
The module keeps track of theses unique files so that they will be
127+
The module keeps track of these unique files so that they will be
128128
unlinked using the atexit handler. If you don't need the lock file
129129
anymore, you may also explicitly remove it with a call to:
130130
@@ -1110,7 +1110,7 @@ dotlock_take_unix (dotlock_t h, long timeout)
11101110
}
11111111
else if ( same_node && kill (pid, 0) && errno == ESRCH )
11121112
{
1113-
/* Note: It is unlikley that we get a race here unless a pid is
1113+
/* Note: It is unlikely that we get a race here unless a pid is
11141114
reused too fast or a new process with the same pid as the one
11151115
of the stale file tries to lock right at the same time as we. */
11161116
my_info_1 (_("removing stale lockfile (created by %d)\n"), pid);

common/exectool.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ copy_buffer_flush (struct copy_buffer *c, estream_t sink)
305305
/* Run the program PGMNAME with the command line arguments given in
306306
* the NULL terminates array ARGV. If INPUT is not NULL it will be
307307
* fed to stdin of the process. stderr is logged using log_info and
308-
* the process' stdout is written to OUTPUT. If OUTPUT is NULL the
308+
* the process's stdout is written to OUTPUT. If OUTPUT is NULL the
309309
* output is discarded. If INEXTRA is given, an additional input
310310
* stream will be passed to the child; to tell the child about this
311311
* ARGV is scanned and the first occurrence of an argument
@@ -582,7 +582,7 @@ nop_free (void *ptr)
582582
/* Run the program PGMNAME with the command line arguments given in
583583
the NULL terminates array ARGV. If INPUT_STRING is not NULL it
584584
will be fed to stdin of the process. stderr is logged using
585-
log_info and the process' stdout is returned in a newly malloced
585+
log_info and the process's stdout is returned in a newly malloced
586586
buffer RESULT with the length stored at RESULTLEN if not given as
587587
NULL. A hidden Nul is appended to the output. On error NULL is
588588
stored at RESULT, a diagnostic is printed, and an error code

common/exectool.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ typedef void (*exec_tool_status_cb_t) (void *opaque,
4646
/* Run the program PGMNAME with the command line arguments given in
4747
the NULL terminates array ARGV. If INPUT_STRING is not NULL it
4848
will be fed to stdin of the process. stderr is logged using
49-
log_info and the process' stdout is returned in a newly malloced
49+
log_info and the process's stdout is returned in a newly malloced
5050
buffer RESULT with the length stored at RESULTLEN if not given as
5151
NULL. A hidden Nul is appended to the output. On error NULL is
5252
stored at RESULT, a diagnostic is printed, and an error code
@@ -58,7 +58,7 @@ gpg_error_t gnupg_exec_tool (const char *pgmname, const char *argv[],
5858
/* Run the program PGMNAME with the command line arguments given in
5959
the NULL terminates array ARGV. If INPUT is not NULL it will be
6060
fed to stdin of the process. stderr is logged using log_info and
61-
the process' stdout is written to OUTPUT. On error a diagnostic is
61+
the process's stdout is written to OUTPUT. On error a diagnostic is
6262
printed, and an error code returned. INEXTRA is reserved. */
6363
gpg_error_t gnupg_exec_tool_stream (const char *pgmname, const char *argv[],
6464
estream_t input, estream_t inextra,

common/homedir.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static byte w32_portable_app;
8787
#endif /*HAVE_W32_SYSTEM*/
8888

8989
#ifdef HAVE_W32_SYSTEM
90-
/* This flag is true if this process' binary has been installed under
90+
/* This flag is true if this process's binary has been installed under
9191
bin and not in the root directory as often used before GnuPG 2.1. */
9292
static byte w32_bin_is_bin;
9393
#endif /*HAVE_W32_SYSTEM*/

common/percent.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* function returns the new string or NULL in case of a malloc
4242
* failure.
4343
*
44-
* Note that this fucntion also escapes the quote character to work
44+
* Note that this function also escapes the quote character to work
4545
* around a bug in the mingw32 runtime which does not correctly handle
4646
* command line quoting. We correctly double the quote mark when
4747
* calling a program (i.e. gpg-protect-tool), but the pre-main code

common/session-env.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ session_env_getenv_or_default (session_env_t se, const char *name,
375375
until it returns NULL. The value is returned at R_VALUE. If
376376
R_DEFAULT is not NULL, the default flag is stored on return. The
377377
default flag indicates that the value has been taken from the
378-
process' environment. The caller must not change the returned
378+
process's environment. The caller must not change the returned
379379
name or value. */
380380
char *
381381
session_env_listenv (session_env_t se, int *iterator,

common/t-name-value.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ run_modification_tests (void)
350350
assert (!err);
351351
e = nvc_lookup (pk, "Key:");
352352
assert (e);
353-
nvc_delete_named (pk, "Kez:"); /* Delete an inexistant name. */
353+
nvc_delete_named (pk, "Kez:"); /* Delete an nonexistent name. */
354354
e = nvc_lookup (pk, "Key:");
355355
assert (e);
356356
nvc_delete_named (pk, "Key:");

common/t-openpgp-oid.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ test_get_keyalgo_string (void)
274274
int oops = 0;
275275
int pass;
276276

277-
/* We do several passes becuase that is how the function is
277+
/* We do several passes because that is how the function is
278278
* called. */
279279
for (pass=0; pass < 3; pass++)
280280
for (idx=0; idx < DIM (samples); idx++)

common/t-percent.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ test_percent_data_escape (void)
222222
{
223223
/* Note extra condition above handles the one test case
224224
* which reverts a plus to a space due to the use of the
225-
* plus-unescape fucntion also for the prefix part. */
225+
* plus-unescape function also for the prefix part. */
226226
fail (i);
227227
}
228228
else if (memcmp (buf+prefixlen, tbl[i].data, tbl[i].datalen))

dirmngr/dirmngr.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ dirmngr_deinit_default_ctrl (ctrl_t ctrl)
16141614
/* Create a list of LDAP servers from the file FILENAME. Returns the
16151615
list or NULL in case of errors.
16161616
1617-
The format fo such a file is line oriented where empty lines and
1617+
The format of such a file is line oriented where empty lines and
16181618
lines starting with a hash mark are ignored. All other lines are
16191619
assumed to be colon seprated with these fields:
16201620
@@ -1821,7 +1821,7 @@ parse_ocsp_signer (const char *string)
18211821
Fixme: Due to the way the argument parsing works, we create a
18221822
memory leak here for all string type arguments. There is currently
18231823
no clean way to tell whether the memory for the argument has been
1824-
allocated or points into the process' original arguments. Unless
1824+
allocated or points into the process's original arguments. Unless
18251825
we have a mechanism to tell this, we need to live on with this. */
18261826
static void
18271827
reread_configuration (void)

dirmngr/dns.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7646,7 +7646,7 @@ int dns_so_check(struct dns_socket *so) {
76467646
goto udp_connect_retry;
76477647
} else if (error == ECONNREFUSED)
76487648
/* Error for previous socket operation may
7649-
be reserverd(?) asynchronously. */
7649+
be reserved(?) asynchronously. */
76507650
goto udp_connect_retry;
76517651

76527652
if (error)
@@ -8244,7 +8244,7 @@ struct dns_resolver *dns_res_open(struct dns_resolv_conf *resconf, struct dns_ho
82448244
/*
82458245
* Don't try to load it ourselves because a NULL object might be an
82468246
* error from, say, dns_resconf_root(), and loading
8247-
* dns_resconf_local() by default would create undesirable surpises.
8247+
* dns_resconf_local() by default would create undesirable surprises.
82488248
*/
82498249
if (!resconf || !hosts || !hints) {
82508250
if (!*_error)

dirmngr/http.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
- stpcpy is required
4040
- fixme: list other requirements.
4141
42-
- Either HTTP_USE_NTBTLS or HTTP_USE_GNUTLS must be defind to select
42+
- Either HTTP_USE_NTBTLS or HTTP_USE_GNUTLS must be defined to select
4343
which TLS library to use.
4444
4545
- With HTTP_NO_WSASTARTUP the socket initialization is not done

dirmngr/ldap-wrapper.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
* We can't use LDAP directly for these reasons:
2323
*
2424
* 1. The LDAP library is linked to separate crypto library like
25-
* OpenSSL and even if it is linked to the libary we use in dirmngr
25+
* OpenSSL and even if it is linked to the library we use in dirmngr
2626
* (ntbtls or gnutls) it is sometimes a different version of that
27-
* libary with all the surprising failures you may get due to this.
27+
* library with all the surprising failures you may get due to this.
2828
*
2929
* 2. It is huge library in particular if TLS comes into play. So
3030
* problems with unfreed memory might turn up and we don't want

dirmngr/ocsp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ do_ocsp_request (ctrl_t ctrl, ksba_ocsp_t ocsp,
305305
if (opt.verbose)
306306
log_info (_("OCSP responder at '%s' status: %s\n"), url, t);
307307

308-
/* Get the signature value now because we can all this fucntion
308+
/* Get the signature value now because we can all this function
309309
* only once. */
310310
*r_sigval = ksba_ocsp_get_sig_val (ocsp, r_produced_at);
311311

dirmngr/workqueue.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct wqitem_s
3838
* task is not associated with a specific session. */
3939
unsigned int session_id;
4040

41-
/* The function to perform the backgrount task. */
41+
/* The function to perform the background task. */
4242
wqtask_t func;
4343

4444
/* A string with the string argument for that task. */
@@ -59,7 +59,7 @@ workqueue_dump_queue (ctrl_t ctrl)
5959
wqitem_t item;
6060
unsigned int count;
6161

62-
/* Temporay detach the entiere workqueue so that other threads don't
62+
/* Temporarily detach the entiere workqueue so that other threads don't
6363
* get into our way. */
6464
saved_workqueue = workqueue;
6565
workqueue = NULL;

doc/Notes

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ the colon format if you want to manually debug things.
130130
> * How to import a CRL
131131

132132
CRLs are managed by the dirmngr which is a separate package. The idea
133-
is to eventaully turn it into a system daemon, so that on a multi-user
133+
is to eventually turn it into a system daemon, so that on a multi-user
134134
machine CRLs are handled more efficiently. As of now the dirmngr
135135
needs service from gpgsm thus it is best to call it through gpgsm:
136136

doc/dirmngr.texi

+1-1
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ as a binary blob.
10851085
@c
10861086
@c If no certificate was found, the function returns with the error
10871087
@c GPG_ERR_MISSING_CERT. Now the signature is verified. If this fails,
1088-
@c the erro is returned. On success the @code{validate_cert_chain} is
1088+
@c the error is returned. On success the @code{validate_cert_chain} is
10891089
@c used to verify that the certificate is actually valid.
10901090
@c
10911091
@c Here we may encounter a recursive situation:

doc/examples/pwpattern.list

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
# Reject the usual metavariables. Usual not required because
1212
# gpg-agent can be used to reject all passphrases shorter than 8
13-
# charactes.
13+
# characters.
1414
foo
1515
bar
1616
baz

doc/gpg-card.texi

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ same commands as available in the interactive mode are run from the
5656
command line. These commands need to be delimited with a double-dash.
5757
If a double-dash or a shell specific character is required as part of
5858
a command the entire command needs to be put in quotes. If one of
59-
those commands returns an error the remaining commands are mot anymore
59+
those commands returns an error the remaining commands are not anymore
6060
run unless the command was prefixed with a single dash.
6161

6262
A list of commands is available by using the command @code{help} and a

doc/gpg.texi

+2-2
Original file line numberDiff line numberDiff line change
@@ -3554,7 +3554,7 @@ on the configuration file.
35543554
@c @opindex use-only-openpgp-card
35553555
@c Only access OpenPGP card's and no other cards. This is a hidden
35563556
@c option which could be used in case an old use case required the
3557-
@c OpenPGP card while several cards are avaiable. This option might be
3557+
@c OpenPGP card while several cards are available. This option might be
35583558
@c removed if it turns out that nobody requires it.
35593559

35603560
@end table
@@ -3945,7 +3945,7 @@ The program returns 0 if there are no severe errors, 1 if at least a
39453945
signature was bad, and other error codes for fatal errors.
39463946

39473947
Note that signature verification requires exact knowledge of what has
3948-
been signed and by whom it has beensigned. Using only the return code
3948+
been signed and by whom it has been signed. Using only the return code
39493949
is thus not an appropriate way to verify a signature by a script.
39503950
Either make proper use or the status codes or use the @command{gpgv}
39513951
tool which has been designed to make signature verification easy for

0 commit comments

Comments
 (0)