Reword repeated words.
authorShane Lontis <shane.lontis@oracle.com>
Thu, 4 Mar 2021 03:54:40 +0000 (13:54 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Tue, 9 Mar 2021 06:25:45 +0000 (16:25 +1000)
A trivial PR to remove some commonly repeated words. It looks like this is
not the first PR to do this.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14420)

crypto/asn1/a_strex.c
crypto/cryptlib.c
crypto/ct/ct_sct.c
crypto/evp/ctrl_params_translate.c
crypto/whrlpool/wp_block.c
crypto/x509/by_store.c
crypto/x509/pcy_tree.c
doc/man7/provider-kem.pod
ssl/ssl_lib.c
test/evp_test.c
util/perl/OpenSSL/Ordinals.pm

index 67d53b748b5c34367531384f9a84b68df4cbdd4f..11c6296bba7a8a682232c7e7103f803055772e32 100644 (file)
@@ -32,7 +32,7 @@
                   ASN1_STRFLGS_ESC_MSB)
 
 /*
- * Three IO functions for sending data to memory, a BIO and and a FILE
+ * Three IO functions for sending data to memory, a BIO and a FILE
  * pointer.
  */
 static int send_bio_chars(void *arg, const void *buf, int len)
index 7779ad05fe7702e22aa098b818d48bbb5b540949..fdefafc1fed851aa6d71631d8db1b9ac022ef288 100644 (file)
@@ -432,7 +432,7 @@ void OPENSSL_die(const char *message, const char *file, int line)
 
 #if !defined(OPENSSL_CPUID_OBJ)
 /*
- * The volatile is used to to ensure that the compiler generates code that reads
+ * The volatile is used to ensure that the compiler generates code that reads
  * all values from the array and doesn't try to optimize this away. The standard
  * doesn't actually require this behavior if the original data pointed to is
  * not volatile, but compilers do this in practice anyway.
index ab22ecafad19d2eca71c8b10ac3174bdb9ece80d..41fbfaba75c277c0e71c35799729de98ccb8f8e6 100644 (file)
@@ -343,7 +343,7 @@ int SCT_validate(SCT *sct, const CT_POLICY_EVAL_CTX *ctx)
      * XXX: Potential for optimization.  This repeats some idempotent heavy
      * lifting on the certificate for each candidate SCT, and appears to not
      * use any information in the SCT itself, only the certificate is
-     * processed.  So it may make more sense to to do this just once, perhaps
+     * processed.  So it may make more sense to do this just once, perhaps
      * associated with the shared (by all SCTs) policy eval ctx.
      *
      * XXX: Failure here is global (SCT independent) and represents either an
index 966278171c12cafb4bea617cbe7bc2c7b7ecc622..32af4eedd3651ac2aef0b32562a3e051324cce61 100644 (file)
@@ -202,7 +202,7 @@ struct translation_ctx_st {
      */
 
     /*
-     * Copy of the ctrl-style void* argument, if the the fixup_args function
+     * Copy of the ctrl-style void* argument, if the fixup_args function
      * needs to manipulate |p2| but wants to remember original.
      */
     void *orig_p2;
index e5aa1a03ce0f25e8d4ab4cb3ca1f377168e9af5a..ac6cd95a74a85198f151b617e0a851e34d909232 100644 (file)
@@ -165,7 +165,7 @@ typedef u64 u64_aX;
  */
 /*
  * Note that every Cn macro expands as two loads: one byte load and
- * one quadword load. One can argue that that many single-byte loads
+ * one quadword load. One can argue that many single-byte loads
  * is too excessive, as one could load a quadword and "milk" it for
  * eight 8-bit values instead. Well, yes, but in order to do so *and*
  * avoid excessive loads you have to accommodate a handful of 64-bit
index 29d9700ab1c0e673f178b4d4c9f189f6ac617f18..9dd687f757a0d6d99abca22478088d90d8c71c93 100644 (file)
@@ -188,7 +188,7 @@ static int by_store_subject_ex(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,
          *
          * To be noted is that X509_OBJECT_set1_* increment the refcount,
          * but so does X509_STORE_CTX_get_by_subject upon return of this
-         * function, so we must ensure the the refcount is decremented
+         * function, so we must ensure the refcount is decremented
          * before we return, or we will get a refcount leak.  We cannot do
          * this with X509_OBJECT_free(), though, as that will free a bit
          * too much.
index 12cfb627feb14b7e79cd7b1dc6d96c9cb6743f16..367de35857b60976f8b1bc9c707776af491b21a0 100644 (file)
@@ -479,7 +479,7 @@ static int tree_calculate_authority_set(X509_POLICY_TREE *tree,
     curr = tree->levels;
     for (i = 1; i < tree->nlevel; i++) {
         /*
-         * If no anyPolicy node on this this level it can't appear on lower
+         * If no anyPolicy node on this level it can't appear on lower
          * levels so end search.
          */
         if ((anyptr = curr->anyPolicy) == NULL)
index d4467dbd7918e82ec9826a487ecfb165236f1f95..4a094bd2c9baa24ff2c6079c594af81526caaad6 100644 (file)
@@ -128,7 +128,7 @@ OSSL_FUNC_kem_encapsulate() performs the actual encapsulation itself.
 A previously initialised asymmetric kem context is passed in the I<ctx>
 parameter.
 Unless I<out> is NULL, the data to be encapsulated is internally generated,
-and returned into the the buffer pointed to by the I<secret> parameter and the
+and returned into the buffer pointed to by the I<secret> parameter and the
 encapsulated data should also be written to the location pointed to by the
 I<out> parameter. The length of the encapsulated data should be written to
 I<*outlen> and the length of the generated secret should be written to
index 1fded640a177fe97c01e8462279e34176f7bb0b0..348b5076224ccaf60ad863f158ec82a60c41091d 100644 (file)
@@ -1595,7 +1595,7 @@ STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *s)
 int SSL_copy_session_id(SSL *t, const SSL *f)
 {
     int i;
-    /* Do we need to to SSL locking? */
+    /* Do we need to do SSL locking? */
     if (!SSL_set_session(t, SSL_get_session(f))) {
         return 0;
     }
index 8c88f0937c4bc4091240594fd3542121ee4532f3..d781ecadce31d849ef045a4404ef3b1dfa9d74df 100644 (file)
@@ -3594,7 +3594,7 @@ int setup_tests(void)
     /*
      * Load the provider via configuration into the created library context.
      * Load the 'null' provider into the default library context to ensure that
-     * the the tests do not fallback to using the default provider.
+     * the tests do not fallback to using the default provider.
      */
     if (!test_get_libctx(&libctx, &prov_null, config_file, NULL, NULL))
         return 0;
index 66bf30dd5014d0baaeb353334aa68964d46c1758..7e4c008dc286ebbb57ce2d5f6e8d8ee09feb95dd 100644 (file)
@@ -863,7 +863,7 @@ handled by the caller.  The caller may change this to an actual number.
 =item B<< $item->version >> (read-only)
 
 The version number for this item.  Please note that these version numbers
-have underscore (C<_>) as a separator the the version parts.
+have underscore (C<_>) as a separator for the version parts.
 
 =item B<< $item->exists >> (read-only)