mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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
This commit is contained in:
parent
253a701ed7
commit
42b0e9558a
136 changed files with 233 additions and 233 deletions
|
@ -695,7 +695,7 @@ get_assuan_server_version (assuan_context_t ctx, int mode, char **r_version)
|
|||
|
||||
/* Print a warning if the server's version number is less than our
|
||||
* version number. Returns an error code on a connection problem.
|
||||
* CTX is the Assuan context, SERVERNAME is the name of teh server,
|
||||
* CTX is the Assuan context, SERVERNAME is the name of the server,
|
||||
* STATUS_FUNC and STATUS_FUNC_DATA is a callback to emit status
|
||||
* messages. If PRINT_HINTS is set additional hints are printed. For
|
||||
* MODE see get_assuan_server_version. */
|
||||
|
|
|
@ -44,7 +44,7 @@ struct log_item_s
|
|||
gpg_error_t err; /* The logged error code. */
|
||||
int intvalue; /* A logged integer value. */
|
||||
char *string; /* A malloced string or NULL. */
|
||||
ksba_cert_t cert; /* A certifciate or NULL. */
|
||||
ksba_cert_t cert; /* A certificate or NULL. */
|
||||
unsigned int have_err:1;
|
||||
unsigned int have_intvalue:1;
|
||||
};
|
||||
|
|
|
@ -76,7 +76,7 @@ typedef enum
|
|||
/* The signature is a detached one. */
|
||||
|
||||
AUDIT_CERT_ONLY_SIG,
|
||||
/* A certifciate only signature has been detected. */
|
||||
/* A certificate only signature has been detected. */
|
||||
|
||||
AUDIT_DATA_HASH_ALGO, /* int */
|
||||
/* The hash algo given as argument is used for the data. This
|
||||
|
|
|
@ -42,7 +42,7 @@ static int module;
|
|||
|
||||
/* This value is used by DSA and RSA checks in addition to the hard
|
||||
* coded length checks. It allows one to increase the required key length
|
||||
* using a confue file. */
|
||||
* using a config file. */
|
||||
static unsigned int min_compliant_rsa_length;
|
||||
|
||||
/* Return the address of a compliance cache variable for COMPLIANCE.
|
||||
|
|
|
@ -1450,7 +1450,7 @@ dotlock_take_unix (dotlock_t h, long timeout)
|
|||
int wtimereal;
|
||||
|
||||
if (ownerchanged)
|
||||
wtime = 0; /* Reset because owner chnaged. */
|
||||
wtime = 0; /* Reset because owner changed. */
|
||||
|
||||
wtimereal = next_wait_interval (&wtime, &timeout);
|
||||
if (!timeout)
|
||||
|
|
|
@ -124,7 +124,7 @@ timegm (struct tm *tm)
|
|||
|
||||
/* Version of the GNU timegm which returns an unsigned 64 bit integer
|
||||
* instead of the usually signed time_t. On error (uint64_t)(-1) is
|
||||
* returned. This function is mostly here becuase on 32 bit Windows
|
||||
* returned. This function is mostly here because on 32 bit Windows
|
||||
* we have an internal API to get the system time even after
|
||||
* 2023-01-19. For 32 bit Unix we need to suffer from the too short
|
||||
* time_t and no system function to construct the time from a tm. */
|
||||
|
|
|
@ -1089,7 +1089,7 @@ gnupg_daemon_rootdir (void)
|
|||
|
||||
n = GetSystemDirectoryA (path, sizeof path);
|
||||
if (!n || n >= sizeof path)
|
||||
name = xstrdup ("/"); /* Error - use the curret top dir instead. */
|
||||
name = xstrdup ("/"); /* Error - use the current top dir instead. */
|
||||
else
|
||||
name = xstrdup (path);
|
||||
gpgrt_annotate_leaked_object (name);
|
||||
|
@ -1306,7 +1306,7 @@ _gnupg_socketdir_internal (int skip_checks, unsigned *r_info)
|
|||
strcat (prefixbuffer, gnupgname);
|
||||
}
|
||||
|
||||
/* Check whether the gnupg sub directory (or the specified diretory)
|
||||
/* Check whether the gnupg sub directory (or the specified directory)
|
||||
* has proper permissions. */
|
||||
if (stat (prefix, &sb))
|
||||
{
|
||||
|
|
|
@ -1670,7 +1670,7 @@ iobuf_ioctl (iobuf_t a, iobuf_ioctl_t cmd, int intval, void *ptrval)
|
|||
/* Peek at a justed opened file. Use this only directly after a
|
||||
* file has been opened for reading. Don't use it after you did
|
||||
* a seek. This works only if just file filter has been
|
||||
* pushed. Expects a buffer wit size INTVAL at PTRVAL and returns
|
||||
* pushed. Expects a buffer with size INTVAL at PTRVAL and returns
|
||||
* the number of bytes put into the buffer. */
|
||||
if (DBG_IOBUF)
|
||||
log_debug ("iobuf-%d.%d: ioctl '%s' peek\n",
|
||||
|
|
|
@ -204,7 +204,7 @@ struct iobuf_struct
|
|||
byte *buf;
|
||||
} d;
|
||||
|
||||
/* A external drain buffer for reading/writting data skipping internal
|
||||
/* A external drain buffer for reading/writing data skipping internal
|
||||
draint buffer D.BUF. This allows zerocopy operation reducing
|
||||
processing overhead across filter stack.
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
/* Create a directory as well as any missing parents.
|
||||
|
||||
The arguments must be NULL termianted. If DIRECTORY_COMPONENTS...
|
||||
The arguments must be NULL terminated. If DIRECTORY_COMPONENTS...
|
||||
consists of two elements, "foo/bar" and "xyzzy", this function will
|
||||
first try to create the directory "foo/bar" and then the directory
|
||||
"foo/bar/xyzzy". On success returns 0, otherwise an error code is
|
||||
|
|
|
@ -136,7 +136,7 @@ compute_openpgp_fpr (int keyversion, int pgpalgo, unsigned long timestamp,
|
|||
/* log_printhex (iov[i].data, iov[i].len, "cmpfpr i=%d: ", i); */
|
||||
|
||||
err = gcry_md_hash_buffers (hashalgo, 0, result, iov, iovcnt);
|
||||
/* log_printhex (result, 20, "fingerpint: "); */
|
||||
/* log_printhex (result, 20, "fingerprint: "); */
|
||||
|
||||
/* Better clear the first element because it was set by us. */
|
||||
iov[0].size = 0;
|
||||
|
|
|
@ -129,7 +129,7 @@ make_flagged_int (unsigned long value, char *buf, size_t buflen)
|
|||
|
||||
/* fixme: figure out the number of bits in an ulong and start with
|
||||
that value as shift (after making it a multiple of 7) a more
|
||||
straigtforward implementation is to do it in reverse order using
|
||||
straightforward implementation is to do it in reverse order using
|
||||
a temporary buffer - saves a lot of compares */
|
||||
for (more=0, shift=28; shift > 0; shift -= 7)
|
||||
{
|
||||
|
|
|
@ -315,7 +315,7 @@ session_env_putenv (session_env_t se, const char *string)
|
|||
}
|
||||
|
||||
|
||||
/* Same as session_env_putenv but with name and value given as distict
|
||||
/* Same as session_env_putenv but with name and value given as distinct
|
||||
values. */
|
||||
gpg_error_t
|
||||
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)
|
|||
object. The returned value is valid as long as SE is valid and as
|
||||
long it has not been removed or updated by a call to
|
||||
session_env_putenv. If the variable does not exist, the function
|
||||
tries to return the value trough a call to getenv; if that returns
|
||||
tries to return the value through a call to getenv; if that returns
|
||||
a value, this value is recorded and used. If no value could be
|
||||
found, returns NULL. The caller must not change the returned
|
||||
value. */
|
||||
|
|
|
@ -104,7 +104,7 @@ smatch (unsigned char const **buf, size_t buflen, const char *token)
|
|||
return 1;
|
||||
}
|
||||
|
||||
/* Format VALUE for use as the length indicatior of an S-expression.
|
||||
/* Format VALUE for use as the length indicator of an S-expression.
|
||||
The caller needs to provide a buffer HELP_BUFFER with a length of
|
||||
HELP_BUFLEN. The return value is a pointer into HELP_BUFFER with
|
||||
the formatted length string. The colon and a trailing nul are
|
||||
|
|
|
@ -199,7 +199,7 @@ make_canon_sexp_pad (gcry_sexp_t sexp, int secure,
|
|||
}
|
||||
|
||||
/* Return the so called "keygrip" which is the SHA-1 hash of the
|
||||
public key parameters expressed in a way dependend on the algorithm.
|
||||
public key parameters expressed in a way dependent on the algorithm.
|
||||
|
||||
KEY is expected to be an canonical encoded S-expression with a
|
||||
public or private key. KEYLEN is the length of that buffer.
|
||||
|
@ -1195,7 +1195,7 @@ cipher_mode_to_string (int mode)
|
|||
}
|
||||
}
|
||||
|
||||
/* Return the cannonical name of the ECC curve in KEY. */
|
||||
/* Return the canonical name of the ECC curve in KEY. */
|
||||
const char *
|
||||
get_ecc_curve_from_key (gcry_sexp_t key)
|
||||
{
|
||||
|
|
|
@ -588,7 +588,7 @@ translate_sys2libc_fd_int (int fd, int for_write)
|
|||
/*
|
||||
* Parse the string representation of a file reference (file handle on
|
||||
* Windows or file descriptor on POSIX) in FDSTR. The string
|
||||
* representation may be either of folllowing:
|
||||
* representation may be either of following:
|
||||
|
||||
* (1) 0, 1, or 2 which means stdin, stdout, and stderr, respectively.
|
||||
* (2) Integer representation (by %d of printf).
|
||||
|
@ -1106,7 +1106,7 @@ modestr_to_mode (const char *modestr, mode_t oldmode)
|
|||
int
|
||||
gnupg_mkdir (const char *name, const char *modestr)
|
||||
{
|
||||
/* Note that gpgrt_mkdir also sets ERRNO in addition to returing an
|
||||
/* Note that gpgrt_mkdir also sets ERRNO in addition to returning an
|
||||
* gpg-error style error code. */
|
||||
return gpgrt_mkdir (name, modestr);
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
*/
|
||||
|
||||
/* The whole code here does not very fill into our general test frame
|
||||
* work patter. But let's keep it as it is. */
|
||||
* work pattern. But let's keep it as it is. */
|
||||
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -95,7 +95,7 @@ ensure_space (tlv_builder_t tb)
|
|||
* element is described by CLASS, TAG, VALUE, and VALUEEN. CLASS and
|
||||
* TAG must describe a primitive element and (VALUE,VALUELEN) specify
|
||||
* its value. The value is a pointer and its object must not be
|
||||
* changed as long as the instance TB exists. For a TAG_NULL no vlaue
|
||||
* changed as long as the instance TB exists. For a TAG_NULL no value
|
||||
* is expected. Errors are not returned but recorded for later
|
||||
* retrieval. */
|
||||
void
|
||||
|
|
|
@ -42,7 +42,7 @@ struct bufferlist_s
|
|||
/* An object to control the ASN.1 parsing. */
|
||||
struct tlv_parser_s
|
||||
{
|
||||
/* The orginal buffer with the entire pkcs#12 object and its length. */
|
||||
/* The original buffer with the entire pkcs#12 object and its length. */
|
||||
const unsigned char *origbuffer;
|
||||
size_t origbufsize;
|
||||
|
||||
|
|
|
@ -141,7 +141,7 @@ void tlv_builder_add_end (tlv_builder_t tb);
|
|||
gpg_error_t tlv_builder_finalize (tlv_builder_t tb,
|
||||
void **r_obj, size_t *r_objlen);
|
||||
|
||||
/* Wite a TLV header to MEMBUF. */
|
||||
/* Write a TLV header to MEMBUF. */
|
||||
void put_tlv_to_membuf (membuf_t *membuf, int class, int tag,
|
||||
int constructed, size_t length);
|
||||
|
||||
|
|
|
@ -323,7 +323,7 @@ void setup_libgcrypt_logging (void);
|
|||
/* Print an out of core message and die. */
|
||||
void xoutofcore (void);
|
||||
|
||||
/* Wrapper aroung gpgrt_reallocarray. Uses the gpgrt alloc function
|
||||
/* Wrapper around gpgrt_reallocarray. Uses the gpgrt alloc function
|
||||
* which redirects to the Libgcrypt versions via
|
||||
* init_common_subsystems. Thus this can be used interchangeable with
|
||||
* the other alloc functions. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue