Skip to content

Commit 42b0e95

Browse files
dkgdd9jn
authored andcommitted
indent: Fix spelling
-- These are non-substantive corrections for minor spelling mistakes within the GnuPG codebase. With something like this applied to the codebase, and a judiciously tuned spellchecker integrated as part of a standard test suite, it should be possible to keep a uniform orthography within the project. GnuPG-bug-id: 7116
1 parent 253a701 commit 42b0e95

File tree

136 files changed

+233
-233
lines changed

Some content is hidden

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

136 files changed

+233
-233
lines changed

agent/agent.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ struct
121121
/* Flag disallowing bypassing of the warning. */
122122
int enforce_passphrase_constraints;
123123

124-
/* The require minmum length of a passphrase. */
124+
/* The required minimum length of a passphrase. */
125125
unsigned int min_passphrase_len;
126126

127127
/* The minimum number of non-alpha characters in a passphrase. */
@@ -286,7 +286,7 @@ struct server_control_s
286286
int algo;
287287
unsigned char value[MAX_DIGEST_LEN];
288288
unsigned int raw_value: 1;
289-
unsigned int is_pss: 1; /* DATA holds PSS formated data. */
289+
unsigned int is_pss: 1; /* DATA holds PSS formatted data. */
290290
} digest;
291291
unsigned int have_keygrip: 1;
292292
unsigned int have_keygrip1: 1;

agent/call-pinentry.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ struct inq_cb_parm_s
884884
};
885885

886886

