Skip to content

Commit

Permalink
Fix typos found by codespell
Browse files Browse the repository at this point in the history
Typos in doc/man* will be fixed in a different commit.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #20910)
  • Loading branch information
DimitriPapadopoulos authored and paulidale committed Jun 15, 2023
1 parent 71cf587 commit eb4129e
Show file tree
Hide file tree
Showing 60 changed files with 139 additions and 139 deletions.
6 changes: 3 additions & 3 deletions CHANGES.md
Expand Up @@ -7457,7 +7457,7 @@ OpenSSL 1.0.1

* Alternate chains certificate forgery

During certificate verfification, OpenSSL will attempt to find an
During certificate verification, OpenSSL will attempt to find an
alternative certificate chain if the first attempt to build such a chain
fails. An error in the implementation of this logic can mean that an
attacker could cause certain checks on untrusted certificates to be
Expand Down Expand Up @@ -8816,7 +8816,7 @@ OpenSSL 1.0.0

3. Check DSA/ECDSA signatures use DER.

Reencode DSA/ECDSA signatures and compare with the original received
Re-encode DSA/ECDSA signatures and compare with the original received
signature. Return an error if there is a mismatch.

This will reject various cases including garbage after signature
Expand Down Expand Up @@ -8863,7 +8863,7 @@ OpenSSL 1.0.0

* Add additional DigestInfo checks.

Reencode DigestInto in DER and check against the original when
Re-encode DigestInto in DER and check against the original when
verifying RSA signature: this will reject any improperly encoded
DigestInfo structures.

Expand Down
2 changes: 1 addition & 1 deletion Configurations/unix-Makefile.tmpl
Expand Up @@ -1121,7 +1121,7 @@ uninstall_image_docs:
done

# Developer targets (note: these are only available on Unix) #########
##@ Code maintenence
##@ Code maintenance

# It's important that generate_buildinfo comes after ordinals, as ordinals
# is sensitive to build.info changes.
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.md
Expand Up @@ -1566,7 +1566,7 @@ over the build process. Typically these should be defined prior to running

PERL
The name of the Perl executable to use when building OpenSSL.
Only needed if builing should use a different Perl executable
Only needed if building should use a different Perl executable
than what is used to run the Configure script.

