]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix typos
authorDimitris Apostolou <dimitris.apostolou@icloud.com>
Thu, 17 Feb 2022 15:35:59 +0000 (17:35 +0200)
committerDimitris Apostolou <dimitris.apostolou@icloud.com>
Thu, 17 Feb 2022 15:43:54 +0000 (17:43 +0200)
Signed-off-by: Dimitris Apostolou <dimitris.apostolou@icloud.com>
22 files changed:
devel/perlasm/readme
doc/examples/tlsproxy/crypto-gnutls.c
doc/examples/tlsproxy/tlsproxy.c
fuzz/gnutls_client_rawpk_fuzzer.c
fuzz/gnutls_server_rawpk_fuzzer.c
lib/algorithms/ecc.c
lib/crypto-api.c
lib/includes/gnutls/gnutls.h.in
lib/nettle/int/dsa-compute-k.c
lib/x509/common.c
tests/fips-mode-pthread.c
tests/hostname-check.c
tests/multi-alerts.c
tests/name-constraints-ip.c
tests/name-constraints.c
tests/nist-pkits/gnutls-nist-tests.html
tests/pkcs11/pkcs11-privkey-pthread.c
tests/post-client-hello-change-prio.c
tests/rng-pthread.c
tests/test-chains.h
tests/tls-channel-binding.c
tests/tls-crt_type-neg.c

index f02bbee75a1bcc81764a12e0a26570dcee5918d9..a7876bcc95816f15e7be1d776cf7d4b99df48f0c 100644 (file)
@@ -1,5 +1,5 @@
 The perl scripts in this directory are my 'hack' to generate
-multiple different assembler formats via the one origional script.
+multiple different assembler formats via the one original script.
 
 The way to use this library is to start with adding the path to this directory
 and then include it.
@@ -7,7 +7,7 @@ and then include it.
 push(@INC,"perlasm","../../perlasm");
 require "x86asm.pl";
 
-The first thing we do is setup the file and type of assember
+The first thing we do is setup the file and type of assembler
 
 &asm_init($ARGV[0],$0);
 
index 0764fdf10f11fdea770583a71c2c419ed6e734db..5db51a3b9ad0e72f66ebc5c5c8a3cafdf826f98e 100644 (file)
@@ -144,7 +144,7 @@ verify_certificate_callback (gnutls_session_t session)
 
   if (ret < 0)
     {
-      debugout (s, "Could not verfify peer certificate due to an error\n");
+      debugout (s, "Could not verify peer certificate due to an error\n");
       return GNUTLS_E_CERTIFICATE_ERROR;
     }
 
index 2607eae049f7f4d65ecdcb83fcda11d6a0415b1d..8e781f76f101211f186d8569d5597df1167bd70c 100644 (file)
@@ -292,7 +292,7 @@ Usage:\n\
 A TLS client or server proxy\n\
 \n\
 Options:\n\
-     -c, --connect ADDRRESS    Connect to ADDRESS\n\
+     -c, --connect ADDRESS     Connect to ADDRESS\n\
      -l, --listen ADDRESS      Listen on ADDRESS\n\
      -K, --key FILE            Use FILE as private key\n\
      -C, --cert FILE           Use FILE as public key\n\
index c20b885538e238b6fc27065c55812986462582c0..52dc5daacc44837864bb98b1d9607790f8c5f98d 100644 (file)
@@ -34,7 +34,7 @@
  * gnutls-cli localhost:5556 --priority NORMAL:-CTYPE-ALL:+CTYPE-CLI-RAWPK:+CTYPE-SRV-RAWPK --no-ca-verification
  * 
  * The above yields a handshake where both the client and server present
- * a raw public-key to eachother.
+ * a raw public-key to each other.
  */
 
 #include <assert.h>
index a1a671386962f3113238f7e103361f1189937d9c..11594c1b8dd2917915e31da17bab19cdf567597d 100644 (file)
@@ -33,7 +33,7 @@
  * gnutls-cli localhost:5556 --priority NORMAL:-CTYPE-ALL:+CTYPE-CLI-RAWPK:+CTYPE-SRV-RAWPK --no-ca-verification
  * 
  * The above yields a handshake where both the client and server present
- * a raw public-key to eachother.
+ * a raw public-key to each other.
  */
 
 #include <assert.h>
index d2c0b3585bd67109d61229df83e93772dd88f3c4..736e5dd07fe062b02d1c0ba452de1c24c686e405 100644 (file)
@@ -125,7 +125,7 @@ gnutls_ecc_curve_entry_st ecc_curves[] = {
         * exchange (CryptoPro-XchA = CryptoPro-A and CryptoPro-XchB =
         * CryptoPro-C).
         *
-        * Then TC26 (Standard comittee working on cryptographic standards) has
+        * Then TC26 (Standard committee working on cryptographic standards) has
         * defined one 256-bit curve (TC26-256-A) and three 512-bit curves
         * (TC26-512-A, -B, -C).
         *
index fa4a4eb3fdaa32d3f4e478aee6c536e8abd20ca6..e1f40408ea4b1c22b0b1b900662b046b7ebeb242 100644 (file)
@@ -469,7 +469,7 @@ gnutls_hmac_init(gnutls_hmac_hd_t * dig,
                not_approved = true;
        }
 
-       /* Key lengthes less than 112 bits are not approved */
+       /* Key lengths of less than 112 bits are not approved */
        if (keylen < 14) {
                not_approved = true;
        }
@@ -632,7 +632,7 @@ gnutls_hmac_fast(gnutls_mac_algorithm_t algorithm,
                not_approved = true;
        }
 
-       /* Key lengthes less than 112 bits are not approved */
+       /* Key lengths of less than 112 bits are not approved */
        if (keylen < 14) {
                not_approved = true;
        }
index 482e9653c81ce3ca50525bb89b08745fc4966fbc..987749e477cd1dec2247ec8c083e6f4e88521f31 100644 (file)
@@ -701,7 +701,7 @@ const char
  * @GNUTLS_CERT_UNEXPECTED_OWNER: The owner is not the expected one.
  * @GNUTLS_CERT_MISMATCH: The certificate presented isn't the expected one (TOFU)
  * @GNUTLS_CERT_PURPOSE_MISMATCH: The certificate or an intermediate does not match the intended purpose (extended key usage).
- * @GNUTLS_CERT_MISSING_OCSP_STATUS: The certificate requires the server to send the certifiate status, but no status was received.
+ * @GNUTLS_CERT_MISSING_OCSP_STATUS: The certificate requires the server to send the certificate status, but no status was received.
  * @GNUTLS_CERT_INVALID_OCSP_STATUS: The received OCSP status response is invalid.
  * @GNUTLS_CERT_UNKNOWN_CRIT_EXTENSIONS: The certificate has extensions marked as critical which are not supported.
  *
index 17d63318c40a32ce277d1446012848e65f044aaa..3f5105acd3870f273709ef8cb77afdf1f1c3b6b4 100644 (file)
@@ -33,7 +33,7 @@
 
 #define BITS_TO_LIMBS(bits) (((bits) + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS)
 
-/* The maximum size of q, choosen from the fact that we support
+/* The maximum size of q, chosen from the fact that we support
  * 521-bit elliptic curve generator and 512-bit DSA subgroup at
  * maximum. */
 #define MAX_Q_BITS 521
index 59eaee2dec87263dcb7c80ad06f80fac4c7288fe..fad9da51fb12ec1cf4baa32b01662ba252257f29 100644 (file)
@@ -1704,7 +1704,7 @@ _gnutls_check_valid_key_id(const gnutls_datum_t *key_id,
        return result;
 }
 
-/* Sort a certficate list in place with subject, issuer order. @clist_size must
+/* Sort a certificate list in place with subject, issuer order. @clist_size must
  * be equal to or less than %DEFAULT_MAX_VERIFY_DEPTH.
  *
  * Returns the index in clist where the initial contiguous segment ends. If the
index 82d6c8f3f3ef872bcc3634911282769349add37c..a89ecb4b6f0db49f7101d5d4c886a4c0b5b0cc82 100644 (file)
@@ -52,7 +52,7 @@ void doit(void)
 #else
 
 /* Tests whether we can use gnutls_fips140_set_mode() and
- * gnutls_fips140_mode_enabled() under mutliple threads.
+ * gnutls_fips140_mode_enabled() under multiple threads.
  */
 
 typedef struct thread_data_st {
index 47f8d355d5a1d3528e5973bbc7a7322bce662869..18cb227087f333670f1e7c7df221a3dd7b3c2709 100644 (file)
@@ -521,7 +521,7 @@ char pem10[] =
     "X.509 Certificate Information:\n"
     "  Version: 3\n"
     "  Serial Number (hex): 0b5d0a870d09\n"
-    "  Issuer: C=NN,O=Edel Curl Arctic Illudium Research Cloud,CN=Nothern Nowhere Trust Anchor\n"
+    "  Issuer: C=NN,O=Edel Curl Arctic Illudium Research Cloud,CN=Northern Nowhere Trust Anchor\n"
     "  Validity:\n"
     "          Not Before: Tue Aug 04 22:07:33 UTC 2009\n"
     "          Not After: Sat Oct 21 22:07:33 UTC 2017\n"
index a0a6e4474a3b0c89b795e1357b95fc8654952855..84a412c59c74cbe1f2f4a8af35def87a040cea02 100644 (file)
@@ -28,7 +28,7 @@
 #include <stdlib.h>
 
 /* In this test we check whether the server will bail out after receiving
- * a bunch of warning alerts. That is to avoid DoS due to the assymetry of
+ * a bunch of warning alerts. That is to avoid DoS due to the asymmetry of
  * cost of sending an alert vs the cost of receiving.
  */
 
index ed96109c7ad23f746553799b03b1dfab2e931715..85ebf5a3b4720401bdaf0c900297e45bf205830d 100644 (file)
@@ -190,7 +190,7 @@ static void check_generation_reading_basic_checking(void **glob_state)
        } while(ret == 0);
 
        if (i-1 != num_permitted) {
-               fail_msg("Could not read all contraints; read %d, expected %d\n", i-1, num_permitted);
+               fail_msg("Could not read all constraints; read %d, expected %d\n", i-1, num_permitted);
        }
 
        i = 0;
@@ -203,7 +203,7 @@ static void check_generation_reading_basic_checking(void **glob_state)
        } while(ret == 0);
 
        if (i-1 != num_excluded) {
-               fail_msg("Could not read all excluded contraints; read %d, expected %d\n", i-1, num_excluded);
+               fail_msg("Could not read all excluded constraints; read %d, expected %d\n", i-1, num_excluded);
        }
 
        /* 3: test the name constraints check function */