887-
/* Return true if PIN is indentical to the last generated pin. */
887+
/* Return true if PIN is identical to the last generated pin. */
888888
static int
889889
is_generated_pin (struct inq_cb_parm_s *parm, const char *pin)
890890
{

agent/command.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ reset_notify (assuan_context_t ctx, char *line)
251251

252252
clear_nonce_cache (ctrl);
253253

254-
/* Note that a RESET does not clear the ephemeral store becuase
254+
/* Note that a RESET does not clear the ephemeral store because
255255
* clients are used to issue a RESET on a connection. */
256256

257257
return 0;

agent/divert-scd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ has_percent0A_suffix (const char *string)
9090
9191
INFO gets displayed as part of a generic string. However if the
9292
first character of INFO is a vertical bar all up to the next
93-
verical bar are considered flags and only everything after the
93+
vertical bar are considered flags and only everything after the
9494
second vertical bar gets displayed as the full prompt.
9595
9696
Flags:

agent/findkey.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ agent_key_from_file (ctrl_t ctrl, const char *cache_nonce,
15501550
{
15511551
memcpy (*shadow_info, s, n);
15521552
/*
1553-
* When it's a key on card (not on tpm2), maks sure
1553+
* When it's a key on card (not on tpm2), make sure
15541554
* it's available.
15551555
*/
15561556
if (strcmp (shadow_type, "t1-v1") == 0 && !grip)

agent/gpg-agent.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ main (int argc, char **argv)
12161216
* Now we are now working under our real uid
12171217
*/
12181218

1219-
/* The configuraton directories for use by gpgrt_argparser. */
1219+
/* The configuration directories for use by gpgrt_argparser. */
12201220
gpgrt_set_confdir (GPGRT_CONFDIR_SYS, gnupg_sysconfdir ());
12211221
gpgrt_set_confdir (GPGRT_CONFDIR_USER, gnupg_homedir ());
12221222

@@ -1225,7 +1225,7 @@ main (int argc, char **argv)
12251225
pargs.argc = &argc;
12261226
pargs.argv = &argv;
12271227
/* We are re-using the struct, thus the reset flag. We OR the
1228-
* flags so that the internal intialized flag won't be cleared. */
1228+
* flags so that the internal initialized flag won't be cleared. */
12291229
pargs.flags |= (ARGPARSE_FLAG_RESET
12301230
| ARGPARSE_FLAG_KEEP
12311231
| ARGPARSE_FLAG_SYS

agent/protect.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ do_encryption (const unsigned char *hashbegin, size_t hashlen,
509509
((sha1 salt no_of_iterations) 16byte_iv)
510510
encrypted_octet_string)
511511
512-
in canoncical format of course. We use asprintf and %n modifier
512+
in canonical format of course. We use asprintf and %n modifier
513513
and dummy values as placeholders. */
514514
{
515515
char countbuf[35];

agent/sexp-secret.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "../common/sexp-parse.h"
2323

2424
/*
25-
* When it's for ECC, fixup private key part in the cannonical SEXP
25+
* When it's for ECC, fixup private key part in the canonical SEXP
2626
* representation in BUF. If not ECC, do nothing.
2727
*/
2828
gpg_error_t

agent/trustlist.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static const char headerblurb[] =
6363
"# well as empty lines are ignored. Lines have a length limit but this\n"
6464
"# is not a serious limitation as the format of the entries is fixed and\n"
6565
"# checked by gpg-agent. A non-comment line starts with optional white\n"
66-
"# space, followed by the SHA-1 fingerpint in hex, followed by a flag\n"
66+
"# space, followed by the SHA-1 fingerprint in hex, followed by a flag\n"
6767
"# which may be one of 'P', 'S' or '*' and optionally followed by a list of\n"
6868
"# other flags. The fingerprint may be prefixed with a '!' to mark the\n"
6969
"# key as not trusted. You should give the gpg-agent a HUP or run the\n"
@@ -736,7 +736,7 @@ agent_marktrusted (ctrl_t ctrl, const char *name, const char *fpr, int flag)
736736
insert a line break. The double percent sign is actually
737737
needed because it is also a printf format string. If you
738738
need to insert a plain % sign, you need to encode it as
739-
"%%25". The second "%s" gets replaced by a hexdecimal
739+
"%%25". The second "%s" gets replaced by a hexadecimal
740740
fingerprint string whereas the first one receives the name
741741
as stored in the certificate. */
742742
L_("Please verify that the certificate identified as:%%0A"

build-aux/speedo.mk

+3-3
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ MAKE_J=6
188188

189189
INST_NAME=gnupg-w32
190190

191-
# Use this to override the installaion directory for native builds.
191+
# Use this to override the installation directory for native builds.
192192
INSTALL_PREFIX=none
193193

194194
# Set this to the location of wixtools
195195
WIXPREFIX=$(shell readlink -f ~/w32root/wixtools)
196196

197-
# If patchelf(1) is not availale disable the command.
197+
# If patchelf(1) is not available disable the command.
198198
PATCHELF := $(shell patchelf --version 2>/dev/null >/dev/null || echo "echo please run: ")patchelf
199199

200200
# Read signing information from ~/.gnupg-autogen.rc
@@ -1401,7 +1401,7 @@ endif
14011401

14021402

14031403
#
1404-
# Check availibility of standard tools and prepare everything.
1404+
# Check availability of standard tools and prepare everything.
14051405
#
14061406
check-tools: $(stampdir)/stamp-directories
14071407

build-aux/speedo/w32/README.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Below is the README file as distributed with the GnuPG source.
6060
4. Software Versions of the Included Packages
6161
=============================================
6262

63-
GnuPG for Windows depends on several independet developed packages
63+
GnuPG for Windows depends on several independent developed packages
6464
which are part of the installation. These packages along with their
6565
version numbers and the SHA-1 checksums of their compressed tarballs
6666
are listed here:

build-aux/speedo/w32/g4wihelp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
************************************************************
2525
* The code for the splash screen has been taken from the Splash
2626
* plugin of the NSIS 2.04 distribution. That code comes without
27-
* explicit copyright notices in tyhe source files or author names, it
27+
* explicit copyright notices in the source files or author names, it
2828
* seems that it has been written by Justin Frankel; not sure about
2929
* the year, though. [wk 2005-11-28]
3030
*

common/asshelp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ get_assuan_server_version (assuan_context_t ctx, int mode, char **r_version)
695695

696696
/* Print a warning if the server's version number is less than our
697697
* version number. Returns an error code on a connection problem.
698-
* CTX is the Assuan context, SERVERNAME is the name of teh server,
698+
* CTX is the Assuan context, SERVERNAME is the name of the server,
699699
* STATUS_FUNC and STATUS_FUNC_DATA is a callback to emit status
700700
* messages. If PRINT_HINTS is set additional hints are printed. For
701701
* MODE see get_assuan_server_version. */

common/audit.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct log_item_s
4444
gpg_error_t err; /* The logged error code. */
4545
int intvalue; /* A logged integer value. */
4646
char *string; /* A malloced string or NULL. */
47-
ksba_cert_t cert; /* A certifciate or NULL. */
47+
ksba_cert_t cert; /* A certificate or NULL. */
4848
unsigned int have_err:1;
4949
unsigned int have_intvalue:1;
5050
};

common/audit.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ typedef enum
7676
/* The signature is a detached one. */
7777

7878
AUDIT_CERT_ONLY_SIG,
79-
/* A certifciate only signature has been detected. */
79+
/* A certificate only signature has been detected. */
8080

8181
AUDIT_DATA_HASH_ALGO, /* int */
8282
/* The hash algo given as argument is used for the data. This

common/compliance.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static int module;
4242

4343
/* This value is used by DSA and RSA checks in addition to the hard
4444
* coded length checks. It allows one to increase the required key length
45-
* using a confue file. */
45+
* using a config file. */
4646
static unsigned int min_compliant_rsa_length;
4747

4848
/* Return the address of a compliance cache variable for COMPLIANCE.

common/dotlock.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ dotlock_take_unix (dotlock_t h, long timeout)
14501450
int wtimereal;
14511451

14521452
if (ownerchanged)
1453-
wtime = 0; /* Reset because owner chnaged. */
1453+
wtime = 0; /* Reset because owner changed. */
14541454

14551455
wtimereal = next_wait_interval (&wtime, &timeout);
14561456
if (!timeout)

common/gettime.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ timegm (struct tm *tm)
124124

125125
/* Version of the GNU timegm which returns an unsigned 64 bit integer
126126
* instead of the usually signed time_t. On error (uint64_t)(-1) is
127-
* returned. This function is mostly here becuase on 32 bit Windows
127+
* returned. This function is mostly here because on 32 bit Windows
128128
* we have an internal API to get the system time even after
129129
* 2023-01-19. For 32 bit Unix we need to suffer from the too short
130130
* time_t and no system function to construct the time from a tm. */

common/homedir.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ gnupg_daemon_rootdir (void)
10891089

10901090
n = GetSystemDirectoryA (path, sizeof path);
10911091
if (!n || n >= sizeof path)
1092-
name = xstrdup ("/"); /* Error - use the curret top dir instead. */
1092+
name = xstrdup ("/"); /* Error - use the current top dir instead. */
10931093
else
10941094
name = xstrdup (path);
10951095
gpgrt_annotate_leaked_object (name);
@@ -1306,7 +1306,7 @@ _gnupg_socketdir_internal (int skip_checks, unsigned *r_info)
13061306
strcat (prefixbuffer, gnupgname);
13071307
}
13081308

1309-
/* Check whether the gnupg sub directory (or the specified diretory)
1309+
/* Check whether the gnupg sub directory (or the specified directory)
13101310
* has proper permissions. */
13111311
if (stat (prefix, &sb))
13121312
{

common/iobuf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ iobuf_ioctl (iobuf_t a, iobuf_ioctl_t cmd, int intval, void *ptrval)
16701670
/* Peek at a justed opened file. Use this only directly after a
16711671
* file has been opened for reading. Don't use it after you did
16721672
* a seek. This works only if just file filter has been
1673-
* pushed. Expects a buffer wit size INTVAL at PTRVAL and returns
1673+
* pushed. Expects a buffer with size INTVAL at PTRVAL and returns
16741674
* the number of bytes put into the buffer. */
16751675
if (DBG_IOBUF)
16761676
log_debug ("iobuf-%d.%d: ioctl '%s' peek\n",

common/iobuf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ struct iobuf_struct
204204
byte *buf;
205205
} d;
206206

207-
/* A external drain buffer for reading/writting data skipping internal
207+
/* A external drain buffer for reading/writing data skipping internal
208208
draint buffer D.BUF. This allows zerocopy operation reducing
209209
processing overhead across filter stack.
210210

common/mkdir_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
/* Create a directory as well as any missing parents.
3636
37-
The arguments must be NULL termianted. If DIRECTORY_COMPONENTS...
37+
The arguments must be NULL terminated. If DIRECTORY_COMPONENTS...
3838
consists of two elements, "foo/bar" and "xyzzy", this function will
3939
first try to create the directory "foo/bar" and then the directory
4040
"foo/bar/xyzzy". On success returns 0, otherwise an error code is

common/openpgp-fpr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ compute_openpgp_fpr (int keyversion, int pgpalgo, unsigned long timestamp,
136136
/* log_printhex (iov[i].data, iov[i].len, "cmpfpr i=%d: ", i); */
137137

138138
err = gcry_md_hash_buffers (hashalgo, 0, result, iov, iovcnt);
139-
/* log_printhex (result, 20, "fingerpint: "); */
139+
/* log_printhex (result, 20, "fingerprint: "); */
140140

141141
/* Better clear the first element because it was set by us. */
142142
iov[0].size = 0;

common/openpgp-oid.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ make_flagged_int (unsigned long value, char *buf, size_t buflen)
129129

130130
/* fixme: figure out the number of bits in an ulong and start with
131131
that value as shift (after making it a multiple of 7) a more
132-
straigtforward implementation is to do it in reverse order using
132+
straightforward implementation is to do it in reverse order using
133133
a temporary buffer - saves a lot of compares */
134134
for (more=0, shift=28; shift > 0; shift -= 7)
135135
{

common/session-env.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ session_env_putenv (session_env_t se, const char *string)
315315
}
316316

317317

318-
/* Same as session_env_putenv but with name and value given as distict
318+
/* Same as session_env_putenv but with name and value given as distinct
319319
values. */
320320
gpg_error_t
321321
session_env_setenv (session_env_t se, const char *name, const char *value)
@@ -355,7 +355,7 @@ session_env_getenv (session_env_t se, const char *name)
355355
object. The returned value is valid as long as SE is valid and as
356356
long it has not been removed or updated by a call to
357357
session_env_putenv. If the variable does not exist, the function
358-
tries to return the value trough a call to getenv; if that returns
358+
tries to return the value through a call to getenv; if that returns
359359
a value, this value is recorded and used. If no value could be
360360
found, returns NULL. The caller must not change the returned
361361
value. */

common/sexp-parse.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ smatch (unsigned char const **buf, size_t buflen, const char *token)
104104
return 1;
105105
}
106106

107-
/* Format VALUE for use as the length indicatior of an S-expression.
107+
/* Format VALUE for use as the length indicator of an S-expression.
108108
The caller needs to provide a buffer HELP_BUFFER with a length of
109109
HELP_BUFLEN. The return value is a pointer into HELP_BUFFER with
110110
the formatted length string. The colon and a trailing nul are

common/sexputil.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ make_canon_sexp_pad (gcry_sexp_t sexp, int secure,
199199
}
200200

201201
/* Return the so called "keygrip" which is the SHA-1 hash of the
202-
public key parameters expressed in a way dependend on the algorithm.
202+
public key parameters expressed in a way dependent on the algorithm.
203203
204204
KEY is expected to be an canonical encoded S-expression with a
205205
public or private key. KEYLEN is the length of that buffer.
@@ -1195,7 +1195,7 @@ cipher_mode_to_string (int mode)
11951195
}
11961196
}
11971197

1198-
/* Return the cannonical name of the ECC curve in KEY. */
1198+
/* Return the canonical name of the ECC curve in KEY. */
11991199
const char *
12001200
get_ecc_curve_from_key (gcry_sexp_t key)
12011201
{

common/sysutils.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ translate_sys2libc_fd_int (int fd, int for_write)
588588
/*
589589
* Parse the string representation of a file reference (file handle on
590590
* Windows or file descriptor on POSIX) in FDSTR. The string
591-
* representation may be either of folllowing:
591+
* representation may be either of following:
592592
593593
* (1) 0, 1, or 2 which means stdin, stdout, and stderr, respectively.
594594
* (2) Integer representation (by %d of printf).
@@ -1106,7 +1106,7 @@ modestr_to_mode (const char *modestr, mode_t oldmode)
11061106
int
11071107
gnupg_mkdir (const char *name, const char *modestr)
11081108
{
1109-
/* Note that gpgrt_mkdir also sets ERRNO in addition to returing an
1109+
/* Note that gpgrt_mkdir also sets ERRNO in addition to returning an
11101110
* gpg-error style error code. */
11111111
return gpgrt_mkdir (name, modestr);
11121112
}

common/t-iobuf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030

3131
/* The whole code here does not very fill into our general test frame
32-
* work patter. But let's keep it as it is. */
32+
* work pattern. But let's keep it as it is. */
3333

3434
#include <config.h>
3535
#include <stdio.h>

common/tlv-builder.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ ensure_space (tlv_builder_t tb)
9595
* element is described by CLASS, TAG, VALUE, and VALUEEN. CLASS and
9696
* TAG must describe a primitive element and (VALUE,VALUELEN) specify
9797
* its value. The value is a pointer and its object must not be
98-
* changed as long as the instance TB exists. For a TAG_NULL no vlaue
98+
* changed as long as the instance TB exists. For a TAG_NULL no value
9999
* is expected. Errors are not returned but recorded for later
100100
* retrieval. */
101101
void

common/tlv-parser.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct bufferlist_s
4242
/* An object to control the ASN.1 parsing. */
4343
struct tlv_parser_s
4444
{
45-
/* The orginal buffer with the entire pkcs#12 object and its length. */
45+
/* The original buffer with the entire pkcs#12 object and its length. */
4646
const unsigned char *origbuffer;
4747
size_t origbufsize;
4848

common/tlv.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void tlv_builder_add_end (tlv_builder_t tb);
141141
gpg_error_t tlv_builder_finalize (tlv_builder_t tb,
142142
void **r_obj, size_t *r_objlen);
143143

144-
/* Wite a TLV header to MEMBUF. */
144+
/* Write a TLV header to MEMBUF. */
145145
void put_tlv_to_membuf (membuf_t *membuf, int class, int tag,
146146
int constructed, size_t length);
147147

common/util.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ void setup_libgcrypt_logging (void);
323323
/* Print an out of core message and die. */
324324
void xoutofcore (void);
325325

326-
/* Wrapper aroung gpgrt_reallocarray. Uses the gpgrt alloc function
326+
/* Wrapper around gpgrt_reallocarray. Uses the gpgrt alloc function
327327
* which redirects to the Libgcrypt versions via
328328
* init_common_subsystems. Thus this can be used interchangeable with
329329
* the other alloc functions. */

configure.ac

+2-2
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,7 @@ if test "$build_tpm2d" = "yes"; then
16011601
# until version 2.4.0.
16021602
#
16031603
# Note: the missing API is fairly serious and is also easily backportable
1604-
# so keep the check below as is intead of going by library version number.
1604+
# so keep the check below as is instead of going by library version number.
16051605
##
16061606
AC_CHECK_LIB(tss2-esys, Esys_TR_GetTpmHandle, [], [
16071607
AC_MSG_WARN([Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)])
@@ -1638,7 +1638,7 @@ if test "$GCC" = yes; then
16381638
mycflags=
16391639
mycflags_save=$CFLAGS
16401640

1641-
# Check whether gcc does not emit a diagnositc for unknown -Wno-*
1641+
# Check whether gcc does not emit a diagnostic for unknown -Wno-*
16421642
# options. This is the case for gcc >= 4.6
16431643
AC_MSG_CHECKING([if gcc ignores unknown -Wno-* options])
16441644
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[

0 commit comments

Comments
 (0)