]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix misspelling errors and typos reported by codespell
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Sun, 2 Feb 2020 21:54:01 +0000 (22:54 +0100)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Thu, 6 Feb 2020 16:01:00 +0000 (17:01 +0100)
Fixes #10998

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11000)

19 files changed:
CHANGES
CONTRIBUTING
Configurations/15-android.conf
Configurations/50-win-onecore.conf
crypto/aes/asm/aesni-x86_64.pl
crypto/bn/asm/co-586.pl
crypto/perlasm/README
crypto/rand/rand_lib.c
crypto/rand/rand_local.h
crypto/sha/asm/keccak1600-mmx.pl
crypto/sha/asm/keccak1600-x86_64.pl
crypto/sparcv9cap.c
crypto/whrlpool/asm/wp-mmx.pl
doc/man1/openssl-s_client.pod.in
doc/man1/openssl-sess_id.pod
doc/man3/ASN1_TYPE_get.pod
doc/man3/OCSP_request_add1_nonce.pod
doc/man7/passphrase-encoding.pod
engines/e_afalg.c

diff --git a/CHANGES b/CHANGES
index 01cec55a656d8a4b55fb35027b7132daeee461a7..72201c3f692c5eb5fc2c9e235476aa735db5c0b8 100644 (file)
--- a/CHANGES
+++ b/CHANGES
      bytes long. In theory it is permissible in SSLv3 - TLSv1.2 to fragment such
      alerts across multiple records (some of which could be empty). In practice
      it make no sense to send an empty alert record, or to fragment one. TLSv1.3
-     prohibts this altogether and other libraries (BoringSSL, NSS) do not
+     prohibits this altogether and other libraries (BoringSSL, NSS) do not
      support this at all. Supporting it adds significant complexity to the
-     record layer, and its removal is unlikely to cause inter-operability
+     record layer, and its removal is unlikely to cause interoperability
      issues.
      [Matt Caswell]
 
      implementations).
      [Emilia Käsper, Adam Langley, Bodo Moeller (Google)]
 
-  *) Use type ossl_ssize_t instad of ssize_t which isn't available on
+  *) Use type ossl_ssize_t instead of ssize_t which isn't available on
      all platforms. Move ssize_t definition from e_os.h to the public
      header file e_os2.h as it now appears in public header file cms.h
      [Steve Henson]
@@ -8847,7 +8847,7 @@ des-cbc           3624.96k     5258.21k     5530.91k     5624.30k     5628.26k
 
   *) New OCSP utility. Allows OCSP requests to be generated or
      read. The request can be sent to a responder and the output
-     parsed, outputed or printed in text form. Not complete yet:
+     parsed, outputted or printed in text form. Not complete yet:
      still needs to check the OCSP response validity.
      [Steve Henson]
 
@@ -9842,7 +9842,7 @@ des-cbc           3624.96k     5258.21k     5530.91k     5624.30k     5628.26k
      [Andy Polyakov]
 
   *) Modified SSL library such that the verify_callback that has been set
-     specificly for an SSL object with SSL_set_verify() is actually being
+     specifically for an SSL object with SSL_set_verify() is actually being
      used. Before the change, a verify_callback set with this function was
      ignored and the verify_callback() set in the SSL_CTX at the time of
      the call was used. New function X509_STORE_CTX_set_verify_cb() introduced
@@ -10959,10 +10959,10 @@ des-cbc           3624.96k     5258.21k     5530.91k     5624.30k     5628.26k
      as other interfaces in OpenSSL, like the BIO interface.
      NCONF_dump_* dump the internal storage of the configuration file,
      which is useful for debugging.  All other functions take the same
-     arguments as the old CONF_* functions wth the exception of the
+     arguments as the old CONF_* functions with the exception of the
      first that must be a `CONF *' instead of a `LHASH *'.
 
-     To make it easer to use the new classes with the old CONF_* functions,
+     To make it easier to use the new classes with the old CONF_* functions,
      the function CONF_set_default_method is provided.
      [Richard Levitte]
 
@@ -12805,7 +12805,7 @@ des-cbc           3624.96k     5258.21k     5530.91k     5624.30k     5628.26k
      than the old method: it now uses a modified version of Ulf's parser to
      read the ANSI prototypes in all header files (thus the old K&R definitions
      aren't needed for error creation any more) and do a better job of
-     translating function codes into names. The old 'ASN1 error code imbedded
+     translating function codes into names. The old 'ASN1 error code embedded
      in a comment' is no longer necessary and it doesn't use .err files which
      have now been deleted. Also the error code call doesn't have to appear all
      on one line (which resulted in some large lines...).
@@ -13106,7 +13106,7 @@ des-cbc           3624.96k     5258.21k     5530.91k     5624.30k     5628.26k
 
   *) Add a useful kludge to allow package maintainers to specify compiler and
      other platforms details on the command line without having to patch the
