]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Fix two typos (overriden/guarranteed)
authorAndreas Metzler <ametzler@bebt.de>
Wed, 15 Aug 2018 12:20:43 +0000 (14:20 +0200)
committerAndreas Metzler <ametzler@bebt.de>
Thu, 16 Aug 2018 17:07:00 +0000 (19:07 +0200)
Signed-off-by: Andreas Metzler <ametzler@bebt.de>
13 files changed:
NEWS
lib/ext/session_ticket.c
lib/global.c
lib/hello_ext.c
lib/hello_ext.h
lib/session.c
tests/global-init-override.c
tests/pkcs11/pkcs11-cert-import-url-exts.c
tests/pkcs11/pkcs11-cert-import-url4-exts.c
tests/pkcs11/pkcs11-get-raw-issuer-exts.c
tests/set-default-prio.c
tests/slow/override-ciphers
tests/tls-session-ext-override.c

diff --git a/NEWS b/NEWS
index 1482a60ef576f20cd01ba65ec114941ae90f3662..e6e4ffb6bb9ac6a8611b43ff5541bebcef897e28 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -275,7 +275,7 @@ No changes since last version.
 
 ** libgnutls: PKIX certificates with unknown critical extensions are rejected
    on verification with status GNUTLS_CERT_UNKNOWN_CRIT_EXTENSIONS. This
-   behavior can be overriden by providing the flag GNUTLS_VERIFY_IGNORE_UNKNOWN_CRIT_EXTENSIONS
+   behavior can be overridden by providing the flag GNUTLS_VERIFY_IGNORE_UNKNOWN_CRIT_EXTENSIONS
    to verification functions. Resolves gitlab issue #177.
 
 ** libgnutls: Refuse to generate a certificate with an illegal version, or an
@@ -1201,7 +1201,7 @@ being usable after a reinitialization.
 
 ** libgnutls: The GNUTLS_CPUID_OVERRIDE environment variable can be used to 
 explicitly enable/disable the use of certain CPU capabilities. Note that CPU
-detection cannot be overriden, i.e., VIA options cannot be enabled on an Intel
+detection cannot be overridden, i.e., VIA options cannot be enabled on an Intel
 CPU. The currently available options are:
   0x1: Disable all run-time detected optimizations
   0x2: Enable AES-NI
index 0cab3afe8c796fb291fec2ae530ef6a168dfead9..777bac155f9e72c91cbfb773ee5956f1188db858 100644 (file)
@@ -594,7 +594,7 @@ int gnutls_session_ticket_enable_client(gnutls_session_t session)
  * To avoid leaking that key, use gnutls_memset() prior to
  * releasing it.
  *
- * The default ticket expiration time can be overriden using
+ * The default ticket expiration time can be overridden using
  * gnutls_db_set_cache_expiration().
  *
  * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, or an
index 1f92965b8074688d5c54b296ed5700f3cf3fe091..d657f56d8c043daae8638eeee35b441ce0c6cbe7 100644 (file)
@@ -369,8 +369,8 @@ static int _gnutls_global_init(unsigned constructor)
        _gnutls_load_system_priorities();
 
 #ifdef ENABLE_FIPS140
-       /* These self tests are performed on the overriden algorithms
-        * (e.g., AESNI overriden AES). They are after _gnutls_register_accel_crypto()
+       /* These self tests are performed on the overridden algorithms
+        * (e.g., AESNI overridden AES). They are after _gnutls_register_accel_crypto()
         * intentionally */
        if (res != 0) {
                ret = _gnutls_fips_perform_self_checks2();
index ac0fc1ba03aa2ce05c0b95c8569747f7e646745a..83bd107ffe1d3df6dd3adba6caff3451b3e1514e 100644 (file)
@@ -340,7 +340,7 @@ int hello_ext_send(void *_ctx, gnutls_buffer_st *buf)
                                  ext_msg_validity_to_str(ctx->msg));
        }
 