index 64e82ad35d892110ebd4afdee3ce67dc3f22f70b..a6f3fe7d82924ce17dcb181fdcd629ca245f2a73 100644 (file)
@@ -149,7 +149,7 @@ void doit(void)
        } while(ret == 0);
 
        if (i-1 != 8) {
-               fail("Could not read all contraints; read %d, expected %d\n", i-1, 8);
+               fail("Could not read all constraints; read %d, expected %d\n", i-1, 8);
        }
 
        gnutls_x509_name_constraints_deinit(nc);
@@ -222,7 +222,7 @@ void doit(void)
        } while(ret == 0);
 
        if (i-1 != permitted) {
-               fail("Could not read all contraints; read %d, expected %d\n", i-1, permitted);
+               fail("Could not read all constraints; read %d, expected %d\n", i-1, permitted);
        }
 
        i = 0;
@@ -242,7 +242,7 @@ void doit(void)
        } while(ret == 0);
 
        if (i-1 != excluded) {
-               fail("Could not read all excluded contraints; read %d, expected %d\n", i-1, excluded);
+               fail("Could not read all excluded constraints; read %d, expected %d\n", i-1, excluded);
        }
 
        /* 3: test the name constraints check function */
index 4a56b689c2ae565207d3bbff7e1f7274ee999520..8889de16eecfa9870ea642e0056bbf9048762ba1 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>PKITS Test Matrix</title></head><body>
 <div style="text-align: center;">
 <h1>Enterprise PVM</h1>
-<div style="text-align: left;">In addtion to the minimum requirements
+<div style="text-align: left;">In addition to the minimum requirements
 for an Enterprise Path Validation Module, these tests assume that the
 PWM implements the following features:<br>
 <br>
index dfccbaff9ca48d0ef92bfc8f8edbac8da56a3bba..8b23759d44bd1f52f85e9c8763d925fe0eb1650e 100644 (file)
@@ -60,7 +60,7 @@ void doit(void)
 # define P11LIB "libpkcs11mock1.so"
 #endif
 
-/* Tests whether we can use gnutls_privkey_sign() under mutliple threads
+/* Tests whether we can use gnutls_privkey_sign() under multiple threads
  * with the same key when PKCS#11 is in use.
  */
 