-     Configure script everytime: One now can use ``perl Configure
+     Configure script every time: One now can use ``perl Configure
      <id>:<details>'', i.e. platform ids are allowed to have details appended
      to them (separated by colons). This is treated as there would be a static
      pre-configured entry in Configure's %table under key <id> with value
index b65463c030c0cb4c9dfdd8e2550d73e38eabec3a..f08f3176d6c67990f4b5e1e038e19b7a1eb9f80a 100644 (file)
@@ -66,7 +66,7 @@ guidelines:
     consider adding a note in CHANGES.  This could be a summarising
     description of the change, and could explain the grander details.
     Have a look through existing entries for inspiration.
-    Please note that this is NOT simply a copy of git-log oneliners.
+    Please note that this is NOT simply a copy of git-log one-liners.
     Also note that security fixes get an entry in CHANGES.
     This file helps users get more in depth information of what comes
     with a specific release without having to sift through the higher
index 69c3693d955fb96b636dc787bef9606d8b7aae53..b28689a4256fa7397d49a5eaef9ac2966d3d5afd 100644 (file)
@@ -248,7 +248,7 @@ my %targets = (
     },
 
     ####################################################################
-    # Backward compatible targets, (might) requre $CROSS_SYSROOT
+    # Backward compatible targets, (might) require $CROSS_SYSROOT
     #
     "android-armeabi" => {
         inherit_from     => [ "android-arm" ],
index 1e5d970b4bd9a70c18c56c4d7e0a4dbfd4dbc954..91e77b663fae9b04da9d668732c4fdefbf37b1f9 100644 (file)
@@ -5,7 +5,7 @@
 # Mobile[?] Windows editions. It's a set up "umbrella" libraries that
 # export subset of Win32 API that are common to all Windows 10 devices.
 #
-# OneCore Configuration temporarly dedicated for console applications
+# OneCore Configuration temporarily dedicated for console applications
 # due to disabled event logging, which is incompatible with one core.
 # Error messages are provided via standard error only.
 # TODO: extend error handling to use ETW based eventing
index ce65427f7e7640a70021a38f85b66e76fbf52bce..79d50da713b2864089164c654c53c11b1521d549 100644 (file)
@@ -2345,7 +2345,7 @@ $code.=<<___;
        movdqu  `16*0`($inp),$inout0            # load input
        movdqa  $rndkey0,$twmask
        movdqu  `16*1`($inp),$inout1
-       pxor    @tweak[0],$inout0               # intput^=tweak^round[0]
+       pxor    @tweak[0],$inout0               # input^=tweak^round[0]
        movdqu  `16*2`($inp),$inout2
        pxor    @tweak[1],$inout1
         aesdec         $rndkey1,$inout0
@@ -4830,7 +4830,7 @@ ctr_xts_se_handler:
        mov     56($disp),%r11          # disp->HandlerData
 
        mov     0(%r11),%r10d           # HandlerData[0]
-       lea     (%rsi,%r10),%r10        # prologue lable
+       lea     (%rsi,%r10),%r10        # prologue label
        cmp     %r10,%rbx               # context->Rip<prologue label
        jb      .Lcommon_seh_tail
 
@@ -4874,7 +4874,7 @@ ocb_se_handler:
        mov     56($disp),%r11          # disp->HandlerData
 
        mov     0(%r11),%r10d           # HandlerData[0]
-       lea     (%rsi,%r10),%r10        # prologue lable
+       lea     (%rsi,%r10),%r10        # prologue label
        cmp     %r10,%rbx               # context->Rip<prologue label
        jb      .Lcommon_seh_tail
 
index a9be2729e2f63cbef2e260d8bdb70c1947a90546..7a9752ad47eacdd0e48f45f559be92566c9ae68b 100644 (file)
@@ -38,17 +38,17 @@ sub mul_add_c
 
        &mul("edx");
        &add($c0,"eax");
-        &mov("eax",&DWP(($na)*4,$a,"",0)) if $pos == 0;        # laod next a
+        &mov("eax",&DWP(($na)*4,$a,"",0)) if $pos == 0;        # load next a
         &mov("eax",&wparam(0)) if $pos > 0;                    # load r[]
         ###
        &adc($c1,"edx");
-        &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 0;        # laod next b
-        &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 1;        # laod next b
+        &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 0;        # load next b
+        &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 1;        # load next b
         ###
        &adc($c2,0);
         # is pos > 1, it means it is the last loop
         &mov(&DWP($i*4,"eax","",0),$c0) if $pos > 0;           # save r[];
-       &mov("eax",&DWP(($na)*4,$a,"",0)) if $pos == 1;         # laod next a
+       &mov("eax",&DWP(($na)*4,$a,"",0)) if $pos == 1;         # load next a
        }
 
 sub sqr_add_c