-       /* ensure we don't send something twice (i.e, overriden extensions in
+       /* ensure we don't send something twice (i.e, overridden extensions in
         * client), and ensure we are sending only what we received in server. */
        ret = _gnutls_hello_ext_is_present(session, p->gid);
 
@@ -419,7 +419,7 @@ _gnutls_gen_hello_extensions(gnutls_session_t session,
        }
 
        /* hello_ext_send() ensures we don't send duplicates, in case
-        * of overriden extensions */
+        * of overridden extensions */
        for (i = 0; i < MAX_EXT_TYPES; i++) {
                if (!extfunc[i])
                        continue;
index 8a7580a28efa1c17b264acae179968999a99f87c..1ad16e19d7376fbb23cb11b18ff4ce32ea7da1d7 100644 (file)
@@ -115,7 +115,7 @@ inline static const char *ext_msg_validity_to_str(gnutls_ext_flags_t msg)
 }
 
 typedef struct hello_ext_entry_st {
-       const char *name; /* const overriden when free_struct is set */
+       const char *name; /* const overridden when free_struct is set */
        unsigned free_struct;
 
        uint16_t tls_id;
@@ -143,7 +143,7 @@ typedef struct hello_ext_entry_st {
        gnutls_ext_pack_func pack_func; /* packs internal data to machine independent format */
        gnutls_ext_unpack_func unpack_func;     /* unpacks internal data */
 
-       /* non-zero if that extension cannot be overriden by the applications.
+       /* non-zero if that extension cannot be overridden by the applications.
         * That should be set to extensions which allocate data early, e.g., on
         * gnutls_init(), or modify the TLS protocol in a way that the application
         * cannot control. */
index 90e3a78a4aa258ed4fc5944b8cb27750c90027ab..1622b29764de270045344c09e332a7e41fc11310 100644 (file)
@@ -172,7 +172,7 @@ gnutls_session_get_data2(gnutls_session_t session, gnutls_datum_t *data)
  *
  * In client side this function returns the identifier returned by the
  * server, and cannot be assumed to have any relation to session resumption.
- * In server side this function is guarranteed to return a persistent
+ * In server side this function is guaranteed to return a persistent
  * identifier of the session since GnuTLS 3.6.4, which may not necessarily
  * map into the TLS session ID value. Prior to that version the value
  * could only be considered a persistent identifier, under TLS1.2 or earlier
@@ -222,7 +222,7 @@ gnutls_session_get_id(gnutls_session_t session,
  *
  * In client side this function returns the identifier returned by the
  * server, and cannot be assumed to have any relation to session resumption.
- * In server side this function is guarranteed to return a persistent
+ * In server side this function is guaranteed to return a persistent
  * identifier of the session since GnuTLS 3.6.4, which may not necessarily
  * map into the TLS session ID value. Prior to that version the value
  * could only be considered a persistent identifier, under TLS1.2 or earlier
index 618775c7f7572ccc841cd59c51088103cafe0090..beeca03daa91875229e3c938100827f4f7c13459 100644 (file)
@@ -37,7 +37,7 @@
 
 #include "utils.h"
 
-/* We test whether implicit global initialization can be overriden */
+/* We test whether implicit global initialization can be overridden */
 
 GNUTLS_SKIP_GLOBAL_INIT
 
index abc84834fde13ed3315fa5514eefb5eaf8c4d255..bf806b1321b4e92f81e95050dbb2c78b34800494 100644 (file)
@@ -117,7 +117,7 @@ void doit(void)
        }
 
        if (ret == 0) {
-               fail("overriden cert is not a CA!\n");
+               fail("overridden cert is not a CA!\n");
                exit(1);
        }
 
index 13dd76a6c240f584ab5ac7f52f6fe9de013deece..f9fe82f4b104789126e30b90e94d94c46041968c 100644 (file)
@@ -142,7 +142,7 @@ void doit(void)
        }
 
        if (ret == 0) {
-               fail("overriden cert is not a CA!\n");
+               fail("overridden cert is not a CA!\n");
                exit(1);
        }
 
index a395376f29ff83b674f29defafb9de0847191e4a..dec3088e11d968cd6150d3f4115e5a219fdf02df 100644 (file)
@@ -126,7 +126,7 @@ void doit(void)
        }
 
        if (ret == 0) {
-               fail("overriden cert is not a CA!\n");
+               fail("overridden cert is not a CA!\n");
                exit(1);
        }
 