index be41047a0123a0998caaf77d5d815b67f625df33..e87becc7d8a623aa9db8bf43a5d34721f245d8d3 100644 (file)
@@ -34,7 +34,7 @@
 #include "cert-common.h"
 
 /* Tests whether the post_client_hello callback can modify
- * the avalable priorities. This is used by apache's mod_gnutls.
+ * the available priorities. This is used by apache's mod_gnutls.
  */
 
 const char *side;
@@ -139,7 +139,7 @@ void doit(void)
        start("tls1.3-only", "NORMAL:-VERS-ALL:+VERS-TLS1.3", "NORMAL:-VERS-ALL:+VERS-TLS1.3", GNUTLS_TLS1_3);
        start("default", "NORMAL", "NORMAL", GNUTLS_TLS1_3);
        override_prio = "NORMAL:-VERS-ALL:+VERS-TLS1.2";
-       start("default overriden to TLS1.2-only", "NORMAL", "NORMAL", GNUTLS_TLS1_2);
+       start("default overridden to TLS1.2-only", "NORMAL", "NORMAL", GNUTLS_TLS1_2);
        override_prio = NULL;
        start("client tls1.2-only, server tls1.2-disabled",
              "NORMAL:-VERS-ALL:+VERS-TLS1.2", "NORMAL:-VERS-TLS1.2:-VERS-TLS1.1:-VERS-TLS1.0:-VERS-SSL3.0", -1);
index 2928bb7f2d575e333cd524bdd34540d3605e2389..a2f4e662d4f08a1c34667167fc47b4a85c725dc4 100644 (file)
@@ -51,7 +51,7 @@ void doit(void)
 
 #else
 
-/* Tests whether we can use gnutls_rnd() under mutliple threads.
+/* Tests whether we can use gnutls_rnd() under multiple threads.
  * We do a basic checking of random data match when gnutls_rnd()
  * is called in parallel.
  */
index c3c499a4e851cecc22233b94800ded8523623fff..dd7ccf0e40835a8047dfeccaef61ab137146934f 100644 (file)
@@ -1531,7 +1531,7 @@ static const char *modified2[] = {
 };
 
 /* Empty intersection of 2 permitted DNS names,
- * non-intuitive contraints order (more specific higher) */
+ * non-intuitive constraints order (more specific higher) */
 static const char *nc_bad0[] = {
   /* Alternative DNSname: two.example.org */
   "-----BEGIN CERTIFICATE-----\n"
index a89df1b4d430f7a2c632cb8bed79516468429b68..6b8d400997c888f770e09ac7d7bc06b165300604 100644 (file)
@@ -56,7 +56,7 @@ check_binding_data(gnutls_session_t client, gnutls_session_t server,
        if (gnutls_session_channel_binding(client, cbtype, &client_cb)
                        != GNUTLS_E_SUCCESS) {
                if (negative == 0) {
-                       fail("Cannot get client bidning %s\n", cbname);
+                       fail("Cannot get client binding %s\n", cbname);
                        return 1;
                }
        } else if(negative) {
@@ -66,7 +66,7 @@ check_binding_data(gnutls_session_t client, gnutls_session_t server,
        if (gnutls_session_channel_binding(server, cbtype, &server_cb)
                        != GNUTLS_E_SUCCESS) {
                if (negative == 0) {
-                       fail("Cannot get server bidning %s\n", cbname);
+                       fail("Cannot get server binding %s\n", cbname);
                        return -1;
                }
        } else if(negative) {
index 690bea90819f7f8db0cdb5831b81675f316272a7..dacb8542747422504b6692b09938968f8a07db7c 100644 (file)
@@ -23,7 +23,7 @@
 #include <config.h>
 #endif
 
-/* This program tests the certificate type negotiation mechnism for
+/* This program tests the certificate type negotiation mechanism for
  * the handshake as specified in RFC7250 */
 
 #include <stdio.h>
@@ -288,7 +288,7 @@ test_case_st tests[] = {
                 * Request client cert: no
                 * Handshake: should complete without errors
                 * Negotiation: a Raw PK server cert and client cert. Under TLS 1.3
-                *   a respons is always sent by the server also when no client
+                *   a response is always sent by the server also when no client
                 *   cert is requested. This is necessary for post-handshake authentication
                 *   to work.
                 */