index 3177c371654254bec2f709be54dfcfd768618486..59f2c95515fec3f46efd5775da564bef61f7e0e2 100644 (file)
@@ -35,7 +35,7 @@ Functions of interest are:
 &function_begin_B(name,extra)  Same as normal function_begin but no pushing.
 &function_end(name)            Call at end of function.
 &function_end_A(name)          Standard pop and ret, for use inside functions
-&function_end_B(name)          Call at end but with poping or 'ret'.
+&function_end_B(name)          Call at end but with pop or ret.
 &swtmp(num)                    Address on stack temp word.
 &wparam(num)                   Parameter number num, that was push
                                in C convention.  This all works over pushes
index 86952739c08cad48d8d430d54f5e042c91562a49..8daf66fb313c7e74ddde22b84bee1017ee559580 100644 (file)
@@ -697,7 +697,7 @@ int rand_pool_add(RAND_POOL *pool,
  * is returned without producing an error message.
  *
  * After updating the buffer, rand_pool_add_end() needs to be called
- * to finish the udpate operation (see next comment).
+ * to finish the update operation (see next comment).
  */
 unsigned char *rand_pool_add_begin(RAND_POOL *pool, size_t len)
 {
index 310f03fc17428dd95deb9130e50a13978541a580..c0ba3bad0323601e0aa73c0719624eeb9f1718dd 100644 (file)
@@ -99,7 +99,7 @@
  * Typically, the DRBGs will set a minimum larger than this so optimal
  * allocation ought to take place (for full quality seed material).
  *
- * The normal value has been chosed by noticing that the rand_drbg_get_nonce
+ * The normal value has been chosen by noticing that the rand_drbg_get_nonce
  * function is usually the largest of the built in allocation (twenty four
  * bytes and then appending another sixteen bytes).  This means the buffer ends
  * with 40 bytes.  The value of forty eight is comfortably above this which
index 3976a7b101221cad71c14c80c4feefb1d92bb18c..e376adf1026cff94863a551cc400ec2a889d78c2 100755 (executable)
@@ -30,7 +30,7 @@
 # produce worse code. On the other hand one can wonder why not 128-bit
 # SSE2? Well, SSE2 won't provide double improvement, rather far from
 # that, if any at all on some processors, because it will take extra
-# permutations and inter-bank data trasfers. Besides, contemporary
+# permutations and inter-bank data transfers. Besides, contemporary
 # CPUs are better off executing 64-bit code, and it makes lesser sense
 # to invest into fancy 32-bit code. And the decision doesn't seem to
 # be inadequate, if one compares below results to "64-bit platforms in
index 808319cff1b5fe601ff32e41c596de5148ddad51..0cedea3507d9bc3a55ceac0aca70bbef9e379f17 100755 (executable)
@@ -44,7 +44,7 @@
 # Ryzen                        8.8
 #
 # (*)  Corresponds to SHA3-256. Improvement over compiler-generate
-#      varies a lot, most commont coefficient is 15% in comparison to
+#      varies a lot, most common coefficient is 15% in comparison to
 #      gcc-5.x, 50% for gcc-4.x, 90% for gcc-3.x.
 # (**) Sandy Bridge has broken rotate instruction. Performance can be
 #      improved by 14% by replacing rotates with double-precision
index ec825662e5843d40cd399b15722cf0adaba2a140..c8a7021669b28f0882d1b1782600a7136f0a491f 100644 (file)
@@ -268,7 +268,7 @@ void OPENSSL_cpuid_setup(void)
 
     /*
      * In wait for better solution _sparcv9_rdcfr is masked by
-     * VIS3 flag, because it goes to uninterruptable endless
+     * VIS3 flag, because it goes to uninterruptible endless
      * loop on UltraSPARC II running Solaris. Things might be
      * different on Linux...
      */
index 812c42f1b2aeea193bf645410fae7840bd85b661..2780f96d08fbe312e0b481f86dce49420d99192f 100644 (file)
@@ -68,19 +68,19 @@ sub LL()
                                        unshift(@_,pop(@_));
                                  }
                                }