index cf4f00b764341a8f0feb62f9abfbdcd40d132dcd..68e60d78892a409c3e87b97d6aa98084bc3274af 100644 (file)
@@ -97,7 +97,7 @@ static void start(struct test_st *test)
                ret = gnutls_set_default_priority_append(server, test->add_prio, &ep, 0);
                if (ret < 0) {
                        if (test->exp_err == ret) {
-                       /* the &ep value is only accurate when the default priorities are not overriden;
+                       /* the &ep value is only accurate when the default priorities are not overridden;
                         * otherwise it should be a pointer to the start of the string */
                                if (strchr(_gnutls_default_priority_string, '@') != 0) {
                                        if (ep != test->add_prio) {
index a95253ba94186c4029a438bb633f95b4b958498b..2a87b7655f8fa716b4c332b86c47766824220770 100755 (executable)
@@ -29,21 +29,21 @@ PROG=./cipher-override${EXEEXT}
 GNUTLS_NO_EXPLICIT_INIT=1 ${VALGRIND} ${PROG}
 ret=$?
 if test $ret != 0; then
-       echo "overriden cipher tests failed"
+       echo "overridden cipher tests failed"
        exit $ret
 fi
 
 ${VALGRIND} ${PROG}
 ret=$?
 if test $ret != 0; then
-       echo "overriden cipher tests 2 failed"
+       echo "overridden cipher tests 2 failed"
        exit $ret
 fi
 
 ${VALGRIND} ${PROG}
 ret=$?
 if test $ret != 0; then
-       echo "overriden cipher tests 3 failed"
+       echo "overridden cipher tests 3 failed"
        exit $ret
 fi
 
@@ -54,14 +54,14 @@ else
        GNUTLS_NO_EXPLICIT_INIT=1 ${VALGRIND} ./mac-override
        ret=$?
        if test $ret != 0; then
-               echo "overriden mac tests failed"
+               echo "overridden mac tests failed"
                exit $ret
        fi
 
        ${VALGRIND} ./mac-override
        ret=$?
        if test $ret != 0; then
-               echo "overriden mac tests 2 failed"
+               echo "overridden mac tests 2 failed"
                exit $ret
        fi
 fi
index 56bebe6644574ea57a44143c33dffa2e1ac3f3c1..9ddfc921f002eaa7f3946bae1e49784a8b3d18a4 100644 (file)
@@ -64,7 +64,7 @@ static int TLSEXT_TYPE_client_sent            = 0;
 static int TLSEXT_TYPE_client_received         = 0;
 static int TLSEXT_TYPE_server_sent             = 0;
 static int TLSEXT_TYPE_server_received         = 0;
-static int overriden_extension = -1;
+static int overridden_extension = -1;
 
 static const unsigned char ext_data[] =
 {
@@ -82,7 +82,7 @@ static int ext_recv_client_params(gnutls_session_t session, const unsigned char
 
        TLSEXT_TYPE_client_received = 1;
 
-       gnutls_ext_set_data(session, overriden_extension, session);
+       gnutls_ext_set_data(session, overridden_extension, session);
 
        return 0; //Success
 }
@@ -146,24 +146,24 @@ static void client(int sd)
        gnutls_transport_set_int(session, sd);
        gnutls_handshake_set_timeout(session, 20 * 1000);
 
-       ret = gnutls_session_ext_register(session, "ext_client", overriden_extension, GNUTLS_EXT_TLS, ext_recv_client_params, ext_send_client_params, NULL, NULL, NULL, 0);
+       ret = gnutls_session_ext_register(session, "ext_client", overridden_extension, GNUTLS_EXT_TLS, ext_recv_client_params, ext_send_client_params, NULL, NULL, NULL, 0);
        if (ret != GNUTLS_E_ALREADY_REGISTERED)
-               fail("client: register existing extension (%d)\n", overriden_extension);
+               fail("client: register existing extension (%d)\n", overridden_extension);
 
        ret = gnutls_session_ext_register(session, "ext_client", 0, GNUTLS_EXT_TLS, ext_recv_client_params, ext_send_client_params, NULL, NULL, NULL, GNUTLS_EXT_FLAG_OVERRIDE_INTERNAL);
        if (ret != GNUTLS_E_ALREADY_REGISTERED)
                fail("client: register extension %d\n", 0);
 
-       ret = gnutls_session_ext_register(session, "ext_client", overriden_extension, GNUTLS_EXT_TLS, ext_recv_client_params, ext_send_client_params, NULL, NULL, NULL, GNUTLS_EXT_FLAG_OVERRIDE_INTERNAL);
+       ret = gnutls_session_ext_register(session, "ext_client", overridden_extension, GNUTLS_EXT_TLS, ext_recv_client_params, ext_send_client_params, NULL, NULL, NULL, GNUTLS_EXT_FLAG_OVERRIDE_INTERNAL);
        if (ret < 0)
-               fail("client: register extension (%d)\n", overriden_extension);
+               fail("client: register extension (%d)\n", overridden_extension);
 
        /* Perform the TLS handshake
         */
        ret = gnutls_handshake(session);
 
        if (ret < 0) {
-               fail("[%d]: client: Handshake failed\n", overriden_extension);
+               fail("[%d]: client: Handshake failed\n", overridden_extension);
                gnutls_perror(ret);
                goto end;
        } else {
@@ -174,7 +174,7 @@ static void client(int sd)
        if (TLSEXT_TYPE_client_sent != 1 || TLSEXT_TYPE_client_received != 1)
                fail("client: extension not properly sent/received\n");
 
-       ret = gnutls_ext_get_data(session, overriden_extension, &p);
+       ret = gnutls_ext_get_data(session, overridden_extension, &p);
        if (ret < 0) {
                fail("gnutls_ext_get_data: %s\n", gnutls_strerror(ret));
        }
@@ -226,11 +226,11 @@ static void server(int sd)
        gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE,
                                serverx509cred);
 
-       ret = gnutls_session_ext_register(session, "ext_server", overriden_extension, GNUTLS_EXT_TLS, ext_recv_server_params, ext_send_server_params, NULL, NULL, NULL, 0);
+       ret = gnutls_session_ext_register(session, "ext_server", overridden_extension, GNUTLS_EXT_TLS, ext_recv_server_params, ext_send_server_params, NULL, NULL, NULL, 0);
        if (ret != GNUTLS_E_ALREADY_REGISTERED)
                fail("client: register existing extension\n");
 
-       ret = gnutls_session_ext_register(session, "ext_server", overriden_extension, GNUTLS_EXT_TLS, ext_recv_server_params, ext_send_server_params, NULL, NULL, NULL, GNUTLS_EXT_FLAG_OVERRIDE_INTERNAL);
+       ret = gnutls_session_ext_register(session, "ext_server", overridden_extension, GNUTLS_EXT_TLS, ext_recv_server_params, ext_send_server_params, NULL, NULL, NULL, GNUTLS_EXT_FLAG_OVERRIDE_INTERNAL);
        if (ret < 0)
                fail("client: register extension\n");
 
@@ -242,7 +242,7 @@ static void server(int sd)
                close(sd);
                gnutls_deinit(session);
                fail("[%d]: server: Handshake has failed (%s)\n\n",
-                    overriden_extension, gnutls_strerror(ret));
+                    overridden_extension, gnutls_strerror(ret));
                return;
        }
        if (debug)
@@ -285,7 +285,7 @@ static void override_ext(unsigned extension)
        TLSEXT_TYPE_client_received = 0;
        TLSEXT_TYPE_server_sent = 0;
        TLSEXT_TYPE_server_received = 0;
-       overriden_extension = extension;
+       overridden_extension = extension;
 
        child = fork();
        if (child < 0) {