RANLIB
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Expand Up @@ -1450,7 +1450,7 @@ OpenSSL 0.9.x
* Overhauled Win32 builds
* Cleanups and fixes to the Big Number (BN) library
* Support for ASN.1 GeneralizedTime
* Splitted ASN.1 SETs from SEQUENCEs
* Split ASN.1 SETs from SEQUENCEs
* ASN1 and PEM support for Netscape Certificate Sequences
* Overhauled Perl interface
* Lots of source tree cleanups.
Expand Down
4 changes: 2 additions & 2 deletions apps/s_client.c
Expand Up @@ -2269,7 +2269,7 @@ int s_client_main(int argc, char **argv)
if (isquic) {
sbio = BIO_new_dgram(sock, BIO_NOCLOSE);
if (!SSL_set_initial_peer_addr(con, peer_addr)) {
BIO_printf(bio_err, "Failed to set the inital peer address\n");
BIO_printf(bio_err, "Failed to set the initial peer address\n");
goto shut;
}
} else
Expand Down Expand Up @@ -4019,7 +4019,7 @@ static int user_data_process(struct user_data_st *user_data, size_t *len,
&& user_data->buf[user_data->bufoff] == '\n') {
/*
* This command was the only thing on the whole line. We
* supress the final `\n`
* suppress the final `\n`
*/
user_data->bufoff = 0;
user_data->buflen = 0;
Expand Down
2 changes: 1 addition & 1 deletion crypto/bn/bn_nist.c
Expand Up @@ -251,7 +251,7 @@ const BIGNUM *BN_get0_nist_prime_521(void)

/*
* To avoid more recent compilers (specifically clang-14) from treating this
* code as a violation of the strict aliasing conditions and omiting it, this
* code as a violation of the strict aliasing conditions and omitting it, this
* cannot be declared as a function. Moreover, the dst parameter cannot be
* cached in a local since this no longer references the union and again falls
* foul of the strict aliasing criteria. Refer to #18225 for the initial
Expand Down
2 changes: 1 addition & 1 deletion crypto/deterministic_nonce.c
Expand Up @@ -46,7 +46,7 @@ static int bits2int(BIGNUM *out, int qlen_bits,
* out The returned Octet String
* num The input Integer
* rlen The required size of the returned Octet String in bytes
* Returns: 1 if successful, or 0 otherwis
* Returns: 1 if successful, or 0 otherwise.
*/
static int int2octets(unsigned char *out, const BIGNUM *num, int rlen)
{
Expand Down
4 changes: 2 additions & 2 deletions crypto/ec/ec_local.h
Expand Up @@ -245,7 +245,7 @@ struct ec_group_st {
* equation of the form y^2 + x*y = x^3 + a*x^2 + b.
*/
BIGNUM *a, *b;
/* enable optimized point arithmetics for special case */
/* enable optimized point arithmetic for special case */
int a_is_minus3;
/* method-specific (e.g., Montgomery structure) */
void *field_data1;
Expand Down Expand Up @@ -318,7 +318,7 @@ struct ec_point_st {
BIGNUM *Y;
BIGNUM *Z; /* Jacobian projective coordinates: * (X, Y,
* Z) represents (X/Z^2, Y/Z^3) if Z != 0 */
int Z_is_one; /* enable optimized point arithmetics for
int Z_is_one; /* enable optimized point arithmetic for
* special case */
};

Expand Down
4 changes: 2 additions & 2 deletions crypto/err/openssl.txt
Expand Up @@ -927,7 +927,7 @@ PEM_R_UNSUPPORTED_ENCRYPTION:114:unsupported encryption
PEM_R_UNSUPPORTED_KEY_COMPONENTS:126:unsupported key components
PEM_R_UNSUPPORTED_PUBLIC_KEY_TYPE:110:unsupported public key type
PKCS12_R_CALLBACK_FAILED:115:callback failed
PKCS12_R_CANT_PACK_STRUCTURE:100:cant pack structure
PKCS12_R_CANT_PACK_STRUCTURE:100:can't pack structure
PKCS12_R_CONTENT_TYPE_NOT_DATA:121:content type not data
PKCS12_R_DECODE_ERROR:101:decode error
PKCS12_R_ENCODE_ERROR:102:encode error
Expand Down Expand Up @@ -1761,7 +1761,7 @@ X509_R_AKID_MISMATCH:110:akid mismatch
X509_R_BAD_SELECTOR:133:bad selector
X509_R_BAD_X509_FILETYPE:100:bad x509 filetype
X509_R_BASE64_DECODE_ERROR:118:base64 decode error
X509_R_CANT_CHECK_DH_KEY:114:cant check dh key
X509_R_CANT_CHECK_DH_KEY:114:can't check dh key
X509_R_CERTIFICATE_VERIFICATION_FAILED:139:certificate verification failed
X509_R_CERT_ALREADY_IN_HASH_TABLE:101:cert already in hash table
X509_R_CRL_ALREADY_DELTA:127:crl already delta
Expand Down
2 changes: 1 addition & 1 deletion crypto/hpke/hpke.c
Expand Up @@ -438,7 +438,7 @@ static size_t hpke_seqnonce2buf(OSSL_HPKE_CTX *ctx,
* @brief call the underlying KEM to encap
* @param ctx is the OSSL_HPKE_CTX
* @param enc is a buffer for the sender's ephemeral public value
* @param enclen is the size of enc on input, number of octets used on ouptut
* @param enclen is the size of enc on input, number of octets used on output
* @param pub is the recipient's public value
* @param publen is the length of pub
* @return 1 for success, 0 for error
Expand Down
2 changes: 1 addition & 1 deletion crypto/hpke/hpke_util.c
Expand Up @@ -114,7 +114,7 @@ static const OSSL_HPKE_KDF_INFO hpke_kdf_tab[] = {
* others above.
*
* The function to use these is ossl_hpke_str2suite() further down
* this file and shouln't need modification so long as the table
* this file and shouldn't need modification so long as the table
* sizes (i.e. allow exactly 4 synonyms) don't change.
*/
static const synonymttab_t kemstrtab[] = {
Expand Down

0 comments on commit eb4129e

Please sign in to comment.