-       else                    { die "unvalid SCALE value"; }
+       else                    { die "invalid SCALE value"; }
 }
 
 sub scale()
 {      if      ($SCALE==2)     { &lea(@_[0],&DWP(0,@_[1],@_[1])); }
        elsif   ($SCALE==8)     { &lea(@_[0],&DWP(0,"",@_[1],8));  }
-       else                    { die "unvalid SCALE value";       }
+       else                    { die "invalid SCALE value";       }
 }
 
 sub row()
 {      if      ($SCALE==2)     { ((8-shift)&7); }
        elsif   ($SCALE==8)     { (8*shift);     }
-       else                    { die "unvalid SCALE value"; }
+       else                    { die "invalid SCALE value"; }
 }
 
 $tbl="ebp";
index 78a61482ac7e5d7982f357b4446d184fca2f22ce..0d3f54e1a253bed9a28f50f6cd3a5eccce3fe74c 100644 (file)
@@ -353,7 +353,7 @@ at a positive depth or else "matched EE certificate" at depth 0.
 
 Use one or more times to specify the RRDATA fields of the DANE TLSA
 RRset associated with the target service.  The I<rrdata> value is
-specied in "presentation form", that is four whitespace separated
+specified in "presentation form", that is four whitespace separated
 fields that specify the usage, selector, matching type and associated
 data, with the last of these encoded in hexadecimal.  Optional
 whitespace is ignored in the associated data field.  For example:
index ff90231fa2bf1dda058b1c93cb14878064e91f05..bb49dbd56b760c4c66415121a97cc49f31db6546 100644 (file)
@@ -91,7 +91,7 @@ Typical output:
      Timeout   : 300 (sec)
      Verify return code 0 (ok)
 
-Theses are described below in more detail.
+These are described below in more detail.
 
 =over 4
 
index c39d93d8d2e038c55bb6b3c6af90871f06c8b7a5..54644d35ad636f8a14792315d9a368ade51f7b41 100644 (file)
@@ -70,7 +70,7 @@ If either or both of the parameters passed to ASN1_TYPE_cmp() is NULL the
 return value is nonzero. Technically if both parameters are NULL the two
 types could be absent OPTIONAL fields and so should match, however passing
 NULL values could also indicate a programming error (for example an
-unparseable type which returns NULL) for types which do B<not> match. So
+unparsable type which returns NULL) for types which do B<not> match. So
 applications should handle the case of two absent values separately.
 
 =head1 RETURN VALUES
index 9d6c73171b85bca39b827adb3928139f136fe082..6620da645d0d04ad326dc6d6de8e6697276507b8 100644 (file)
@@ -24,7 +24,7 @@ it adds a nonce to OCSP basic response B<resp>.
 
 OCSP_check_nonce() compares the nonce value in B<req> and B<resp>.
 
-OCSP_copy_nonce() copys any nonce value present in B<req> to B<resp>.
+OCSP_copy_nonce() copies any nonce value present in B<req> to B<resp>.
 
 =head1 RETURN VALUES
 
index 4b4732faf285b798e71586fd40b78afb28adc250..1d1a7e99d45fd316ea278ff3e07a596917834cbe 100644 (file)
@@ -65,7 +65,7 @@ A pass phrase encoded in ISO-8859-2 could very well have a sequence such as
 0xC3 0xAF (which is the two characters "LATIN CAPITAL LETTER A WITH BREVE"
 and "LATIN CAPITAL LETTER Z WITH DOT ABOVE" in ISO-8859-2 encoding), but would
 be misinterpreted as the perfectly valid UTF-8 encoded code point U+00EF (LATIN
-SMALL LETTER I WITH DIARESIS) I<if the pass phrase doesn't contain anything that
+SMALL LETTER I WITH DIAERESIS) I<if the pass phrase doesn't contain anything that
 would be invalid UTF-8>.
 A pass phrase that contains this kind of byte sequence will give a different
 outcome in OpenSSL 1.1.0 and newer than in OpenSSL older than 1.1.0.
index 99516cb1bb4a0dc5ed4d1f14143486e9592d5b5a..814917aa0a68de19214955f5b4049e7e3427ff6b 100644 (file)
@@ -473,7 +473,7 @@ static int afalg_start_cipher_sk(afalg_ctx *actx, const unsigned char *in,
 
     /*
      * vmsplice and splice are used to pin the user space input buffer for
-     * kernel space processing avoiding copys from user to kernel space
+     * kernel space processing avoiding copies from user to kernel space
      */
     ret = vmsplice(actx->zc_pipe[1], &iov, 1, SPLICE_F_GIFT);
     if (ret < 0) {