]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix typos in src (#5257)
authorDimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com>
Mon, 25 Dec 2023 11:39:19 +0000 (12:39 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Dec 2023 11:39:19 +0000 (12:39 +0100)
* Fix typos in src

Misspellings found by codespell.

* Fix issue found by reviewer

* Update src/lib/unlang/try_priv.h

Co-authored-by: Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com>
---------

Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
196 files changed:
src/bin/checkrad.in
src/bin/collectd.c
src/bin/radclient.h
src/bin/radiusd.c
src/bin/unit_test_attribute.c
src/lib/eap_aka_sim/crypto.c
src/lib/eap_aka_sim/decode.c
src/lib/eap_aka_sim/id.c
src/lib/eap_aka_sim/state_machine.c
src/lib/io/control.c
src/lib/io/master.c
src/lib/io/message.c
src/lib/json/jpath.c
src/lib/json/json.c
src/lib/ldap/base.h
src/lib/ldap/bind.c
src/lib/ldap/connection.c
src/lib/ldap/control.c
src/lib/ldap/edir.c
src/lib/ldap/filter.c
src/lib/ldap/sasl.c
src/lib/ldap/start_tls.c
src/lib/redis/base.h
src/lib/redis/cluster.c
src/lib/redis/io.c
src/lib/redis/redis.c
src/lib/server/cf_file.c
src/lib/server/cf_parse.c
src/lib/server/cf_parse.h
src/lib/server/cf_util.c
src/lib/server/client.c
src/lib/server/command.c
src/lib/server/connection.c
src/lib/server/connection.h
src/lib/server/exec.c
src/lib/server/exec_legacy.c
src/lib/server/global_lib.c
src/lib/server/log.c
src/lib/server/main_config.c
src/lib/server/main_config.h
src/lib/server/module.c
src/lib/server/module_ctx.h
src/lib/server/module_rlm.c
src/lib/server/password.c
src/lib/server/process.h
src/lib/server/request.h
src/lib/server/request_data.c
src/lib/server/state.c
src/lib/server/tmpl_dcursor_tests.c
src/lib/server/tmpl_eval.c
src/lib/server/tmpl_tokenize.c
src/lib/server/trunk.c
src/lib/server/trunk.h
src/lib/tls/bio.c
src/lib/tls/cache.c
src/lib/tls/ctx.c
src/lib/tls/pairs.c
src/lib/tls/session.c
src/lib/unlang/call_env.c
src/lib/unlang/compile.c
src/lib/unlang/edit.c
src/lib/unlang/interpret.c
src/lib/unlang/interpret.h
src/lib/unlang/map.c
src/lib/unlang/module.c
src/lib/unlang/try_priv.h
src/lib/unlang/xlat.h
src/lib/unlang/xlat_builtin.c
src/lib/unlang/xlat_eval.c
src/lib/unlang/xlat_expr.c
src/lib/unlang/xlat_func.c
src/lib/unlang/xlat_priv.h
src/lib/unlang/xlat_purify.c
src/lib/unlang/xlat_redundant.c
src/lib/util/dbuff.h
src/lib/util/dict.h
src/lib/util/dict_test.c
src/lib/util/dict_tokenize.c
src/lib/util/dict_util.c
src/lib/util/dns.c
src/lib/util/edit.c
src/lib/util/event.c
src/lib/util/file.c
src/lib/util/hw.c
src/lib/util/inet.c
src/lib/util/iovec.c
src/lib/util/machine.c
src/lib/util/pair.c
src/lib/util/pair_inline.c
src/lib/util/pair_legacy.c
src/lib/util/pair_list_perf_test.c
src/lib/util/pair_tests.c
src/lib/util/proto.c
src/lib/util/rb.h
src/lib/util/sbuff.c
src/lib/util/sbuff.h
src/lib/util/sbuff_tests.c
src/lib/util/sem.c
src/lib/util/slab.h
src/lib/util/slab_tests.c
src/lib/util/snprintf.c
src/lib/util/time.c
src/lib/util/time.h
src/lib/util/trie.c
src/lib/util/value.c
src/lib/util/value.h
src/listen/bfd/session.h
src/listen/cron/proto_cron.c
src/listen/detail/proto_detail.c
src/listen/detail/proto_detail_file.c
src/listen/dhcpv4/proto_dhcpv4.c
src/listen/dhcpv6/proto_dhcpv6.c
src/listen/dns/proto_dns.c
src/listen/ldap_sync/persistent_search.h
src/listen/ldap_sync/proto_ldap_sync.c
src/listen/ldap_sync/proto_ldap_sync_ldap.c
src/listen/ldap_sync/rfc4533.h
src/listen/load/proto_load.c
src/listen/radius/proto_radius_tcp.c
src/listen/vmps/proto_vmps.c
src/listen/vmps/proto_vmps_udp.c
src/modules/rlm_cache/rlm_cache.h
src/modules/rlm_cipher/rlm_cipher.c
src/modules/rlm_couchbase/couchbase.c
src/modules/rlm_couchbase/mod.c
src/modules/rlm_couchbase/rlm_couchbase.c
src/modules/rlm_csv/rlm_csv.c
src/modules/rlm_eap/types/rlm_eap_fast/eap_fast.c
src/modules/rlm_eap/types/rlm_eap_peap/rlm_eap_peap.c
src/modules/rlm_eap/types/rlm_eap_pwd/eap_pwd.c
src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c
src/modules/rlm_idn/rlm_idn.c
src/modules/rlm_imap/rlm_imap.c
src/modules/rlm_isc_dhcp/rlm_isc_dhcp.c
src/modules/rlm_ldap/rlm_ldap.c
src/modules/rlm_linelog/rlm_linelog.c
src/modules/rlm_logtee/rlm_logtee.c
src/modules/rlm_ocsp/ocsp.c
src/modules/rlm_perl/rlm_perl.c
src/modules/rlm_radius/rlm_radius.c
src/modules/rlm_radius/rlm_radius_udp.c
src/modules/rlm_radius/test_plan.adoc
src/modules/rlm_radutmp/rlm_radutmp.c
src/modules/rlm_redis_ippool/rlm_redis_ippool.c
src/modules/rlm_rest/rlm_rest.c
src/modules/rlm_sigtran/event.c
src/modules/rlm_sigtran/libosmo-m3ua/bss_patch.c
src/modules/rlm_sigtran/libosmo-m3ua/counter.c
src/modules/rlm_sigtran/libosmo-m3ua/debug.c
src/modules/rlm_sigtran/libosmo-m3ua/include/msc_connection.h
src/modules/rlm_sigtran/libosmo-m3ua/include/sctp_m3ua.h
src/modules/rlm_sigtran/libosmo-m3ua/include/ss7_application.h
src/modules/rlm_sigtran/libosmo-m3ua/ipaccess.c
src/modules/rlm_sigtran/libosmo-m3ua/link_udp.c
src/modules/rlm_sigtran/libosmo-m3ua/links.c
src/modules/rlm_sigtran/libosmo-m3ua/mtp_layer3.c
src/modules/rlm_sigtran/libosmo-m3ua/sccp_state.c
src/modules/rlm_sigtran/libosmo-m3ua/ss7_application.c
src/modules/rlm_smtp/rlm_smtp.c
src/modules/rlm_sql/drivers/rlm_sql_cassandra/rlm_sql_cassandra.c
src/modules/rlm_sql/drivers/rlm_sql_db2/rlm_sql_db2.c
src/modules/rlm_sql/drivers/rlm_sql_firebird/rlm_sql_firebird.c
src/modules/rlm_sql/drivers/rlm_sql_sqlite/rlm_sql_sqlite.c
src/modules/rlm_sqlippool/rlm_sqlippool.c
src/modules/rlm_totp/totp.c
src/modules/rlm_unbound/rlm_unbound.5
src/modules/rlm_unbound/rlm_unbound.c
src/protocols/dhcpv4/raw.c
src/protocols/ethernet/ethernet.h
src/protocols/internal/decode.c
src/protocols/radius/abinary.c
src/protocols/radius/base.c
src/protocols/radius/decode.c
src/protocols/radius/encode.c
src/protocols/radius/list.c
src/protocols/tacacs/decode.c
src/tests/daemon/all.mk
src/tests/keywords/if-regex-match
src/tests/keywords/parallel
src/tests/keywords/update-prepend
src/tests/ldap_sync/all.mk
src/tests/modules/json/eval.unlang
src/tests/modules/json/parser.unlang
src/tests/modules/ldap/auth_ssl.unlang
src/tests/modules/ldap/auth_starttls.unlang
src/tests/modules/perl/test.pl
src/tests/modules/perl/xlat.pl
src/tests/modules/perl/xlat.unlang
src/tests/modules/rest/rest_xlat.unlang
src/tests/process/radius/proxy_state
src/tests/salt-test-server/salt/ldap.sls
src/tests/salt-test-server/salt/postgres/schema.sql
src/tests/tacacs/all.mk
src/tests/unit/condition/filter.txt
src/tests/util/radius1_test.c
src/tests/util/ring_buffer_test.c

index fe70343874ae3ad1fdd2d9eec56bf1559b22e66c..3bdbda3fa0711d4326c0fcf7223016e6a5c5e7b7 100644 (file)
@@ -321,7 +321,7 @@ sub strip_username {
 #      between Acct-Session-ID so can't be used to identify and 802.1X session (we ignore it).
 #
 #      If a session matching the username is found on the port specified, and the 
-#      session is still active then thats good enough...
+#      session is still active then that's good enough...
 #
 #      Author: Arran Cudbard-Bell <arran.cudbard-bell@freeradius.org>
 #
@@ -624,7 +624,7 @@ sub portslave_finger {
        while(<FD>) {
                #
                #       Check for ^Port. If we don't see it we
-               #       wont get confused by non-portslave-finger
+               #       won't get confused by non-portslave-finger
                #       output too.
                #
                if (/^Port/) {
@@ -1188,7 +1188,7 @@ sub bay_finger {          # ARGV: 1=nas_ip, 2=nas_port, 3=login, 4=sessid
 # and tunnel ID's are for a given Virtual-Access interface to construct
 # the following OID: .1.3.6.1.4.1.9.10.24.1.3.2.1.2.2.$tunID.$sessID
 # Then gets the username from that OID.
-# Make sure you set the $realm variable at the begining of the file if
+# Make sure you set the $realm variable at the beginning of the file if
 # needed. The new type for naslist is cisco_l2tp
 
 sub find_l2tp_login
@@ -1256,7 +1256,7 @@ sub mikrotik_snmp {
   # We want  mtxrInterfaceStatsName from MIKROTIK-MIB
   $oid = "1.3.6.1.4.1.14988.1.1.14.1.1.2";
 
-  # Mikrotik doesnt give port IDs correctly to RADIUS :(
+  # Mikrotik doesn't give port IDs correctly to RADIUS :(
   # practically this would limit us to a simple only-one user limit for
   # this script to work properly.
   @output = snmpwalk_prog($ARGV[1], $password, "$oid");
@@ -1293,7 +1293,7 @@ sub mikrotik_telnet {
   ($login, $password) = naspasswd($terminalserver, 1);
   return 2 if ($password eq "");
 
-  # MikroTik routeros doesnt tell us to which port the user is connected
+  # MikroTik RouterOS doesn't tell us to which port the user is connected
   # practically this would limit us to a simple only-one user limit for
   # this script to work properly.
   $t = new Net::Telnet (Timeout => 5,
@@ -1320,8 +1320,8 @@ sub mikrotik_telnet {
   $t->waitfor('/\[.*@.*\] > /');
 
   # It is not possible to get the line numbers etc.
-  # Thus we cant support if simultaneous-use is over 1
-  # At least I was using pppoe so it wasnt possible.
+  # Thus we can't support if simultaneous-use is over 1
+  # At least I was using pppoe so it wasn't possible.
   $t->print('ppp active print column name detail');
 
   # Somehow routeros echo'es our commands 2 times. We dont want to mix
@@ -1343,7 +1343,7 @@ sub mikrotik_telnet {
 
   #check for # of $user in output
   #the output includes only one = between name and username so we can
-  #safely use it as a seperator.
+  #safely use it as a separator.
 
 #disabled until mikrotik starts to send newline after each line...
 #  @output = $output;
@@ -1389,7 +1389,7 @@ sub redback_telnet {
        return 2;
     }
 
-    # Get loggin information
+    # Get login information
     ($root, $password) = naspasswd($terminalserver, 1);
     return 2 if ($password eq "");
 
index aa5684ce2bf0e7b4aa58a74828548e6cc154d626..efab2bbc70ea91dddd519f632ce17f46d1fc1569 100644 (file)
@@ -61,7 +61,7 @@ static void _copy_double_to_double(UNUSED rs_t *conf, rs_stats_value_tmpl_t *tmp
 }
 
 
-/** Allocates a stats template which describes a single guage/counter
+/** Allocates a stats template which describes a single gauge/counter
  *
  * This is just intended to simplify allocating a fairly complex memory structure
  * src and dst pointers must be set
@@ -70,7 +70,7 @@ static void _copy_double_to_double(UNUSED rs_t *conf, rs_stats_value_tmpl_t *tmp
  * @param conf Radsniff configuration.
  * @param plugin_instance usually the type of packet (in our case).
  * @param type string, the name of a collection of stats e.g. exchange
- * @param type_instance the name of the counter/guage within the collection e.g. latency.
+ * @param type_instance the name of the counter/gauge within the collection e.g. latency.
  * @param stats structure to derive statistics from.
  * @param values Value templates used to populate lcc_value_list.
  * @return
index 5a0886edcf00d7c26c3837e3591fec3e1bed3e76..4f30a418e795f6e1b12e20bcdc801054289ee9c8 100644 (file)
@@ -58,7 +58,7 @@ typedef struct {
        uint64_t rejected;                      //!< Requests to which we received a reject
        uint64_t lost;                          //!< Requests to which we received no response
        uint64_t passed;                        //!< Requests which passed a filter
-       uint64_t failed;                        //!< Requests which failed a fitler
+       uint64_t failed;                        //!< Requests which failed a filter
 } rc_stats_t;
 
 typedef struct {
index 4688d19cf47798d1ff1794856fa61d6508ce95dd..d9304e7120d8c27cde55c52dd47b1156f442eb0d 100644 (file)
@@ -674,7 +674,7 @@ int main(int argc, char *argv[])
         *      will stay permanently as "activating".
         *
         *      We detect this condition and warn about it here, using the
-        *      presence of the NOTIFY_SOCKET envrionmental variable to determine
+        *      presence of the NOTIFY_SOCKET environmental variable to determine
         *      whether we're running under systemd.
         */
        if (getenv("NOTIFY_SOCKET")) INFO("Built without support for systemd watchdog, but running under systemd");
@@ -1080,7 +1080,7 @@ cleanup:
        /*
         *      Ensure all thread local memory is cleaned up
         *      before we start cleaning up global resources.
-        *      This is necessay for single threaded mode
+        *      This is necessary for single threaded mode
         *      to ensure that thread local resources that
         *      depend on global resources are freed at the
         *      appropriate time.
index 9608643650dd7d4baaf62dec22c7e0bd9fa7321a..ec356f1dab2f87b652563f2a6c41b00b0b10208e 100644 (file)
@@ -1153,7 +1153,7 @@ static size_t command_include(command_result_t *result, command_file_ctx_t *cc,
        RETURN_OK(0);
 }
 
-/** Determine if unresolved atttributes are allowed
+/** Determine if unresolved attributes are allowed
  *
  */
 static size_t command_allow_unresolved(command_result_t *result, command_file_ctx_t *cc,
@@ -3074,7 +3074,7 @@ static fr_table_ptr_sorted_t      commands[] = {
                                }},
        { L("max-buffer-size"),   &(command_entry_t){
                                        .func = command_max_buffer_size,
-                                       .usage = "max-buffer-size[ <intger>]",
+                                       .usage = "max-buffer-size[ <integer>]",
                                        .description = "Limit the maximum temporary buffer space available for any command which uses it"
                                }},
        { L("migrate "),        &(command_entry_t){
index 34e3c71350f7ad423c5eb0f6b0a321f917708d88..946594c6041f5f3b5eba06aff53110e09ce06074 100644 (file)
@@ -127,7 +127,7 @@ int fr_aka_sim_crypto_init_checkcode(TALLOC_CTX *ctx, fr_aka_sim_checkcode_t **c
                return -1;
        }
        if (EVP_DigestInit_ex((*checkcode)->md_ctx, md, NULL) != 1) {
-               fr_tls_strerror_printf("Failed intialising MD ctx");
+               fr_tls_strerror_printf("Failed initialising MD ctx");
                goto error;
        }
 
@@ -629,7 +629,7 @@ int fr_aka_sim_crypto_umts_kdf_0(fr_aka_sim_keys_t *keys)
        Key = CK || IK
        FC = 0x20
        P0 = access network identity (3GPP TS 24.302)
-       L0 = length of acceess network identity (2 octets, big endian)
+       L0 = length of access network identity (2 octets, big endian)
        P1 = SQN xor AK (if AK is not used, AK is treated as 000..0
        L1 = 0x00 0x06
  @endverbatim
index 5bf796dff65907d392d6091f337e20767351b253..19d84ce007b785dfb83e8f717a5e7145eb9f6530 100644 (file)
@@ -512,7 +512,7 @@ static ssize_t sim_decode_tlv(TALLOC_CTX *ctx, fr_pair_list_t *out,
 /** Create any kind of VP from the attribute contents
  *
  * @param[in] ctx              to allocate new attributes in.
- * @param[in] out              to addd new attributes to.
+ * @param[in] out              to add new attributes to.
  * @param[in] parent           the current attribute we're processing.
  * @param[in] data             to parse. Points to the data field of the attribute.
  * @param[in] attr_len         length of the attribute being parsed.
index 0c50d50c30dd5c3acaabca8971923afe041d2b1d..6f3df6e1dd5ecb60babc0c781916859234a92fe1 100644 (file)
@@ -642,7 +642,7 @@ int fr_aka_sim_id_3gpp_pseudonym_decrypt(char out[AKA_SIM_IMSI_MAX_LEN + 1],
 
        /*
         *      This should never happen, and probably means that
-        *      some sort of memory corruption has occured.
+        *      some sort of memory corruption has occurred.
         */
        if (unlikely(decr_len > (AKA_SIM_IMSI_MAX_LEN + 1))) {
                fr_strerror_printf("Decrypted data len invalid.  Expected %i bytes, got %zu bytes",
index a2a26d6ddc663cbe7a98ad3444d76548657d890c..2f76657f61ee12c796c85408f827f55105eecaaf 100644 (file)
@@ -2799,7 +2799,7 @@ STATE_GUARD(common_challenge)
  * - If the previous section returned a failure rcode, enter the FAILURE-NOTIFICATION state.
  * - ...or call a function to process the contents of the AKA-Identity message, mainly the AT_IDENTITY value.
  * - If the message does not contain AT_IDENTITY, then enter the FAILURE-NOTIFICATION state.
- * - If the user requested another identity, re-enter the AKA-Identity sate.
+ * - If the user requested another identity, re-enter the AKA-Identity state.
  * - ...or continue based on the value of &Identity-Type which was added by #aka_identity,
  *   and possibly modified by the user.
  *   - Fastauth - Enter the REAUTHENTICATION state.
@@ -3066,7 +3066,7 @@ STATE_GUARD(aka_identity)
  * - If the previous section returned a failure rcode, enter the FAILURE-NOTIFICATION state.
  * - ...or call a function to process the contents of the SIM-Start message, mainly the AT_IDENTITY value.
  * - If the message does not contain AT_IDENTITY, then enter the FAILURE-NOTIFICATION state.
- * - If the user requested another identity, re-enter the SIM-START sate.
+ * - If the user requested another identity, re-enter the SIM-START state.
  * - ...or continue based on the value of &Identity-Type which was added by #sim_start,
  *   and possibly modified by the user.
  *   - Fastauth
index 4fee2a6997e5a1a60b9abedc40adfb75ff396304..3e0137af38ef8672384e0bd4727f52e49481c807 100644 (file)
@@ -313,7 +313,7 @@ int fr_control_message_push(fr_control_t *c, fr_ring_buffer_t *rb, uint32_t id,
                (void) fr_control_gc(c, rb);
                m = fr_control_message_alloc(c, rb, id, data, data_size);
                if (!m) {
-                       fr_strerror_const("Failed allocationg after GC");
+                       fr_strerror_const("Failed allocating after GC");
                        return -2;
                }
        }
index bff1ef11b5e79d27d01628c60301d517e1637e06..3ad192a17fc79db7d5aefd853ad7a0d95b17bce6 100644 (file)
@@ -671,7 +671,7 @@ static fr_io_connection_t *fr_io_connection_alloc(fr_io_instance_t const *inst,
 
                /*
                 *      This is "const", and the user can't
-                *      touch it.  So we just re-use the same
+                *      touch it.  So we just reuse the same
                 *      configuration everywhere.
                 */
                connection->child->app_io_instance = inst->app_io_instance;
@@ -3019,7 +3019,7 @@ int fr_master_io_listen(TALLOC_CTX *ctx, fr_io_instance_t *inst, fr_schedule_t *
 
                /*
                 *      This is "const", and the user can't
-                *      touch it.  So we just re-use the same
+                *      touch it.  So we just reuse the same
                 *      configuration everywhere.
                 */
                child->app_io_instance = inst->app_io_instance;
index 0dbf7c7f14ea591b39f64d2334a2d4b081dc0110..986864d4ac3fcfcc45754b9048f12929e9f54319 100644 (file)
@@ -236,7 +236,7 @@ int fr_message_done(fr_message_t *m)
  * @param[in] m the message to be localized
  * @param[in] message_size the size of the message, including the fr_message_t
  * @return
- *     - NULL on allocation errror
+ *     - NULL on allocation error
  *     - a newly localized message
  */
 fr_message_t *fr_message_localize(TALLOC_CTX *ctx, fr_message_t *m, size_t message_size)
@@ -921,7 +921,7 @@ cleanup:
  *  almost immediately fr_message_alloc().  Multiple calls in series
  *  to fr_message_reserve() MUST NOT be done.  The caller could also
  *  just call fr_ring_buffer_alloc(m->rb, size) if they wanted, and
- *  then udpate m->data_size by hand...
+ *  then update m->data_size by hand...
  *
  *  The message is returned
  *
index c9f951f09195058377e5dc61797b43c6ac659ddf..8dde82c609b3d7be5f23c6f2420a1280d308ec0b 100644 (file)
@@ -39,7 +39,7 @@ typedef enum {
        JPATH_SELECTOR_INVALID = 0,
        JPATH_SELECTOR_ROOT,                    //!< Jump to the root of the document.
        JPATH_SELECTOR_CURRENT,                 //!< Continue at the current node in the document.
-       JPATH_SELECTOR_WILDCARD,                //!< Wildcard, operate over all array indicies, or fields
+       JPATH_SELECTOR_WILDCARD,                //!< Wildcard, operate over all array indices, or fields
        JPATH_SELECTOR_FIELD,                   //!< A field, current JSON node must be an object.
        JPATH_SELECTOR_INDEX,                   //!< Array index, current JSON node must be an array.
        JPATH_SELECTOR_SLICE,                   //!< Array slice, current JSON node must be an array.
@@ -539,7 +539,7 @@ static ssize_t jpath_expr_parse(UNUSED jpath_selector_t *selector, UNUSED char c
  * @param inlen length of in.
  * @return
  *     - > 0 on success.
- *     - <= 0 on error (* -1 to get offset error ocurred at).
+ *     - <= 0 on error (* -1 to get offset error occurred at).
  */
 static ssize_t jpath_array_parse(jpath_selector_t *selector, char const *in, size_t inlen)
 {
@@ -808,7 +808,7 @@ static size_t jpath_selector_parse(fr_jpath_node_t *node, char const *in, size_t
  *
  * @return
  *     - > 0 on success.
- *     - <= 0 on error (* -1 to get offset error ocurred at).
+ *     - <= 0 on error (* -1 to get offset error occurred at).
  */
 ssize_t fr_jpath_parse(TALLOC_CTX *ctx, fr_jpath_node_t **head, char const *in, size_t inlen)
 {
index ff075ac31bd4f8178036e22c0f6d814ddb55dda5..e90ea072c88da82d354740724ec29a9a8b1c7a5b 100644 (file)
@@ -909,7 +909,7 @@ static json_object *json_smplobj_afrom_pair_list(TALLOC_CTX *ctx, fr_pair_list_t
 
                                /*
                                 *      Existing key will have refcount decremented
-                                *      and will be freed if thise drops to zero.
+                                *      and will be freed if this drops to zero.
                                 */
                                json_object_object_add(obj, fr_sbuff_start(&attr_name), values);
                        }
index aa4401b5d7b4bd0b3aec587bfe376441d08875c0..8e346e14432fca79fff7265b820c44d54144e3cc 100644 (file)
@@ -201,7 +201,7 @@ typedef struct {
                                                        ///< rootDSE.
        char const              *version_str;           //!< As returned from the vendorVersion attribute in the
                                                        ///< rootDSE.
-       fr_ldap_directory_type_t type;                  ///< Cannonical server implementation.
+       fr_ldap_directory_type_t type;                  ///< Canonical server implementation.
 
        bool                    cleartext_password;     //!< Whether the server will return the user's plaintext
                                                        ///< password.
@@ -475,9 +475,9 @@ typedef struct fr_ldap_referral_s {
        fr_dlist_t              entry;          //!< Entry in list of possible referrals
        fr_ldap_query_t         *query;         //!< Query this referral relates to
        LDAPURLDesc             *referral_url;  //!< URL for the referral
-       char                    *host_uri;      //!< Host URI used for referral conneciton
+       char                    *host_uri;      //!< Host URI used for referral connection
        char const              *identity;      //!< Bind identity for referral connection
-       char const              *password;      //!< Bind password for referral connecition
+       char const              *password;      //!< Bind password for referral connection
        fr_ldap_thread_trunk_t  *ttrunk;        //!< Trunk this referral should use
        request_t               *request;       //!< Request this referral relates to
 } fr_ldap_referral_t;
@@ -577,7 +577,7 @@ struct ldap_filter_s {
 typedef enum {
        LDAP_PROC_REFERRAL = 2,                         //!< LDAP server returned referral URLs.
        LDAP_PROC_CONTINUE = 1,                         //!< Operation is in progress.
-       LDAP_PROC_SUCCESS = 0,                          //!< Operation was successfull.
+       LDAP_PROC_SUCCESS = 0,                          //!< Operation was successful.
 
        LDAP_PROC_ERROR = -1,                           //!< Unrecoverable library/server error.
 
index 75a018386379f808890e0f24b096454be94d3ff7..03fd81bd495815b6abc4ae65b0dc2489e5384e3a 100644 (file)
@@ -33,7 +33,7 @@ USES_APPLE_DEPRECATED_API
  * @param[in] el       the event occurred in.
  * @param[in] fd       the event occurred on.
  * @param[in] flags    from kevent.
- * @param[in] fd_errno The error that ocurred.
+ * @param[in] fd_errno The error that occurred.
  * @param[in] uctx     Connection config and handle.
  */
 static void _ldap_bind_io_error(UNUSED fr_event_list_t *el, UNUSED int fd,
index 79898eea61200d64e21b462abfd0c0775e72278e..13c6aad66dec2bd1dc64f9269a4159c90a287198 100644 (file)
@@ -265,7 +265,7 @@ fr_ldap_connection_t *fr_ldap_connection_alloc(TALLOC_CTX *ctx)
        /*
         *      Ensure the fd is invalid to start with, preventing
         *      attempts to remove fd events if the server is shut down
-        *      before the LDAP conneciton is established
+        *      before the LDAP connection is established
         */
        c->fd = -1;
 
@@ -482,7 +482,7 @@ static void ldap_request_cancel(UNUSED fr_connection_t *conn, void *preq, UNUSED
  *
  * Inform the remote LDAP server that we no longer want responses to specific queries.
  *
- * @param[in] el       For timer mangement.
+ * @param[in] el       For timer management.
  * @param[in] tconn    The trunk connection handle
  * @param[in] conn     The specific connection queries will be cancelled on
  * @param[in] uctx     Context provided to fr_trunk_alloc
@@ -624,7 +624,7 @@ static void ldap_trunk_connection_notify(fr_trunk_connection_t *tconn, fr_connec
  *
  * @param[in] tconn            Trunk handle.
  * @param[in] el               Event list which will be used for I/O and timer events.
- * @param[in] conn_conf                Configuration of the connnection.
+ * @param[in] conn_conf                Configuration of the connection.
  * @param[in] log_prefix       What to prefix log messages with.
  * @param[in] uctx             User context passed to fr_trunk_alloc.
  */
index 33f4ebf4b63be30b54faacf08cd4ed7c57ad04e4..b8d3d4188a5ab477d12609ecdcaa1a4c6ce69acd 100644 (file)
@@ -34,7 +34,7 @@ USES_APPLE_DEPRECATED_API
 /** Merge connection and call specific client and server controls
  *
  * LDAP_OPT_CLIENT_CONTROLS and LDAP_OPT_SERVER_CONTROLS are useless
- * because they're overriden in their entirety if any call specific
+ * because they're overridden in their entirety if any call specific
  * controls are specified.
  *
  * @param[out] serverctrls_out Where to write serverctrls.
index e0d30d790ed3e4f5f64809b9e0b4499780460f77..74b4b1084da786be5a4e001705e594eb9bfe6f5f 100644 (file)
@@ -45,7 +45,7 @@ USES_APPLE_DEPRECATED_API
 #define NMAS_E_ACCESS_NOT_ALLOWED      (NMAS_E_BASE-59)        /* -1659 0xFFFFF985 */
 #define NMAS_E_INVALID_SPM_REQUEST     (NMAS_E_BASE-97)        /* -1697 0xFFFFF95F */
 
-/* OID of LDAP extenstion calls to read Universal Password */
+/* OID of LDAP extension calls to read Universal Password */
 #define NMASLDAP_GET_PASSWORD_REQUEST     "2.16.840.1.113719.1.39.42.100.13"
 #define NMASLDAP_GET_PASSWORD_RESPONSE    "2.16.840.1.113719.1.39.42.100.14"
 
index 54c58f2fcac55a00dcac78221aa7f1e34d9edae6..f62246f98c32488ea3287c3b5732984cd1033607 100644 (file)
@@ -477,7 +477,7 @@ static bool ldap_filter_node_eval(ldap_filter_t *node, fr_ldap_connection_t *con
 
                                /*
                                 *      Walk the value (v) and test (t), comparing until
-                                *      there is a mis-match or the end of one is reached.
+                                *      there is a mismatch or the end of one is reached.
                                 */
                                while ((v <= v_end) && (t <= t_end)) {
                                        /*
index fe4df349b4a31b462764fbc14847825d4dbdaff0..1ae0ed9f7aac82f35fe376a71ab6dd3274d10b5d 100644 (file)
@@ -36,7 +36,7 @@ static void _ldap_sasl_bind_io_write(fr_event_list_t *el, int fd, UNUSED int fla
  * @param[in] el       the event occurred in.
  * @param[in] fd       the event occurred on.
  * @param[in] flags    from kevent.
- * @param[in] fd_errno The error that ocurred.
+ * @param[in] fd_errno The error that occurred.
  * @param[in] uctx     Connection config and handle.
  */
 static void _ldap_sasl_bind_io_error(UNUSED fr_event_list_t *el, UNUSED int fd,
index 5c67f04e287e183188b57d5c71cc9b1ebdb4135a..76fd4578370e446252e81245134558c122268721 100644 (file)
@@ -44,7 +44,7 @@ typedef struct {
  * @param[in] el       the event occurred in.
  * @param[in] fd       the event occurred on.
  * @param[in] flags    from kevent.
- * @param[in] fd_errno The error that ocurred.
+ * @param[in] fd_errno The error that occurred.
  * @param[in] uctx     Connection config and handle.
  */
 static void _ldap_start_tls_io_error(UNUSED fr_event_list_t *el, UNUSED int fd, UNUSED int flags,
index 1515a06af9675799f90889d5ff23cb5cd457b5b5..ea3061098c4704c6f1e9f8770e24fd5309b719ce 100644 (file)
@@ -85,7 +85,7 @@ extern size_t redis_rcodes_len;
  * be returned to the redis cluster code.
  */
 typedef enum {
-       REDIS_RCODE_SUCCESS = 0,                //!< Operation was successfull.
+       REDIS_RCODE_SUCCESS = 0,                //!< Operation was successful.
        REDIS_RCODE_ERROR = -1,                 //!< Unrecoverable library/server error.
        REDIS_RCODE_TRY_AGAIN = -2,             //!< Try the operation again.
        REDIS_RCODE_RECONNECT = -3,             //!< Transitory error, caller should retry the operation
index af27c3ad4e40ab18637896855d907c6689cd39d6..334331b42d86c1fb8b24c9d4a8e6cc9892182f09 100644 (file)
  *
  *   #cluster_map_get and #cluster_map_apply, perform the operations described
  *   above. The get function, issues the 'cluster slots' command and performs validation, the
- *   apply function processes and applys the map.
+ *   apply function processes and applies the map.
  *
  *   Failing to apply a map is not a fatal error at runtime, and is only fatal on startup if
  *   pool.start > 0.
@@ -217,7 +217,7 @@ struct fr_redis_cluster_node_s {
        fr_socket_t             pending_addr;           //!< New node address to be applied when the pool
                                                        //!< is reconnected.
 
-       fr_redis_cluster_t      *cluster;               //!< Commmon configuration (database number,
+       fr_redis_cluster_t      *cluster;               //!< Common configuration (database number,
                                                        //!< password, etc..).
        fr_pool_t               *pool;                  //!< Pool associated with this node.
        CONF_SECTION            *pool_cs;               //!< Pool configuration section associated with node.
@@ -1829,7 +1829,7 @@ finish:
  * - May perform a temporary redirect on receiving a #REDIS_RCODE_ASK status.
  * - May reserve a new connection on receiving a #REDIS_RCODE_RECONNECT status.
  *
- * If a remap is in progress, has ocurred within the last second, has recently failed,
+ * If a remap is in progress, has occurred within the last second, has recently failed,
  * or fails, the '-MOVE' will be treated as a temporary redirect (-ASK).
  *
  * This allows the server to be more responsive during remaps, as unless the worker has been
@@ -2335,7 +2335,7 @@ fr_redis_cluster_t *fr_redis_cluster_alloc(TALLOC_CTX *ctx,
 
                tls_conf = fr_tls_conf_parse_client(tls_cs);
                if (!tls_conf) {
-                       ERROR("%s - Failed to parse TLS configuation", cluster->log_prefix);
+                       ERROR("%s - Failed to parse TLS configuration", cluster->log_prefix);
                        talloc_free(cluster);
                        return NULL;
                }
index af66fc1a76d5f3a5516315d2ce7a51d2af8546bb..7db5b114d999eb34b2e1817f1d83457bb8316a15 100644 (file)
@@ -74,7 +74,7 @@ static void _redis_io_service_readable(UNUSED fr_event_list_t *el, int fd, UNUSE
        fr_connection_t const   *conn = talloc_get_type_abort_const(uctx, fr_connection_t);
        fr_redis_handle_t       *h = conn->h;
 
-       DEBUG4("redis handle %p - FD %i now readble", h, fd);
+       DEBUG4("redis handle %p - FD %i now readable", h, fd);
 
        redisAsyncHandleRead(h->ac);
 }
index 9fddb2dfe86cea4ffb988f55468fac13849011ee..33c5b1728ce1bd90211e8bbfb691d185ed35b50e 100644 (file)
@@ -274,7 +274,7 @@ int fr_redis_reply_to_value_box(TALLOC_CTX *ctx, fr_value_box_t *out, redisReply
                FALL_THROUGH;
 
 #if HIREDIS_MAJOR >= 1
-       case REDIS_REPLY_BIGNUM:        /* FIXME - Could try and conver to integer ? */
+       case REDIS_REPLY_BIGNUM:        /* FIXME - Could try and convert to integer ? */
 #endif
        case REDIS_REPLY_STRING:
        case REDIS_REPLY_STATUS:
index 718eb25f8fdb8dd245ba41689b77c9bbf5439419..bdf1a962b12f4513708a429ad7e41264db9b8b67 100644 (file)
@@ -973,7 +973,7 @@ static int process_include(cf_stack_t *stack, CONF_SECTION *parent, char const *
                                return 0;
                        }
 
-                       ERROR("%s[%d]: Failed expanding '%s' - No matchin files", frame->filename, frame->lineno,
+                       ERROR("%s[%d]: Failed expanding '%s' - No matching files", frame->filename, frame->lineno,
                              value);
                        return -1;
                }
@@ -2614,7 +2614,7 @@ added_pair:
        /*
         *      Skip semicolon if we see it after a
         *      CONF_PAIR.  Also allow comma for
-        *      backwards compatablity with secret
+        *      backwards compatibility with secret
         *      things in v3.
         */
        if ((*ptr == ';') || (*ptr == ',')) {
index aa3209dd1a9b2fe3c143a895b50931ab403a8b46..a5e7063de9cd3b24c4e0c3b332762b591e9795c5 100644 (file)
@@ -17,7 +17,7 @@
 /**
  * $Id$
  * @file cf_parse.c
- * @brief Covert internal format configuration values into native C types.
+ * @brief Convert internal format configuration values into native C types.
  *
  * @copyright 2017 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
  * @copyright 2000,2006 The FreeRADIUS server project
index e58ff432ccfbc6845b3559b59e72f973c930cdb5..e60084e71cf91658620dfbc1f514bf50de50139f 100644 (file)
@@ -235,7 +235,7 @@ _Generic(&(_ct), \
  * @param[in] _name            of the CONF_PAIR to search for.
  * @param[in] _type            to parse the CONF_PAIR as.
  * @param[in] _flags           controlling parsing behaviour.
- * @param[in] _struct          contaning the field to write the result to.
+ * @param[in] _struct          containing the field to write the result to.
  * @param[in] _field           to write the result to.
  */
 #  define FR_CONF_OFFSET_TYPE_FLAGS(_name, _type, _flags, _struct, _field) \
@@ -250,7 +250,7 @@ _Generic(&(_ct), \
  *
  * @param[in] _name            of the CONF_PAIR to search for.
  * @param[in] _flags           controlling parsing behaviour.
- * @param[in] _struct          contaning the field to write the result to.
+ * @param[in] _struct          containing the field to write the result to.
  * @param[in] _field           to write the result to.
  */
 #  define FR_CONF_OFFSET_FLAGS(_name, _flags, _struct, _field)  \
@@ -262,7 +262,7 @@ _Generic(&(_ct), \
 /** conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
  *
  * @param[in] _name            of the CONF_PAIR to search for.
- * @param[in] _struct          contaning the field to write the result to.
+ * @param[in] _struct          containing the field to write the result to.
  * @param[in] _field           to write the result to.
  */
 #  define FR_CONF_OFFSET(_name, _struct, _field)  \
@@ -276,7 +276,7 @@ _Generic(&(_ct), \
  * @param[in] _name            of the CONF_PAIR to search for.
  * @param[in] _type            to parse the CONF_PAIR as.
  * @param[in] _flags           controlling parsing behaviour.
- * @param[in] _struct          contaning the field to write the result to.
+ * @param[in] _struct          containing the field to write the result to.
  * @param[in] _field           to write the result to.
  */
 #  define FR_CONF_OFFSET_IS_SET(_name, _type, _flags, _struct, _field) \
@@ -397,7 +397,7 @@ _Generic(&(_ct), \
  */
 DIAG_OFF(attributes)
 typedef enum CC_HINT(flag_enum) {
-       CONF_FLAG_HIDDEN                = 0,                            //!< Used by scripts to ommit items from the
+       CONF_FLAG_HIDDEN                = 0,                            //!< Used by scripts to omit items from the
                                                                        ///< generated documentation.
        CONF_FLAG_SUBSECTION            = (1 << 1),                     //!< Instead of putting the information into a
                                                                        ///< configuration structure, the configuration
index 60fedc7e3916b713447adcac79a6e39538ebfc17..ade648a3e7699335a747acbac82cd3f0a833306a 100644 (file)
@@ -549,7 +549,7 @@ CONF_ITEM *_cf_parent(CONF_ITEM const *ci)
  *
  * @param[in] ci       to return the location of.
  * @return
- *     - -1 if the #CONF_ITEM was created programatically.
+ *     - -1 if the #CONF_ITEM was created programmatically.
  *     - >= 0 where in the config file the line was parsed from.
  */
 int _cf_lineno(CONF_ITEM const *ci)
@@ -563,7 +563,7 @@ int _cf_lineno(CONF_ITEM const *ci)
  *
  * @param[in] ci       to return the location of.
  * @return
- *     - NULL if the #CONF_ITEM was created programatically.
+ *     - NULL if the #CONF_ITEM was created programmatically.
  *     - The path of the config file the #CONF_ITEM was located in.
  */
 char const *_cf_filename(CONF_ITEM const *ci)
index 09db7cd11f165fe5d2e6b485874499a1c1e5e8fe..5847700839817fdda395db98105c96afd669b5cd 100644 (file)
@@ -147,7 +147,7 @@ fr_client_list_t *client_list_init(CONF_SECTION *cs)
 #ifdef WITH_TRIE
 /*
  *     @todo - either support client definitions where "proto = *",
- *     or udpate this code to allow for that.  i.e. we create yet
+ *     or update this code to allow for that.  i.e. we create yet
  *     another set of v4/v6 tries, for "proto = *" clients.  And then
  *     do lookups there, too.  Or, just unify the udp/tcp tries, and
  *     instead do post-processing?  Though those two clients can have
@@ -762,7 +762,7 @@ fr_client_t *client_afrom_cs(TALLOC_CTX *ctx, CONF_SECTION *cs, CONF_SECTION *se
                                               &FR_DBUFF_TMP(bin, bin_len),
                                               &FR_SBUFF_IN(value + 2, hex_len), false);
                        if (converted < (bin_len - 1)) {
-                               cf_log_err(cs, "Invalide hex string in shared secret");
+                               cf_log_err(cs, "Invalid hex string in shared secret");
                                goto error;
                        }
 
index 0dbd54ae80aa5d151ffd955e267c95ecd1339959..98890f987989f0a9ed7705ab1055515f56f5a968 100644 (file)
@@ -77,7 +77,7 @@ static int split(char **input, char **output, bool syntax_string);
 
 /*
  *     Hacks for simplicity.  These data types aren't allowed as
- *     parameters, so we can re-use them for something else.
+ *     parameters, so we can reuse them for something else.
  */
 
 // our fixed string.  Any data type LESS than this must be a real data type
index 8ddc32eae3cc8e86c7447b4431c2b3c57fd25fad..4e449c7297f78837d7a0a00278001462876c1b06 100644 (file)
@@ -616,7 +616,7 @@ uint64_t fr_connection_get_num_timed_out(fr_connection_t const *conn)
 
 /** The requisite period of time has passed, try and re-open the connection
  *
- * @param[in] el       the time event ocurred on.
+ * @param[in] el       the time event occurred on.
  * @param[in] now      The current time.
  * @param[in] uctx     The #fr_connection_t the fd is associated with.
  */
@@ -685,7 +685,7 @@ static void connection_state_enter_closed(fr_connection_t *conn)
  *
  * Connection wasn't opened within the configured period of time
  *
- * @param[in] el       the time event ocurred on.
+ * @param[in] el       the time event occurred on.
  * @param[in] now      The current time.
  * @param[in] uctx     The #fr_connection_t the fd is associated with.
  */
index 0ae5055275b171856e52420fe751bc72ba0dc428..6b671eabf4f042e0d23377fd0dbf8c9b12d52646 100644 (file)
@@ -124,7 +124,7 @@ typedef fr_connection_state_t (*fr_connection_init_t)(void **h_out, fr_connectio
  * @param[in] h                Handle that was successfully opened.
  * @param[in] uctx     User context.
  * @return
- *     - #FR_CONNECTION_STATE_CONNECTED        if the handle is useable.
+ *     - #FR_CONNECTION_STATE_CONNECTED        if the handle is usable.
  *     - #FR_CONNECTION_STATE_FAILED           if the handle is unusable.
  */
 typedef fr_connection_state_t (*fr_connection_open_t)(fr_event_list_t *el, void *h, void *uctx);
index 65891ade16080eba4feb435052f3342cc3434e28..8ff04bd02092e9345d20bf43c13a60f639421515 100644 (file)
@@ -603,7 +603,7 @@ int fr_exec_fork_wait(pid_t *pid_p,
  * @param[in] request          currently being processed, may be NULL.
  * @param[in] args             to call as a fr_value_box_list_t.  Program will
  *                             be the first box and arguments in the subsequent boxes.
- * @param[in] env_pairs                list of pairs to be presented as evironment variables
+ * @param[in] env_pairs                list of pairs to be presented as environment variables
  *                             to the child.
  * @param[in] env_escape       Wrap string values in double quotes, and apply doublequote
  *                             escaping to all environmental variable values.
@@ -948,7 +948,7 @@ static void exec_stdout_read(UNUSED fr_event_list_t *el, int fd, int flags, void
  * @param[in] request          currently being processed, may be NULL.
  * @param[in] args             to call as a fr_value_box_list_t.  Program will
  *                             be the first box and arguments in the subsequent boxes.
- * @param[in] env_pairs                list of pairs to be presented as evironment variables
+ * @param[in] env_pairs                list of pairs to be presented as environment variables
  *                             to the child.
  * @param[in] env_escape       Wrap string values in double quotes, and apply doublequote
  *                             escaping to all environmental variable values.
index bf1d721caf4d7a3518e5dd120f81549b79779c02..1435f94150996de950a092d0d3fb0c28f7ba2dd0 100644 (file)
@@ -215,7 +215,7 @@ static NEVER_RETURNS void exec_child_legacy(request_t *request, char **argv, cha
  * @param[in] cmd              Command to execute. This is parsed into argv[]
  *                             parts, then each individual argv part is
  *                             xlat'ed.
- * @param[in] request          Current reuqest
+ * @param[in] request          Current request
  * @param[in] exec_wait                set to true to read from or write to child.
  * @param[in] input_pairs      list of value pairs - these will be put into
  *                             the environment variables of the child.
index 9d561349f492d1c539f986c8608f07c287f52e6e..1eb22d8b3c1a8ec9520730c37dbd24dbec9fe0d5 100644 (file)
@@ -92,7 +92,7 @@ static int lib_init_call(global_lib_inst_t *lib)
  *
  * @param to_init      Array of autoinit structures detailing libraries to initialise
  * @return
- *     - 0 on succcess
+ *     - 0 on success
  *     - -1 on failure
  */
 static int lib_auto_instantiate(global_lib_autoinst_t * const *to_init)
index e70ed220eca4f2f45461a81d88adf15232ee68eb..fb94daa4a38d70c35b752fda7e29896c72c452f8 100644 (file)
@@ -620,7 +620,7 @@ void log_request(fr_log_type_t type, fr_log_lvl_t lvl, request_t *request,
  *
  * This could all be done in a macro, but it turns out some implementations of the
  * variadic macros do not work at all well if the va_list being written to is further
- * up the stack (which is required as you still need a function to convert the elipses
+ * up the stack (which is required as you still need a function to convert the ellipsis
  * into a va_list).
  *
  * So, we use this small wrapper function instead, which will hopefully guarantee
index c0a491216a9119b9fd45995db1f154b723f50e04..1fcfb35aa1dbd154f746dc31b09a09dd36679d90 100644 (file)
@@ -1346,7 +1346,7 @@ do {\
        /*
         *      Reset the colourisation state.  The configuration
         *      files can disable colourisation if the terminal
-        *      supports it.  The configation files *cannot* enable
+        *      supports it.  The configuration files *cannot* enable
         *      colourisation if the terminal window doesn't support
         *      it.
         */
index df667cf0dc666209742853abcb450c07260a0545..365c7951fa8a822ab167f616f0009cf1e7cb55a3 100644 (file)
@@ -101,7 +101,7 @@ struct main_config_s {
 
 #ifdef HAVE_SETUID
        uid_t           server_uid;                     //!< UID we're running as.
-       gid_t           server_gid;                     //!< GID we're runing as.
+       gid_t           server_gid;                     //!< GID we're running as.
        uid_t           uid;                            //!< UID we should run as.
        bool            uid_is_set;
        gid_t           gid;                            //!< GID we should run as.
index 32a66ae1972de985d7bc17e741bd918b621781b3..dc6e1b1564c23e459d78892db29760fa35067731 100644 (file)
@@ -583,7 +583,7 @@ static int _module_thread_inst_list_free(void *tilp)
  * The majority of modules will have a single set of thread-specific instance data.
  *
  * An exception is dynamic modules, which may have multiple sets of thread-specific instance data tied to
- * a sepcific dynamic use of that module.
+ * a specific dynamic use of that module.
  *
  * @param[in] ctx      Talloc ctx to bind thread specific data to.
  * @param[out] out     Where to write the allocated #module_thread_instance_t.
@@ -616,7 +616,7 @@ static int module_thread_instantiate(TALLOC_CTX *ctx, module_thread_instance_t *
                rmi = module_root(mi);
 
                /*
-                *      Fixup the type name, incase something calls
+                *      Fixup the type name, in case something calls
                 *      talloc_get_type_abort() on it...
                 */
                if (!mi->module->thread_inst_type) {
@@ -751,7 +751,7 @@ int module_instantiate(module_instance_t *instance)
  * Allows the module to initialise connection pools, and complete any registrations that depend on
  * attributes created during the bootstrap phase.
  *
- * @param[in] ml containing modules ot instantiate.
+ * @param[in] ml containing modules to instantiate.
  * @return
  *     - 0 on success.
  *     - -1 on failure.
index 3c8f6c50c1a92f9b0b9f63ab66a2c99df26f3230..aa05f838015e12e458fef82fe4840662891057b2 100644 (file)
@@ -41,7 +41,7 @@ extern "C" {
 typedef struct {
        dl_module_inst_t const          *inst;          //!< Dynamic loader API handle for the module.
        void                            *thread;        //!< Thread specific instance data.
-       void                            *env_data;      //!< Per call enviornment data.
+       void                            *env_data;      //!< Per call environment data.
        void                            *rctx;          //!< Resume ctx that a module previously set.
 } module_ctx_t;
 
index f83d6ef9072fd285c40602caed099c6b6f705802..9d2ef3baacd76e6e4d8caa224fc7119510382a1b 100644 (file)
@@ -347,7 +347,7 @@ fr_pool_t *module_rlm_connection_pool_init(CONF_SECTION *module,
        /*
         *      We're reusing pool data add it to our local config
         *      section. This allows other modules to transitively
-        *      re-use a pool through this module.
+        *      reuse a pool through this module.
         */
        if (mycs != cs) {
                DEBUG4("%s: Copying pool reference %p from config item \"%s.pool\" to config item \"%s.pool\"",
@@ -534,7 +534,7 @@ module_instance_t *module_rlm_by_name_and_method(module_method_t *method, call_e
                 *      module as "foo" in the configuration.  If the
                 *      module exports a "recv bar" method, and the
                 *      virtual server has a "recv bar" processing
-                *      section, then they shoul match.
+                *      section, then they should match.
                 *
                 *      Unfortunately, this process is O(N*M).
                 *      Luckily, we only do it if all else fails, so
@@ -966,7 +966,7 @@ int modules_rlm_instantiate(void)
  * @param[in] root of the server configuration.
  * @return
  *     - 0 if all modules were bootstrapped successfully.
- *     - -1 if a module/virtual module failed to boostrap.
+ *     - -1 if a module/virtual module failed to bootstrap.
  */
 int modules_rlm_bootstrap(CONF_SECTION *root)
 {
index cf69f24e56336da473fbf63eaaf3feff20c732e9..27b879af3a69211a15e11db0148b0bae7ac093e1 100644 (file)
@@ -43,7 +43,7 @@ RCSID("$Id$")
 
 typedef enum {
        PASSWORD_CLEARTEXT = 0,                 //!< Variable length.
-       PASSWORD_HASH,                          //!< Fixed lenth.
+       PASSWORD_HASH,                          //!< Fixed length.
        PASSWORD_HASH_SALTED,                   //!< Fixed length hash, variable length salt.
        PASSWORD_HASH_VARIABLE                  //!< Variable length everything.
 } password_type_t;
@@ -242,7 +242,7 @@ static fr_pair_t *password_process_sha3(TALLOC_CTX *ctx, request_t *request, fr_
 #endif
 static fr_pair_t *password_process_header(TALLOC_CTX *ctx, request_t *request, fr_pair_t *known_good);
 
-/** Metdata for various password attributes
+/** Metadata for various password attributes
  *
  */
 static password_info_t password_info[] = {
@@ -936,7 +936,7 @@ static fr_pair_t *password_normalise_and_recheck(TALLOC_CTX *ctx, request_t *req
 /** Find a "known good" password in the control list of a request
  *
  * Searches for a "known good" password attribute, and applies any processing
- * and normification operations to it, returning a new mormalised fr_pair_t.
+ * and normification operations to it, returning a new normalised fr_pair_t.
  *
  * The ctx passed in should be freed when the caller is done with the returned
  * fr_pair_t, or alternatively, a persistent ctx may be used and the value
index 140890375b7b8a1046001aec4b65ddf74b2077f6..8fb8e5735b54bfbe663cdc4ac54191ca38577d29 100644 (file)
@@ -25,7 +25,7 @@
  *
  * The following macros must be defined before this header is included:
  *
- * - PROCESS_INST                      the type fo structure that holds instance data for the process module.
+ * - PROCESS_INST                      the type of structure that holds instance data for the process module.
  * - PROCESS_PACKET_TYPE               an enum, or generic type (uint32) that can hold
  *                                     all valid packet types.
  * - PROCESS_PACKET_CODE_VALID         the name of a macro or function which accepts one argument
index 3dcf3d333b2ae5baebacfb14d30d6c3441913808..fb06a1e3d9eaf461cbc3c82e041ef8b867997116 100644 (file)
@@ -185,7 +185,7 @@ struct request_s {
                                                //!< and responses.
        fr_dict_t const         *dict;          //!< Dictionary of the protocol that this request belongs to.
 
-       fr_pair_t               *pair_root;     //!< Root atribute which contains the
+       fr_pair_t               *pair_root;     //!< Root attribute which contains the
                                                ///< other list attributes as children.
 
        /** Pair lists associated with the request
index 21925929e9523d0bdb35b124feaf3722c288a27f..b55850d4b1ea96d0bbdab66dc874024e0aafd78e 100644 (file)
@@ -39,7 +39,7 @@ struct request_data_s {
        void            *opaque;                //!< Opaque data.
        bool            free_on_replace;        //!< Whether to talloc_free(opaque) when the request data is removed.
        bool            free_on_parent;         //!< Whether to talloc_free(opaque) when the request is freed
-       bool            persist;                //!< Whether this data should be transfered to a session_entry_t
+       bool            persist;                //!< Whether this data should be transferred to a session_entry_t
                                                //!< after we're done processing this request.
 
 #ifndef NDEBUG
index bbe22581003a511b6353394518bd5f38ebc3c427..0b11a910d2bfd5743448d32b56b771ec0b378974 100644 (file)
@@ -151,7 +151,7 @@ struct fr_state_tree_s {
        fr_rb_tree_t            *tree;                          //!< rbtree used to lookup state value.
        fr_dlist_head_t         to_expire;                      //!< Linked list of entries to free.
 
-       fr_time_delta_t         timeout;                        //!< How long to wait before cleaning up state entires.
+       fr_time_delta_t         timeout;                        //!< How long to wait before cleaning up state entries.
 
        bool                    thread_safe;                    //!< Whether we lock the tree whilst modifying it.
        pthread_mutex_t         mutex;                          //!< Synchronisation mutex.
@@ -549,7 +549,7 @@ static fr_state_entry_t *state_entry_create(fr_state_tree_t *state, request_t *r
        }
 
        /*
-        *      Link it to the end of the list, which is implicitely
+        *      Link it to the end of the list, which is implicitly
         *      ordered by cleanup time.
         */
        fr_dlist_insert_tail(&state->to_expire, entry);
@@ -702,7 +702,7 @@ int fr_state_to_request(fr_state_tree_t *state, request_t *request)
         *
         *      If the request is freed, it's freed immediately.
         *
-        *      Otherwise, if there's another round, we re-use
+        *      Otherwise, if there's another round, we reuse
         *      the state entry and insert it back into the
         *      tree.
         */
index bf1db42c91dfa69be9b2e352acde9671c45f114f..3720ec181221099c111ebb843e31af8368ae9b95 100644 (file)
@@ -99,7 +99,7 @@ static request_t *request_fake_alloc(void)
  *     due to the ability to add multiple instances of each attribute for the
  *     pair list performance tests.
  *
- *     So, when entering strings to build tmpls, ensure the top level attriubutes
+ *     So, when entering strings to build tmpls, ensure the top level attributes
  *     all end -0.
  *
  *     The same applies to immediate children of group attributes since they will
@@ -268,7 +268,7 @@ static void test_level_1_one_all(void)
 }
 
 /*
- *     One instance of attribute at the top level - search for non-existant
+ *     One instance of attribute at the top level - search for non-existent
  */
 static void test_level_1_one_missing(void)
 {
index 8fc66a016427fa5c0cd6203614ade74818172be5..acfa32df0fc9daabb4c3b9eee708ca16ac43fcf9 100644 (file)
@@ -248,7 +248,7 @@ fr_type_t tmpl_expanded_type(tmpl_t const *vpt)
  *
  * Depending what arguments are passed, either copies the value to buff, or writes a pointer
  * to a string buffer to out. This allows the most efficient access to the value resolved by
- * the #tmpl_t, avoiding unecessary string copies.
+ * the #tmpl_t, avoiding unnecessary string copies.
  *
  * @note This function is used where raw string values are needed, which may mean the string
  *     returned may be binary data or contain unprintable chars. #fr_snprint or #fr_asprint
index 4fed053d2b4b1e41a05e46ebec5d86c3aae30144..70c41e0f561a90c2fdbb4b027ed20814dfa7ee47 100644 (file)
@@ -1952,7 +1952,7 @@ do_suffix:
                         *      If the ref is outside of the internal namespace, then we use it.
                         *
                         *      If the ref is inside of the internal namespace (e.g. "request"), then we do
-                        *      somthing else.
+                        *      something else.
                         *
                         *      If we were given a root dictionary on input, use that.  We have to follow this
                         *      dictionary because this function calls itself recursively, WITHOUT updating
@@ -3820,7 +3820,7 @@ static inline CC_HINT(always_inline) int tmpl_attr_resolve(tmpl_t *vpt, tmpl_res
        if (!dict_def || tr_rules->force_dict_def) dict_def = tr_rules->dict_def;
 
        /*
-        *      First component is special becase we may need
+        *      First component is special because we may need
         *      to search for it in multiple dictionaries.
         *
         *      This emulates what's done in the initial
@@ -4237,7 +4237,7 @@ static void attr_to_raw(tmpl_t *vpt, tmpl_attr_t *ref)
        TMPL_ATTR_VERIFY(vpt);
 }
 
-/** Covert the leaf attribute of a tmpl to a unknown/raw type
+/** Convert the leaf attribute of a tmpl to a unknown/raw type
  *
  */
 void tmpl_attr_to_raw(tmpl_t *vpt)
@@ -4551,7 +4551,7 @@ fr_slen_t tmpl_attr_print(fr_sbuff_t *out, tmpl_t const *vpt, tmpl_attr_prefix_t
                         *      For refs we skip the attribute pointed to be the ref
                         *      and just print its children.
                         *
-                        *      In addtion skip printing "request." in most cases.
+                        *      In addition skip printing "request." in most cases.
                         */
                        if ((stack.da[depth] == request_attr_request) && tmpl_attr_list_next(tmpl_attr(vpt), ar) &&
                            (ar->filter.type == TMPL_ATTR_FILTER_TYPE_NONE)) continue;
@@ -4644,7 +4644,7 @@ fr_slen_t tmpl_attr_print(fr_sbuff_t *out, tmpl_t const *vpt, tmpl_attr_prefix_t
 /** Print a #tmpl_t to a string
  *
  * This function should primarily be used for regenerating vpt->name when the contents
- * of the #tmpl_t is changed programatically, or when the #tmpl_t is being serialized
+ * of the #tmpl_t is changed programmatically, or when the #tmpl_t is being serialized
  * in some non-standard way, i.e. as a value for a field in a database.
  *
  * This function is the direct counterpart to #tmpl_afrom_substr.
@@ -4815,7 +4815,7 @@ do { \
 
 /** Verify the attribute reference in a tmpl_t make sense
  *
- * @note If the attribute refernece is is invalid, causes the server to exit.
+ * @note If the attribute reference is is invalid, causes the server to exit.
  *
  * @param file obtained with __FILE__.
  * @param line obtained with __LINE__.
@@ -5407,7 +5407,7 @@ ssize_t tmpl_preparse(char const **out, size_t *outlen, char const *in, size_t i
                 *      simple parse that isn't wrong.  We therefore
                 *      accept most anything that's vaguely well
                 *      formed, and rely on the next stage to do a
-                *      more rigourous check.
+                *      more rigorous check.
                 */
        skip_string:
                *out = p;
index d2de70aaee1221b2aab762cb372356543e4a2e43..77c7b032b57445b305809a40189d61a848ca27ff 100644 (file)
@@ -840,7 +840,7 @@ int fr_trunk_del_watch(fr_trunk_t *trunk, fr_trunk_state_t state, fr_trunk_watch
  * @param[in] oneshot  Should this watcher only be run once.
  * @param[in] uctx     Context to pass to function.
  * @return
- *     - NULL if an invlaid state is passed.
+ *     - NULL if an invalid state is passed.
  *     - A new watch entry handle on success.
  */
 fr_trunk_watch_entry_t *fr_trunk_add_watch(fr_trunk_t *trunk, fr_trunk_state_t state,
@@ -1919,7 +1919,7 @@ done:
 /** Move requests off of a connection and requeue elsewhere
  *
  * @note We don't re-queue on draining or draining to free, as requests should have already been
- *      moved off of te connection.  It's also dangerous as the trunk management code main
+ *      moved off of the connection.  It's also dangerous as the trunk management code main
  *      clean up a connection in this state when it's run on re-queue, and then the caller
  *      may try and access a now freed connection.
  *
@@ -4429,7 +4429,7 @@ static uint64_t trunk_requests_per_connection(uint16_t *conn_count_out, uint32_t
         *      In the case of TRUNK_CONN_DRAINING_TO_FREE the trunk
         *      management code should spawn a new connection to takes its place.
         *
-        *      Connections placed in the DRAINING_TO_FREE sate are being
+        *      Connections placed in the DRAINING_TO_FREE state are being
         *      closed preemptively to deal with bugs on the server we're
         *      talking to, or misconfigured firewalls which are trashing
         *      TCP/UDP connection states.
index 36b8aac406a4fa4b5bb000dd8890a21fafbb2681..1508f1c9b8bcf593c8e40a80751978b382337c8e 100644 (file)
@@ -254,7 +254,7 @@ typedef struct {
        size_t                  req_pool_size;          //!< The size of the talloc pool allocated with the treq.
 
        bool                    always_writable;        //!< Set to true if our ability to write requests to
-                                                       ///< a connection handle is not dependant on the state
+                                                       ///< a connection handle is not dependent on the state
                                                        ///< of the underlying connection, i.e. if the library
                                                        ///< used to implement the connection can always receive
                                                        ///< and buffer new requests irrespective of the state
@@ -558,7 +558,7 @@ typedef void (*fr_trunk_request_cancel_mux_t)(fr_event_list_t *el,
  *
  * If the treq (trunk request) is in the FR_TRUNK_REQUEST_STATE_PARTIAL or
  * FR_TRUNK_REQUEST_STATE_SENT states, this callback will be called prior
- * to moving the treq to a new connection, requeueing the tre or freeing
+ * to moving the treq to a new connection, requeueing the treq or freeing
  * the treq.
  *
  * The treq, and any associated resources, should be
index 705f1d46823717ad732eea940f3e5e977e842bff..cb3b6a5bcef930b0d59f712fe48354580f5b3df6 100644 (file)
@@ -350,7 +350,7 @@ BIO *fr_tls_bio_dbuff_thread_local(TALLOC_CTX *ctx, size_t init, size_t max)
                return bd->bio;
        }
 
-       fr_assert_msg(!tls_bio_talloc_agg->dbuff_out.buff, "BIO not finialised");
+       fr_assert_msg(!tls_bio_talloc_agg->dbuff_out.buff, "BIO not finalised");
        MEM(fr_dbuff_init_talloc(ctx, &bd->dbuff_out, &bd->tctx, init, max));   /* Where we read from */
        bd->dbuff_in = FR_DBUFF_BIND_END_ABS(&bd->dbuff_out);                   /* Where we write to */
 
index 40b477a2bb5c0a932e3be18d0dda92be688618b3..896d93d9d792dbbd32e888dacfa5c94d5a52b13c 100644 (file)
@@ -933,7 +933,7 @@ again:
                {
                        SESSION_ID(sess_id, tls_cache->load.sess);
 
-                       RDEBUG3("Session ID %pV - Session ownership transfered to libssl", &sess_id);
+                       RDEBUG3("Session ID %pV - Session ownership transferred to libssl", &sess_id);
                        *copy = 0;
                        tls_cache->load.sess = NULL;
                }
@@ -1412,7 +1412,7 @@ int fr_tls_cache_ctx_init(SSL_CTX *ctx, fr_tls_cache_conf_t const *cache_conf)
 
                /*
                 *      If keys is NULL, then OpenSSL returns the expected
-                *      key length, which may be different across diferent
+                *      key length, which may be different across different
                 *      flavours/versions of OpenSSL.
                 *
                 *      We could calculate this in conf.c, but, if in future
index 23c002eddc1708572a995b0f3353445996fb507f..66d2d6b0dfab6d50005c83c585e958d72f9cbbe1 100644 (file)
@@ -476,7 +476,7 @@ int tls_ctx_version_set(
         *      TLS1_3_VERSION is available in OpenSSL 1.1.1.
         *
         *      TLS1_4_VERSION does not exist yet.  But we allow it
-        *      only if it is explictly permitted by the
+        *      only if it is explicitly permitted by the
         *      administrator.
         */
        if (conf->tls_max_version > (float) 0.0) {
@@ -937,7 +937,7 @@ post_ca:
 #endif
 
        /*
-        *      Set eliptical curve crypto configuration.
+        *      Set elliptical curve crypto configuration.
         */
 #ifndef OPENSSL_NO_ECDH
        if (ctx_ecdh_curve_set(ctx, conf->ecdh_curve, conf->disable_single_dh_use) < 0) goto error;
index 729e0b2f4486e33c0225efd30e8ec937609bff37..a6c32b82b8630d742eff414e08601db0195743d0 100644 (file)
@@ -249,7 +249,7 @@ skip_alt:
 
        /*
         *      Grab the X509 extensions, and create attributes out of them.
-        *      For laziness, we re-use the OpenSSL names
+        *      For laziness, we reuse the OpenSSL names
         */
        if (sk_X509_EXTENSION_num(ext_list) > 0) {
                int                     i;
index 84e8c9f24a5025ea33b5fa1a54fbaf062d7eeed2..da96c9c3fbe0dd3cd8df4679e047192921e4d24f 100644 (file)
@@ -1088,7 +1088,7 @@ finish:
  */
 int fr_tls_session_alert(UNUSED request_t *request, fr_tls_session_t *session, uint8_t level, uint8_t description)
 {
-       if (session->alerts_sent > 3) return -1;                /* Some kind of sate machine brokenness */
+       if (session->alerts_sent > 3) return -1;                /* Some kind of state machine brokenness */
 
        /*
         *      Ignore less severe alerts
@@ -1286,7 +1286,7 @@ static unlang_action_t tls_session_async_handshake_done_round(UNUSED rlm_rcode_t
  *
  * @param[in] request  being cancelled.
  * @param[in] action   we're being signalled with.
- * @param[in] uctx     the SSL * to cancell.
+ * @param[in] uctx     the SSL * to cancel.
  */
 static void tls_session_async_handshake_signal(UNUSED request_t *request, UNUSED fr_signal_t action, void *uctx)
 {
index f62efb5295c901c88301d1e63afdd26ad92a9d1f..cbc7232606badabd08e01069cba9c1099ac552d1 100644 (file)
@@ -632,7 +632,7 @@ void call_env_parsed_set_multi_index(call_env_parsed_t *parsed, size_t count, si
 
 /** Remove a call_env_parsed_t from the list of parsed call envs
  *
- * @note Indended to be used by subsection callbacks to remove a call_env_parsed_t
+ * @note Intended to be used by subsection callbacks to remove a call_env_parsed_t
  *     from the list of parsed call envs (typically on error).
  *
  * @param[in] parsed           to remove parsed data from.
index 68aa03f988b153f65db1b9c9ededa78732bc6109..081b3421b35d8d9bf5cd4dc18d11d413cf0db82e 100644 (file)
@@ -938,7 +938,7 @@ static unlang_t *compile_map(unlang_t *parent, unlang_compile_t *unlang_ctx, CON
         *
         *      Ensure that the module has a "map" entry in its module
         *      header?  Or ensure that the map is registered in the
-        *      "boostrap" phase, so that it's always available here.
+        *      "bootstrap" phase, so that it's always available here.
         */
        if (!pass2_fixup_map_rhs(g, unlang_ctx->rules)) goto error;
 
@@ -1907,7 +1907,7 @@ static bool compile_retry_section(unlang_actions_t *actions, CONF_ITEM *ci)
                value = cf_pair_value(cp);
 
                if (!value) {
-                       cf_log_err(csi, "Retry configuration must specifiy a value");
+                       cf_log_err(csi, "Retry configuration must specify a value");
                        return false;
                }
 
@@ -2076,7 +2076,7 @@ static unlang_t *compile_empty(unlang_t *parent, unlang_compile_t *unlang_ctx, C
 
        /*
         *      If we're compiling an empty section, then the
-        *      *intepreter* type is GROUP, even if the *debug names*
+        *      *interpreter* type is GROUP, even if the *debug names*
         *      are something else.
         */
        g = group_allocate(parent, cs, ext);
index 211edb8a7f98d7cf25c91f07faded9522d64b896..351227d6bfd22ff45c3457e123bfb08a9e58cd09 100644 (file)
@@ -1189,7 +1189,7 @@ static int expanded_lhs_value(request_t *request, unlang_frame_state_edit_t *sta
        fr_assert(current->parent);
 
        if (!box) {
-               RWDEBUG("Failed exapnding result");
+               RWDEBUG("Failed expanding result");
                return -1;
        }
 
@@ -1354,7 +1354,7 @@ static int check_lhs(request_t *request, unlang_frame_state_edit_t *state, edit_
                /*
                 *      For "+=", if there's no existing attribute, create one, and rewrite the operator we
                 *      apply to ":=".  Which also means moving the operator be in edit_map_t, and then updating the
-                *      "apply" funtions above to use that for the operations, but map->op for printing.
+                *      "apply" functions above to use that for the operations, but map->op for printing.
                 *
                 *      This allows "foo += 4" to set "foo := 4" when the attribute doesn't exist.  It also allows us
                 *      to do list appending to an empty list.  But likely only for strings, octets, and numbers.
index 8c44f9d16355804e4cdaad33d729ac60d0a8a2e8..7d6e9c23dc0cf4198da7f83c63b29353d6a81a15 100644 (file)
@@ -293,7 +293,7 @@ static void instruction_timeout_handler(UNUSED fr_event_list_t *el, UNUSED fr_ti
 /** Update the current result after each instruction, and after popping each stack frame
  *
  * @param[in] request          The current request.
- * @param[in] frame            The curren stack frame.
+ * @param[in] frame            The current stack frame.
  * @param[in,out] result       The current section result.
  * @param[in,out] priority     The current section priority.
  * @return
@@ -500,7 +500,7 @@ finalize:
 /** Evaluates all the unlang nodes in a section
  *
  * @param[in] request          The current request.
- * @param[in] frame            The curren stack frame.
+ * @param[in] frame            The current stack frame.
  * @param[in,out] result       The current section result.
  * @param[in,out] priority     The current section priority.
  * @return
@@ -1314,7 +1314,7 @@ bool unlang_request_is_cancelled(request_t const *request)
  *
  * @param[in] request          The current request.
  * @return
- *     - true if the request is resumable (i.e. has yeilded)
+ *     - true if the request is resumable (i.e. has yielded)
  *     - false if the request is not resumable (i.e. has not yielded)
  */
 bool unlang_interpret_is_resumable(request_t *request)
index 7d0ca3b49d5cb3ac2c236830d72275334d7e4e3d..8e47bd453380ee2e203dbdb95b857bf243d232aa 100644 (file)
@@ -63,23 +63,23 @@ typedef void (*unlang_request_stop_t)(request_t *request, void *uctx);
 
 /** Signal the owner of the interpreter that a request has yielded
  *
- * This is called whenever a request has given control back to the interpeter.
+ * This is called whenever a request has given control back to the interpreter.
  */
 typedef void (*unlang_request_yield_t)(request_t *request, void *uctx);
 
-/** Signal the owner of the interpeter that a request is ready to be resumed
+/** Signal the owner of the interpreter that a request is ready to be resumed
  *
  * This is called any time a yielded request has resumed.
  */
 typedef void (*unlang_request_resume_t)(request_t *request, void *uctx);
 
-/** Signal the owner of the interpeter that a request is now runnable
+/** Signal the owner of the interpreter that a request is now runnable
  *
  * This is called any time a yielded request has been marked runnable.
  */
 typedef void (*unlang_request_runnable_t)(request_t *request, void *uctx);
 
-/** Signal the owner of the interpeter that a request is now runnable
+/** Signal the owner of the interpreter that a request is now runnable
  *
  * This is called any time a yielded request has been marked runnable.
  */
index 7bbdfd0fc0fd1b9a603ad7d8ec20c713c63866be..5c65cef060a3a7e819eb8c35fafc447382323e72 100644 (file)
@@ -174,7 +174,7 @@ static unlang_action_t list_mod_create(rlm_rcode_t *p_result, request_t *request
 
                case UNLANG_UPDATE_MAP_EXPANDED_LHS:
                        /*
-                        *      map_to_list_mod() already concatentates the LHS, so we don't need to do it here.
+                        *      map_to_list_mod() already concatenates the LHS, so we don't need to do it here.
                         */
                        if (!map->rhs) goto next;
 
index 6794b567baf3b0a8599b2b7fd12199223712df80..ea4ca780311ff57ff94e54bb639a73db4bb2b0b5 100644 (file)
@@ -432,7 +432,7 @@ int unlang_module_set_resume(request_t *request, module_method_t resume)
  * the resumption frame and execute the xlat interpreter.
  *
  * When the xlat interpreter finishes, and pops the xlat frame, the unlang interpreter
- * will then call the module resumption frame, allowing the module to continue exectuion.
+ * will then call the module resumption frame, allowing the module to continue execution.
  *
  * @param[in] ctx              To allocate talloc value boxes and values in.
  * @param[out] p_success       Whether xlat evaluation was successful.
@@ -478,7 +478,7 @@ unlang_action_t unlang_module_yield_to_xlat(TALLOC_CTX *ctx, bool *p_success, fr
  * the resumption frame and execute the tmpl expansion.
  *
  * When the tmpl interpreter finishes, and pops the tmpl frame, the unlang interpreter
- * will then call the module resumption frame, allowing the module to continue exectuion.
+ * will then call the module resumption frame, allowing the module to continue execution.
  *
  * @param[in] ctx              To allocate talloc value boxes and values in.
  * @param[out] out             Where to write the result of the expansion.
index 6b6c91da4f7d0a6f6333b9a33804ab11c1160f43..adb8c5f2a01f1c864d5a4f07a95b0f7ffd3249d9 100644 (file)
@@ -19,7 +19,7 @@
  * $Id$
  *
  * @file unlang/try_priv.h
- * @brief Declarations for unlang trys
+ * @brief Declaration for unlang try
  *
  * @copyright 2023 Network RADIUS SAS (legal@networkradius.com)
  */
index c2a812c15043d28c084ad5a5ee220a2a644b058d..3ecf2ad7c1b8b7ab6cfccba3a95ff07bf097d71c 100644 (file)
@@ -348,7 +348,7 @@ typedef int (*xlat_thread_detach_t)(xlat_thread_inst_ctx_t const *xctx);
  *
  *
  * @param[in] XLAT_ARGS_N      the name of the macro to expand.
- *                             Created by concating ``XLAT_ARGS_ + <number of variadic arguments>``.
+ *                             Created by concatenating ``XLAT_ARGS_ + <number of variadic arguments>``.
  * @param[in] _list            The input list of value boxes.
  * @param[in] ...              The variadic arguments themselves.
  */
index a6784233691d378db96c0482bc6065492e232fc3..ce78fa738c1ce29d2faaaf589c8d43dc54b2f7f0 100644 (file)
@@ -1107,7 +1107,7 @@ static xlat_action_t xlat_func_log_debug(UNUSED TALLOC_CTX *ctx, UNUSED fr_dcurs
  *
  * Example:
 @verbatim
-%log.err("Big errror here")
+%log.err("Big error here")
 @endverbatim
  *
  * @ingroup xlat_functions
index 1056abb9c30a579f505c04b122f5c42fc12e7913..1086ff8ae9c2eb87f096ed907e3ed168ffae359f 100644 (file)
@@ -18,7 +18,7 @@
  * $Id$
  *
  * @file xlat_eval.c
- * @brief String expansion ("translation").  Evaluation of pre-parsed xlat epxansions.
+ * @brief String expansion ("translation").  Evaluation of pre-parsed xlat expansions.
  *
  * @copyright 2018-2021 Arran Cudbard-Bell (a.cudbardb@freeradius.org)
  * @copyright 2000,2006 The FreeRADIUS server project
index 6c0ded6b01aa3b1855d4ccdc84d06d8ddcf1ffc2..341e36f50ba903348199aaeafba8535c9617a4d0 100644 (file)
@@ -1046,7 +1046,7 @@ static int xlat_expr_logical_purify(xlat_exp_t *node, void *instance, request_t
                }
 
                /*
-                *      Start searching from the next entry, OR start seaching from where we left off before.
+                *      Start searching from the next entry, OR start searching from where we left off before.
                 */
                if (j < 0) j = i + 1;
 
@@ -2355,7 +2355,7 @@ static fr_slen_t tokenize_field(xlat_exp_head_t *head, xlat_exp_t **out, fr_sbuf
 
                /*
                 *      We've parsed one "thing", so we stop.  The
-                *      next thing shoud be an operator, not another
+                *      next thing should be an operator, not another
                 *      value.
                 */
                *out_c = '\0';
index 8746f519d6a2113b9acd16b2e0dce07523c9c3bc..cb9b1f9edf95e64c0edc7132108b771755e2a584 100644 (file)
@@ -184,7 +184,7 @@ xlat_t *xlat_func_find_module(module_inst_ctx_t const *mctx, char const *name)
 
 /** Register an xlat function for a module
  *
- * @param[in] ctx              Used to automate deregistration of the xlat fnction.
+ * @param[in] ctx              Used to automate deregistration of the xlat function.
  * @param[in] mctx             Instantiation context from the module.
  *                             Will be duplicated and passed to future xlat calls.
  * @param[in] name             of the xlat.
@@ -279,7 +279,7 @@ xlat_t *xlat_func_register_module(TALLOC_CTX *ctx, module_inst_ctx_t const *mctx
 
 /** Register an xlat function
  *
- * @param[in] ctx              Used to automate deregistration of the xlat fnction.
+ * @param[in] ctx              Used to automate deregistration of the xlat function.
  * @param[in] name             of the xlat.
  * @param[in] func             to register.
  * @param[in] return_type      what type of output the xlat function will produce.
@@ -314,7 +314,7 @@ static inline int xlat_arg_parser_validate(xlat_t *x, xlat_arg_parser_t const *a
        if (arg->variadic) {
                if (!fr_cond_assert_msg(last, "%s - variadic can only be set on the last argument", x->name)) return -1;
                if (!fr_cond_assert_msg(!arg->required, "%s - required can't be set on a variadic argument. "
-                                       "Set required in the preceeding entry", x->name)) return -1;
+                                       "Set required in the preceding entry", x->name)) return -1;
        }
 
        if (arg->always_escape) {
index 47055089117d1a2d0173809ba039e2ddaf49f3d9..4d1c7dc9ad5458f19b8dcfd80685f63c5e245672 100644 (file)
@@ -154,7 +154,7 @@ struct xlat_exp_s {
 
 #ifndef NDEBUG
        char const * _CONST     file;           //!< File where the xlat was allocated.
-       int                     line;           //!< Line where the xlat was alocated.
+       int                     line;           //!< Line where the xlat was allocated.
 #endif
 
        union {
@@ -187,7 +187,7 @@ struct xlat_exp_head_s {
 
 #ifndef NDEBUG
        char const * _CONST     file;           //!< File where the xlat was allocated.
-       int                     line;           //!< Line where the xlat was alocated.
+       int                     line;           //!< Line where the xlat was allocated.
 #endif
 };
 
index 9b3bfeaa856a34912a7bad715fcea40a8c7013af..486f2eb58a0ccd2e53ed6f2b3520dd2e82fc841a 100644 (file)
@@ -386,7 +386,7 @@ static int binary_peephole_optimize(TALLOC_CTX *ctx, xlat_exp_t **out, xlat_exp_
        /*
         *      value op attribute
         *
-        *      We just swap LHS and RHS without caring about the operator, because wee don't use the
+        *      We just swap LHS and RHS without caring about the operator, because we don't use the
         *      operator, and the caller has no idea that we swapped the pointers..
         */
        if ((rhs->type == XLAT_TMPL) && tmpl_is_attr(rhs->vpt) &&
index fcba85c3993cf8dcfc31dfea9bcee2616420c5cf..efc200b7a8b88541760d2370d0ec7d3a3b790ca1 100644 (file)
@@ -322,7 +322,7 @@ static int xlat_redundant_instantiate(xlat_inst_ctx_t const *xctx)
                 */
                head->flags = node->flags;
                if (xlat_finalize(head, NULL) < 0) {
-                       PERROR("Failed boostrapping function \"%s\"",
+                       PERROR("Failed bootstrapping function \"%s\"",
                               xrf->func->name);
                        goto error;
                }
index 2f9e02d673e5bfb71e69e70c7db912747ad10556..a23e9485252fc865dc48a3df535ca9046222481f 100644 (file)
@@ -349,7 +349,7 @@ void _fr_dbuff_init(fr_dbuff_t *out, uint8_t const *start, uint8_t const *end, b
  * @param[out] _out            Pointer to buffer to parse
  * @param[in] _start           Start of the buffer to parse.
  * @param[in] _len_or_end      Either an end pointer or the length
- *                             of the buffer we're deconding.
+ *                             of the buffer we're decoding.
  */
 #define fr_dbuff_init(_out, _start, _len_or_end) \
 _fr_dbuff_init(_out, \
@@ -566,7 +566,7 @@ do { \
 /** @name Extension requests
  *
  * These functions/macros may be used to request that the underlying buffer is
- * either extended to accomodate more data, or that data is shifted out of the
+ * either extended to accommodate more data, or that data is shifted out of the
  * buffer, and that the buffer is refilled.
  *
  * @{
@@ -1767,7 +1767,7 @@ FR_DBUFF_OUT_DEF(int64)
 /** Copy data from a dbuff or marker to a fixed sized C type
  *
  * @param[out] _out                    Where to write the data.  If out is an integer type
- *                                     a byteswap will be performed if native endianess
+ *                                     a byteswap will be performed if native endianness
  *                                     is not big endian.
  * @param[in] _dbuff_or_marker         to copy data from. Will be advanced by the number
  *                                     of bytes consumed, i.e. if out is a uin16_t *,
index c31ebf439fe5ba583e9001888fb6743066c64072..84f5986b5e30087342ee322b1a476e2e74094274 100644 (file)
@@ -274,7 +274,7 @@ typedef enum {
        FR_DICT_ATTR_NOTFOUND           = -1,                   //!< Attribute couldn't be found.
        FR_DICT_ATTR_PROTOCOL_NOTFOUND  = -2,                   //!< Protocol couldn't be found.
        FR_DICT_ATTR_PARSE_ERROR        = -3,                   //!< Attribute string couldn't be parsed
-       FR_DICT_ATTR_INTERNAL_ERROR     = -4,                   //!< Internal error ocurred.
+       FR_DICT_ATTR_INTERNAL_ERROR     = -4,                   //!< Internal error occurred.
        FR_DICT_ATTR_OOM                = -5,                   //!< Memory allocation error.
        FR_DICT_ATTR_NOT_DESCENDENT     = -6,                   //!< Attribute is not a descendent of the parent
                                                                ///< attribute.
@@ -347,7 +347,7 @@ extern bool const   fr_dict_enum_allowed_chars[UINT8_MAX + 1];
 #include <freeradius-devel/util/dict_ext.h>
 /** @} */
 
-/** @name Programatically create dictionary attributes and values
+/** @name Programmatically create dictionary attributes and values
  *
  * @{
  */
index dc670bba693442d13932d6e1ca4199b8600da61f..7552026de85aaa7d28aa37a2d4cca4a4a78b6488 100644 (file)
@@ -14,7 +14,7 @@
  *   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/** Common functions for test files which need to programatically create test dictionaries
+/** Common functions for test files which need to programmatically create test dictionaries
  *
  * @file src/lib/util/dict_test.c
  *
index f197f15d36dd99482f2829b0835e4650f85701d7..514838ecfe337564dc6c3b2b1aa6caf7291ff2b3 100644 (file)
@@ -2791,7 +2791,7 @@ static int dict_from_file(fr_dict_t *dict,
 
 /** (Re-)Initialize the special internal dictionary
  *
- * This dictionary has additional programatically generated attributes added to it,
+ * This dictionary has additional programmatically generated attributes added to it,
  * and is checked in addition to the protocol specific dictionaries.
  *
  * @note The dictionary pointer returned in out must have its reference counter
index 32392626c32985f90d9eacdb3c33d1ce26a83e12..f2f59f9f035b7cca01e85fe1932e2ab2bbbfeca0 100644 (file)
@@ -1932,7 +1932,7 @@ fr_slen_t fr_dict_oid_component(fr_dict_attr_err_t *err,
  * @note Will leave the sbuff pointing at the component the error occurred at
  *      so that the caller can attempt to process the component in another way.
  *      An err pointer should be provided in order to determine if an error
- *      ocurred.
+ *      occurred.
  *
  * @param[out] err             The parsing error that occurred.
  * @param[out] out             The deepest attribute we resolved.
@@ -2250,7 +2250,7 @@ bool fr_dict_compatible(fr_dict_t const *dict1, fr_dict_t const *dict2)
  * @param[in] da       The vendor attribute.
  * @return
  *     - The vendor.
- *     - NULL if no vendor with that number was regitered for this protocol.
+ *     - NULL if no vendor with that number was registered for this protocol.
  */
 fr_dict_vendor_t const *fr_dict_vendor_by_da(fr_dict_attr_t const *da)
 {
@@ -2272,7 +2272,7 @@ fr_dict_vendor_t const *fr_dict_vendor_by_da(fr_dict_attr_t const *da)
  * @param[in] name             to search for.
  * @return
  *     - The vendor.
- *     - NULL if no vendor with that name was regitered for this protocol.
+ *     - NULL if no vendor with that name was registered for this protocol.
  */
 fr_dict_vendor_t const *fr_dict_vendor_by_name(fr_dict_t const *dict, char const *name)
 {
@@ -2295,7 +2295,7 @@ fr_dict_vendor_t const *fr_dict_vendor_by_name(fr_dict_t const *dict, char const
  * @param[in] vendor_pen       to search for.
  * @return
  *     - The vendor.
- *     - NULL if no vendor with that number was regitered for this protocol.
+ *     - NULL if no vendor with that number was registered for this protocol.
  */
 fr_dict_vendor_t const *fr_dict_vendor_by_num(fr_dict_t const *dict, uint32_t vendor_pen)
 {
@@ -2574,7 +2574,7 @@ fr_slen_t dict_attr_search_qualified(fr_dict_attr_err_t *err, fr_dict_attr_t con
  * This function will search through all loaded dictionaries, or a subset of
  * loaded dictionaries, for a matching attribute in the top level namespace.
  *
- * This attribute may be qualified with `<protcol>.` to selection an attribute
+ * This attribute may be qualified with `<protocol>.` to selection an attribute
  * in a specific case.
  *
  * @note If calling this function from the server any list or request qualifiers
@@ -2638,7 +2638,7 @@ fr_slen_t fr_dict_attr_search_by_name_substr(fr_dict_attr_err_t *err, fr_dict_at
  * @note If calling this function from the server any list or request qualifiers
  *  should be stripped first.
  *
- * @note err should be checked to determine if a parse error ocurred.
+ * @note err should be checked to determine if a parse error occurred.
  *
  * @param[out] err             Why parsing failed. May be NULL.
  *                             @see fr_dict_attr_err_t
@@ -2667,7 +2667,7 @@ fr_slen_t fr_dict_attr_search_by_qualified_oid_substr(fr_dict_attr_err_t *err, f
  * @note If calling this function from the server any list or request qualifiers
  *  should be stripped first.
  *
- * @note err should be checked to determine if a parse error ocurred.
+ * @note err should be checked to determine if a parse error occurred.
  *
  * @param[out] err             Why parsing failed. May be NULL.
  *                             @see fr_dict_attr_err_t
@@ -2781,7 +2781,7 @@ fr_slen_t fr_dict_attr_by_name_substr(fr_dict_attr_err_t *err, fr_dict_attr_t co
        }
 
        /*
-        *      Do a second pass, ensuring that the name has at least one alpha-numeric character.
+        *      Do a second pass, ensuring that the name has at least one alphanumeric character.
         */
        for (p = buffer; p < (buffer + len); p++) {
                if (sbuff_char_alpha_num[(uint8_t) *p]) break;
@@ -3741,7 +3741,7 @@ int _fr_dict_autofree(fr_dict_autoload_t const *to_free, char const *dependent)
  *
  * This should only be used when dictionaries are being dynamically loaded during
  * compilation.  It should not be used to load dictionaries at runtime, or if
- * modules need to load dicitonaries (use static fr_dict_autoload_t defs).
+ * modules need to load dictionaries (use static fr_dict_autoload_t defs).
 
  */
 struct fr_dict_autoload_talloc_s {
@@ -3763,11 +3763,11 @@ static int _fr_dict_autoload_talloc_free(fr_dict_autoload_talloc_t const *to_fre
  * Mainly useful for resolving "forward" references from unlang immediately.
  *
  * @note If the talloc chunk is freed it does not mean the dictionary will
- *      be immediately freeed.  It will be freed when all other references
+ *      be immediately freed.  It will be freed when all other references
  *      to the dictionary are gone.
  *
- * @parma[in] ctx      to bind the dictionary lifetime to.
- * @parma[in] proto    to load.
+ * @param[in] ctx      to bind the dictionary lifetime to.
+ * @param[in] proto    to load.
  * @param[in] dependent to register this reference to.  Will be dupd.
  */
 fr_dict_autoload_talloc_t *_fr_dict_autoload_talloc(TALLOC_CTX *ctx, fr_dict_t const **out, char const *proto, char const *dependent)
index 7b62ddca0710b4bfba4871215e777167bf35f1a7..c5acb20d5c786f9f491ae5b6a97b24abc2acbee9 100644 (file)
@@ -288,7 +288,7 @@ static bool dns_label_compress(uint8_t const *packet, uint8_t const *start, uint
         *      Note that by design, next > end.  We don't care about
         *      the size of the buffer we put "label" into.  We only
         *      care that all bytes of "label" are valid, and we don't
-        *      access memroy after "label".
+        *      access memory after "label".
         */
 
        /*
@@ -978,7 +978,7 @@ ssize_t fr_dns_label_uncompressed_length(uint8_t const *packet, uint8_t const *b
                         *      ... an entire domain name or a list of
                         *      labels at the end of a domain name is
                         *      replaced with a pointer to a prior
-                        *      occurance of the same name.
+                        *      occurrence of the same name.
                         *      ...
                         *
                         *      Note the key word PRIOR.  If we
index 132ed051cd7466556267a3b67c13fa0208861898..64d211a250036ca5102ed65474d431be3773b387 100644 (file)
@@ -673,7 +673,7 @@ int fr_edit_list_replace_pair(fr_edit_list_t *el, fr_pair_list_t *list, fr_pair_
        /*
         *      We call edit_record() twice, which involves two
         *      complete passes over the edit list.  That's fine,
-        *      either the edit list is small, OR we will eventially
+        *      either the edit list is small, OR we will eventually
         *      put the VPs to be edited into an RB tree.
         */
        if (edit_record(el, FR_EDIT_INSERT, vp, list, to_replace) < 0) return -1;
@@ -835,7 +835,7 @@ fr_edit_list_t *fr_edit_list_alloc(TALLOC_CTX *ctx, int hint, fr_edit_list_t *pa
 /** Commit an edit list.
  *
  *  If there are nested transactions, then this transaction is
- *  committed only when the parent transaction has been commited.
+ *  committed only when the parent transaction has been committed.
  *
  */
 void fr_edit_list_commit(fr_edit_list_t *el)
index 0c0bfd54fc085634015c6caa95e8f8f539c5d396..6f5d9342665db62a5d89bd2638da5fe66439257b 100644 (file)
@@ -666,7 +666,7 @@ static void fr_event_fd_noop(UNUSED fr_event_list_t *el, UNUSED int fd, UNUSED i
  * @param[in] prev             Previous set of functions mapped to filters.
  * @return
  *     - >= 0 the number of changes written to out.
- *     - < 0 an error ocurred.
+ *     - < 0 an error occurred.
  */
 static ssize_t fr_event_build_evset(
 #ifndef WITH_EVENT_DEBUG
@@ -1219,7 +1219,7 @@ int _fr_event_filter_insert(NDEBUG_LOCATION_ARGS
  * @param[in] error    function to call when an error occurs on the fd.
  * @param[in] uctx     to pass to handler.
  * @return
- *     - 0 on succes.
+ *     - 0 on success.
  *     - -1 on failure.
  */
 int _fr_event_fd_insert(NDEBUG_LOCATION_ARGS
@@ -1467,7 +1467,7 @@ int _fr_event_timer_at(NDEBUG_LOCATION_ARGS
        }
 
        /*
-        *      If there is an event, re-use it instead of freeing it
+        *      If there is an event, reuse it instead of freeing it
         *      and allocating a new one.  This is to reduce memory
         *      churn for repeat events.
         */
@@ -1872,7 +1872,7 @@ int _fr_event_pid_wait(NDEBUG_LOCATION_ARGS
                /*
                 *      Failed adding waiter for process, but process has not completed...
                 *
-                *      This weird, but seems to happen on macOS ocassionally.
+                *      This weird, but seems to happen on macOS occasionally.
                 *
                 *      Add an event to run early exit...
                 *
index 4272102331d0b93f51043b1dc640dd2511023f4b..3cd094bcda33609a2ebb71ae3f93804ea74b261c 100644 (file)
@@ -107,7 +107,7 @@ static ssize_t _fr_mkdir(int *fd_out, char *start, char *path, mode_t mode, fr_m
         *      exist.  Look for the LAST path name.  Try
         *      to create that.  If there's an error, we leave
         *      the path path as the one at which the
-        *      error occured.
+        *      error occurred.
         */
        p = strrchr(path, FR_DIR_SEP);
        if (!p || (p == path)) return start - path;     /* last path component and we've previously failed */
index befa44e7f5ec6c66285a62b27aebdba4e7a00bfc..1d18956ffe77787d4ff2b334fb28326f253db22e 100644 (file)
@@ -96,7 +96,7 @@ uint32_t fr_hw_num_cores_active(void)
        /*
         *      Catch Linux weirdness.
         *
-        *      You'd think this'd be enough to quiet clang scan,
+        *      You'd think this would be enough to quiet clang scan,
         *      but it's not.
         */
        if (unlikely((tsibs == 0) || (lcores == 0) || (lcores > tsibs))) {
index 3086f5832a8cb121c7f81fb6ed7f6278a6647e90..d1ceb899cbed15859796a5916e855e90e865e58f 100644 (file)
@@ -227,7 +227,7 @@ void fr_ipaddr_mask(fr_ipaddr_t *addr, uint8_t prefix)
  * found and a record for AF_INET6 exists that record will be returned.
  *
  * If fallback is specified and af is AF_INET6, and a record with AF_INET4 exists
- * that record will be returned inseted.
+ * that record will be returned inserted.
  *
  * @param[out] out Where to write result.
  * @param[in] af To search for in preference.
index 495308e1bd487d22f352a3c6b4217a9b4812a9d5..8bc22cce061d6fb8d2d880b2a58bbccb78ee7ec2 100644 (file)
@@ -54,7 +54,7 @@ fr_slen_t fr_concatv(fr_dbuff_t *out, struct iovec vector[], int iovcnt)
  *
  * @note Should only be used on nonblocking file descriptors.
  * @note Socket should likely be closed on timeout.
- * @note iovec may be modified in such a way that it's not re-usable.
+ * @note iovec may be modified in such a way that it's not reusable.
  * @note Leaves errno set to the last error that occurred.
  *
  * @param fd to write to.
index 7b34edde5b12d1e9d3deb454499afd6c655f6a87..bd8fcd446cc0672e44e5ae1173274360eaee6685 100644 (file)
@@ -290,7 +290,7 @@ static int state_post(fr_machine_t *m, int state)
  *
  * @param m    The state machine
  * @return
- *     - 0 for "no transition has occured"
+ *     - 0 for "no transition has occurred"
  *     - >0 for "we are in a new state".
  *     -<0 for "error, you should tear down the state machine".
  *
@@ -609,7 +609,7 @@ void fr_machine_resume(fr_machine_t *m)
  * @param m    The state machine
  * @param signal the signal to send to the state machne
  * @return
- *     - 0 for "no transition has occured"
+ *     - 0 for "no transition has occurred"
  *     - >0 for "we are in a new state".
  *     -<0 for "error, you should tear down the state machine".
  *
index f56ea059c937127167d0977a64d9a2d460702f68..3db078ae3c458c63d0471cb420a81162bd12b76e 100644 (file)
@@ -350,7 +350,7 @@ int fr_pair_reinit_from_da(fr_pair_list_t *list, fr_pair_t *vp, fr_dict_attr_t c
  * If attr and vendor match a dictionary entry then a VP with that #fr_dict_attr_t
  * will be returned.
  *
- * If attr or vendor are uknown will call dict_attruknown to create a dynamic
+ * If attr or vendor are unknown will call dict_attruknown to create a dynamic
  * #fr_dict_attr_t of #FR_TYPE_OCTETS.
  *
  * Which type of #fr_dict_attr_t the #fr_pair_t was created with can be determined by
@@ -634,7 +634,7 @@ static void *fr_pair_iter_next_by_da(fr_dlist_head_t *list, void *current, void
 
 /** Iterate over pairs which are decedents of the specified da
  *
- * @param[in] list     to itterate over.
+ * @param[in] list     to iterate over.
  * @param[in] current  The fr_pair_t cursor->current.  Will be advanced and checked to
  *                     see if it matches the specified fr_dict_attr_t.
  * @param[in] uctx     The fr_dict_attr_t to search for.
index 727853279e329eb1a4a368a3ec9017c16fe69a31..3f7a03fab3e0988d127df2c3c304ade0e06ae67f 100644 (file)
@@ -157,7 +157,7 @@ _INLINE size_t fr_pair_list_num_elements(fr_pair_list_t const *list)
  *
  * @param[in] list to get the head from
  *
- * @return the pointer to the dlist wihin the pair list.
+ * @return the pointer to the dlist within the pair list.
  */
 _INLINE fr_dlist_head_t *fr_pair_list_to_dlist(fr_pair_list_t const *list)
 {
index 6c1227beb5800d49413099c5a04ade12e3490b8a..975df397227f5c25a964b7c61bfe3e36224c592c 100644 (file)
@@ -699,7 +699,7 @@ void fr_pair_list_move_op(fr_pair_list_t *to, fr_pair_list_t *from, fr_token_t o
                        if (!found) goto do_add;
 
                        /*
-                        *      Delete *all* matching attribues.
+                        *      Delete *all* matching attributes.
                         */
                        fr_pair_delete_by_da(to, found->da);
                        goto do_add;
index bd900df5df0ee159a320e26a97d0f9bd70976f81..8fc138e3fc1e0fef8f73fc9d69fb974bb4197bef 100644 (file)
@@ -220,7 +220,7 @@ static void pair_list_init(TALLOC_CTX *ctx, fr_pair_t ***out, fr_dict_t const *d
                if ((i == 0) && (perc > 0) && (reps > 0)) {
                        fr_pair_t       *new_vp;
                        /*
-                        *  Copy the required number of attributes from the first itteration
+                        *  Copy the required number of attributes from the first iteration
                         *  to use for duplicating attributes to required percentage.
                         *  Duplicates are at the beginning of the source list
                         */
@@ -237,13 +237,13 @@ static void pair_list_init(TALLOC_CTX *ctx, fr_pair_t ***out, fr_dict_t const *d
 
                if (i == 0) {
                        /*
-                        *  On the first itteration, just move the test pairs to the final list
+                        *  On the first iteration, just move the test pairs to the final list
                         */
                        fr_pair_list_append(&full_list, &list);
                } else {
                        /*
-                        *  With subsequent itterations, replicate the duplicates from the first
-                        *  itteration to maintain the percentage of attribute repeats
+                        *  With subsequent iterations, replicate the duplicates from the first
+                        *  iteration to maintain the percentage of attribute repeats
                         */
                        vp = fr_pair_list_head(&dups);
                        fr_pair_sublist_copy(ctx, &full_list, &dups, vp, 0);
index c76b84b3aaf7f81825620f52d34b4d6901b7906f..f70fcaad1df8713792c0697ed860028f8168610a 100644 (file)
@@ -243,7 +243,7 @@ static void test_fr_pair_raw_from_pair(void)
        TEST_CASE("Validating PAIR_VERIFY()");
        PAIR_VERIFY(vp);
 
-       TEST_CASE("Converting regular 'vp' as unkown");
+       TEST_CASE("Converting regular 'vp' as unknown");
        TEST_CHECK(fr_pair_raw_from_pair(vp, &value, 1) == 0);
 
        TEST_CASE("Checking if a real 'raw' vp");
index ae9e3ce15d6ba1776bd5e4da19f773709ab3cc8d..ab87d440cabe0f6abbef9ccf38ac8d7ef1299ce1 100644 (file)
@@ -89,7 +89,7 @@ void fr_proto_da_stack_print(char const *file, int line, char const *func, fr_da
 
 /** Implements the default iterator to encode pairs belonging to a specific dictionary that are not internal
  *
- * @param[in] list     to itterate over.
+ * @param[in] list     to iterate over.
  * @param[in] current  The fr_pair_t cursor->current.  Will be advanced and checked to
  *                     see if it matches the specified fr_dict_t.
  * @param[in] uctx     The fr_dict_t to search for.
index 8581fb1d46f76db9e21d1dc64383dc15e35a5ca1..28f874dffcf617e3501ba1fb32d36ecd27dc602e 100644 (file)
@@ -119,7 +119,7 @@ struct fr_rb_tree_s {
 
 /** Initialises a red black tree
  *
- * This variant initates an #fr_rb_node_t on the heap.  This allows the data structure
+ * This variant initiates an #fr_rb_node_t on the heap.  This allows the data structure
  * to be inserted into multiple trees.
  *
  * @param[out] _tree           to initialise.
@@ -139,7 +139,7 @@ struct fr_rb_tree_s {
 /** Initialises a red black that verifies elements are of a specific talloc type
  *
  * This variant stores #fr_rb_node_t data inline with the data structure to avoid
- * initating #fr_rb_node_t on the heap.
+ * initiating #fr_rb_node_t on the heap.
  *
  * It is suitable for use where the data structure will only be inserted into a
  * fixed set of trees.
@@ -162,7 +162,7 @@ struct fr_rb_tree_s {
 /** Initialises a red black tree
  *
  * This variant stores #fr_rb_node_t data inline with the data structure to avoid
- * initating #fr_rb_node_t on the heap.
+ * initiating #fr_rb_node_t on the heap.
  *
  * It is suitable for use where the data structure will only be inserted into a
  * fixed set of trees.
index 133b56a4d104965f3ab84859f6e0c477732752be..cfbe5b8bdafc83784e982c3a90658ea4148ea245 100644 (file)
@@ -1124,7 +1124,7 @@ fr_slen_t fr_sbuff_out_bool(bool *out, fr_sbuff_t *in)
        return -1;
 }
 
-/** Used to define a number parsing functions for singed integers
+/** Used to define a number parsing functions for signed integers
  *
  * @param[in] _name    Function suffix.
  * @param[in] _type    Output type.
@@ -1192,7 +1192,7 @@ SBUFF_PARSE_INT_DEF(int32, int32_t, INT32_MIN, INT32_MAX, 11, 0)
 SBUFF_PARSE_INT_DEF(int64, int64_t, INT64_MIN, INT64_MAX, 20, 0)
 SBUFF_PARSE_INT_DEF(ssize, ssize_t, SSIZE_MIN, SSIZE_MAX, 20, 0)
 
-/** Used to define a number parsing functions for singed integers
+/** Used to define a number parsing functions for signed integers
  *
  * @param[in] _name    Function suffix.
  * @param[in] _type    Output type.
@@ -1785,7 +1785,7 @@ size_t fr_sbuff_adv_past_allowed(fr_sbuff_t *sbuff, size_t len, bool
                        *       normally stop at the "-".  However, we will still stop at "Framed-=User", as
                        *       "-=" may be a terminal sequence.
                        *
-                       *       There is no perfect solution here, other than to fix the input grammer so that
+                       *       There is no perfect solution here, other than to fix the input grammar so that
                        *       it has no ambiguity.  Since we can't do that, we choose to err on the side of
                        *       allowing the existing grammar, where it makes sense
                        */
@@ -2041,7 +2041,7 @@ char *fr_sbuff_adv_to_strcase(fr_sbuff_t *sbuff, size_t len, char const *needle,
  * @param[in] sbuff    to search for char in.
  * @param[in] c                char to search for.
  * @return
- *     - true and avance if the next character matches.
+ *     - true and advance if the next character matches.
  *     - false and don't advance if the next character doesn't match.
  */
 bool fr_sbuff_next_if_char(fr_sbuff_t *sbuff, char c)
@@ -2062,7 +2062,7 @@ bool fr_sbuff_next_if_char(fr_sbuff_t *sbuff, char c)
  * @param[in] sbuff    to search for char in.
  * @param[in] c                char to search for.
  * @return
- *     - true and avance unless the character matches.
+ *     - true and advance unless the character matches.
  *     - false and don't advance if the next character matches.
  */
 bool fr_sbuff_next_unless_char(fr_sbuff_t *sbuff, char c)
index c0c74b38949aed2c4bd7f18298ca982a5b6d9ed0..5a2a09e2a7e50ef804a080c15cc1597f4ff860a0 100644 (file)
@@ -578,7 +578,7 @@ size_t      fr_sbuff_shift(fr_sbuff_t *sbuff, size_t shift);
 
 size_t fr_sbuff_extend_file(fr_sbuff_t *sbuff, size_t extension);
 
-size_t fr_sbuff_extend_talloc(fr_sbuff_t *sbuff, size_t extenison);
+size_t fr_sbuff_extend_talloc(fr_sbuff_t *sbuff, size_t extension);
 
 int    fr_sbuff_trim_talloc(fr_sbuff_t *sbuff, size_t len);
 
index 40cd218175682edc471ed35de9f3497a57471fc1..4a8bad998c26e05025db3a1ed4cce6dbd596f7d6 100644 (file)
@@ -528,7 +528,7 @@ static void test_unescape_until(void)
        /*
         *      Escapes and substitution
         */
-       TEST_CASE("Escape with substition to same char");
+       TEST_CASE("Escape with substitution to same char");
        fr_sbuff_init_in(&sbuff, in_escapes, sizeof(in_escapes) - 1);
        slen = fr_sbuff_out_unescape_until(&FR_SBUFF_OUT(escape_out, sizeof(escape_out)), &sbuff, SIZE_MAX,
                                           &FR_SBUFF_TERM("g"), &pipe_rules);
@@ -536,7 +536,7 @@ static void test_unescape_until(void)
        TEST_CHECK_STRCMP(escape_out, "i am a |t|est string");
        TEST_CHECK_STRCMP(sbuff.p, "");
 
-       TEST_CASE("Escape with substition to different char");
+       TEST_CASE("Escape with substitution to different char");
        fr_sbuff_init_in(&sbuff, in_escapes, sizeof(in_escapes) - 1);
        slen = fr_sbuff_out_unescape_until(&FR_SBUFF_OUT(escape_out, sizeof(escape_out)), &sbuff, SIZE_MAX,
                                           &FR_SBUFF_TERM("g"), &pipe_rules_sub);
@@ -1324,7 +1324,7 @@ static void test_adv_to_utf8(void)
        p = fr_sbuff_adv_to_chr_utf8(&sbuff, SIZE_MAX, "🍆 ");
        TEST_CHECK(p == NULL);
 
-       TEST_CASE("Check for token at the end of the string within len contraints");
+       TEST_CASE("Check for token at the end of the string within len constraints");
        fr_sbuff_init_in(&sbuff, in, sizeof(in) - 1);
        p = fr_sbuff_adv_to_chr_utf8(&sbuff, (sizeof("🥺🥺🥺🥺🍪😀") - 1), "😀");
        TEST_CHECK(p == sbuff.start + (sizeof("🥺🥺🥺🥺🍪") - 1));
index 27deeda4b9936e114838712d4b9c588c8284954f..218b339cfbcec097eb96ba8df4b9f5756f794283 100644 (file)
@@ -399,7 +399,7 @@ static bool sem_check_gid(char const *file, int proj_id,
 
 /** Returns a semid for the semaphore associated with the file
  *
- * @param[in] file             to get or create sempahore from.
+ * @param[in] file             to get or create semaphore from.
  * @param[in] proj_id          if 0 will default to '0xf4ee4a31'.
  * @param[in] uid              that should own the semaphore.
  * @param[in] gid              that should own the semaphore.
index 5cf48f8199ebea1319b2ae45b5762bd01932ca57..967de760e4aadab61e830b1a0f3d0929703b46a6 100644 (file)
@@ -15,7 +15,7 @@
  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-/** Resouce pool management using slabs of memory
+/** Resource pool management using slabs of memory
  *
  * @file src/lib/util/slab.h
  *
index 69be54714bba79cf370af91a1f533530b381caf4..b8edb989854c31114980370efe1c924072507b05 100644 (file)
@@ -208,7 +208,7 @@ static void test_reuse_reset(void)
 
        /*
         *      Releasing the first element should reset the destructor
-        *      so releasing this re-use of it will not update the result
+        *      so releasing this reuse of it will not update the result
         *      of the initial release.
         */
        if (test_elements[4]) test_elements[4]->name = talloc_strdup(test_elements[4], "Different length string");
@@ -259,7 +259,7 @@ static void test_reuse_noreset(void)
        if (test_elements[0] && test_elements[2]) TEST_CHECK(test_elements[2]->name == test_elements[0]->name);
 
        /*
-        *      Replace the element's string so that the callback on relase has
+        *      Replace the element's string so that the callback on release has
         *      a different string to work on.
         */
        if (test_elements[2]) talloc_free(test_elements[2]->name);
index 05d4e09d39460e996eba4fdc0a3219073a51fc8a..3a2dff05c53f9800f37d39e8f34ec9f188535b16 100644 (file)
@@ -39,7 +39,7 @@
  *      1.0:
  *             *       supporting must ANSI syntaxic_sugars
  *      0.0:
- *             *       suppot %s %c %d
+ *             *       support %s %c %d
  *
  * THANKS(for the patches and ideas):
  *              Miles Bader
@@ -160,7 +160,7 @@ double * ip;
 /*
  * return an ascii representation of the integral part of the number
  * and set fract to be an ascii representation of the fraction part
- * the container for the fraction and the integral part or staticly
+ * the container for the fraction and the integral part or statically
  * declare with fix size
  */
 PRIVATE char *
@@ -339,7 +339,7 @@ char *tmp;
                i = (i < p->precision ? i : p->precision);
        p->width -= i;
        PAD_RIGHT(p);
-       while (i-- > 0) { /* put the sting */
+       while (i-- > 0) { /* put the string */
                PUT_CHAR(*tmp, p);
                tmp++;
        }
index 314410eea7c04a41f5ba5894ab8ca2a35d08f4ea..dd999be5d429b01edf95ccba99036b573374eda0 100644 (file)
@@ -505,7 +505,7 @@ fr_slen_t fr_time_delta_to_str(fr_sbuff_t *out, fr_time_delta_t delta, fr_time_r
 
        /*
         *      If there's nothing after the decimal point,
-        *      trunctate the decimal point.  i.e. Don't print
+        *      truncate the decimal point.  i.e. Don't print
         *      "5."
         */
        if (*q == '.') {
index 22766ce3f74ee0f24562fb5af4d6152a92340aab..80d48c172e2330c19e8b9d2dea81e0e9ac29f19b 100644 (file)
@@ -521,7 +521,7 @@ static inline int64_t fr_unix_time_to_day(fr_unix_time_t delta)
        return (fr_unix_time_unwrap(delta) / NSEC) / 386400;
 }
 
-/** Covert a time_t into out internal fr_unix_time_t
+/** Convert a time_t into out internal fr_unix_time_t
  *
  * Our internal unix time representation is unsigned and in nanoseconds which
  * is different from time_t which is signed and has seconds resolution.
index 34c20ce1b4a26135e8fd9505d2dc913668982ced..237c42ab6edc7280b38a8a0214250d17802925d5 100644 (file)
@@ -558,7 +558,7 @@ static fr_trie_node_t *trie_node_alloc(TALLOC_CTX *ctx, int bits)
 /** Free a fr_trie_t
  *
  *  We can't use talloc_free(), because we can't talloc_parent the
- *  nodes frome each other, as talloc_steal() is O(N).  So, we just
+ *  nodes from each other, as talloc_steal() is O(N).  So, we just
  *  recurse manually.
  */
 static void trie_free(fr_trie_t *trie)
@@ -824,7 +824,7 @@ static CC_HINT(nonnull(2)) fr_trie_node_t *trie_node_split(TALLOC_CTX *ctx, fr_t
 
        /*
         *      Note that we do NOT free "node".  The caller still
-        *      needs it for some activies.
+        *      needs it for some activities.
         */
        return split;
 }
index eb6a36106b245519d244a91e246835da1569eb22..dfbc6bc09505a85f86a34f35053f8106301f9a9f 100644 (file)
@@ -29,7 +29,7 @@
  *
  * - NETWORK format is the format we send/receive on the wire.  It is not a perfect representation
  *   of data packing for all protocols, so you will likely need to overload conversion for some types.
- *   - fr_value_box_to_network is used to covert INTERNAL format data to generic NETWORK format data.
+ *   - fr_value_box_to_network is used to convert INTERNAL format data to generic NETWORK format data.
  *     For uint32s, IP addresses etc... This means BIG ENDIAN uint8 ordering.
  *   - fr_value_box_from_network is used to convert packet buffer fragments in NETWORK format to
  *     INTERNAL format.
@@ -503,7 +503,7 @@ fr_sbuff_parse_rules_t const value_parse_rules_backtick_unquoted = {
  * data from external data sources like SQL databases and REST APIs.
  *
  * They do not include terminals to stop parsing as it assumes the values
- * are discreet, and not wrapped in quotes.
+ * are discrete, and not wrapped in quotes.
  */
 fr_sbuff_parse_rules_t const *value_parse_rules_unquoted[T_TOKEN_LAST] = {
        [T_BARE_WORD]                   = &value_parse_rules_bareword_unquoted,
@@ -1341,7 +1341,7 @@ size_t fr_value_box_network_length(fr_value_box_t const *value)
  *
  * #FR_TYPE_SIZE is not encodable, as it is system specific.
  *
- * This function will not encode stuctural types (TLVs, VSAs etc...).  These are usually
+ * This function will not encode structural types (TLVs, VSAs etc...).  These are usually
  * specific to the protocol anyway.
  *
  *  All of the dictionary rules are respected.  string/octets can have
@@ -3475,7 +3475,7 @@ int fr_value_box_cast_in_place(TALLOC_CTX *ctx, fr_value_box_t *vb,
 {
        fr_value_box_t tmp;
        /*
-        *      Store list poiters to restore later - fr_value_box_cast clears them
+        *      Store list pointers to restore later - fr_value_box_cast clears them
         */
        fr_value_box_entry_t entry = vb->entry;
 
@@ -4564,7 +4564,7 @@ void fr_value_box_increment(fr_value_box_t *vb)
  * @param[in] tainted          Whether the value came from a trusted source.
  * @return
  *     - >= 0 on success (number of bytes parsed).
- *     - < 0 on error (where the parse error ocurred).
+ *     - < 0 on error (where the parse error occurred).
  */
 static inline CC_HINT(always_inline)
 fr_slen_t fr_value_box_from_numeric_substr(fr_value_box_t *dst, fr_type_t dst_type,
@@ -5523,7 +5523,7 @@ ssize_t fr_value_box_list_concat_as_string(bool *tainted, bool *secret, fr_sbuff
 
        /*
         *      Free the boxes last so if there's
-        *      an issue concating them, everything
+        *      an issue concatenating them, everything
         *      is still in a known state.
         */
        fr_value_box_list_foreach_safe(list, vb) {
@@ -5625,7 +5625,7 @@ ssize_t fr_value_box_list_concat_as_octets(bool *tainted, bool *secret, fr_dbuff
 
        /*
         *      Free the boxes last so if there's
-        *      an issue concating them, everything
+        *      an issue concatenating them, everything
         *      is still in a known state.
         */
        fr_value_box_list_foreach_safe(list, vb) {
index 012dbe0d5bba78359d4dbfd275c189bd2eeea525..46f2680010ddeba1ef35e91d1e85ef301ee6dbb7 100644 (file)
@@ -153,7 +153,7 @@ typedef union {
  *
  * fr_type_t should be an enumeration of the values in this union.
  *
- * Don't change the order of the fields below without checing that the output of radsize doesn't change.
+ * Don't change the order of the fields below without checking that the output of radsize doesn't change.
  */
 struct value_box_s {
        /** Type and flags should appear together for packing efficiency
@@ -571,7 +571,7 @@ void _fr_value_box_init(NDEBUG_LOCATION_ARGS fr_value_box_t *vb, fr_type_t type,
 
 /** Initialise an empty/null box that will be filled later
  *
- * @param[in] _vb      to initalise.
+ * @param[in] _vb      to initialise.
  */
 #define fr_value_box_init_null(_vb) _fr_value_box_init(NDEBUG_LOCATION_EXP _vb, FR_TYPE_NULL, NULL, false)
 
@@ -910,7 +910,7 @@ DEF_UNBOXING_FUNC(double, float64, FR_TYPE_FLOAT64)
 
 DEF_UNBOXING_FUNC(fr_unix_time_t, date, FR_TYPE_DATE)
 
-/** Unbox simple types peforming type checks
+/** Unbox simple types performing type checks
  *
  * @param[out] _var    to write to.
  * @param[in] _box     to unbox.
index 80ddbffa1f8d582d3f9f4c3549a916560284cf89..a90d90db4c750a0c463c1808702b531cc6895065 100644 (file)
@@ -26,7 +26,7 @@
 #include "proto_bfd.h"
 
 typedef struct {
-       fr_client_t                     client;                 //!< might as well re-use this, others need it
+       fr_client_t                     client;                 //!< might as well reuse this, others need it
 
        uint16_t                        port;                   //!< peer port where packets are sent to
 
index 8866fdd1fc2ee2fc61b54074c9c54b9c4160707c..5e6dc7d741570df9432e6e477dbc72b22ca2cdbf 100644 (file)
@@ -189,7 +189,7 @@ static ssize_t mod_encode(UNUSED void const *instance, request_t *request, uint8
  *
  * @param[in] instance Ctx data for this application.
  * @param[in] sc       to add our file descriptor to.
- * @param[in] conf     Listen section parsed to give us isntance.
+ * @param[in] conf     Listen section parsed to give us instance.
  * @return
  *     - 0 on success.
  *     - -1 on failure.
index 5458c10a23dea3afc17168ed9e6370a908ab98de..35600925791b9762b8468c22bf7c595ec1afebd0 100644 (file)
@@ -267,7 +267,7 @@ static int mod_decode(void const *instance, request_t *request, uint8_t *const d
                MPRINT("LINE   :%s", p);
 
                /*
-                *      Skip this for backwards compatability.
+                *      Skip this for backwards compatibility.
                 */
                if (strncasecmp((char const *) p, "Request-Authenticator", 21) == 0) goto next;
 
@@ -401,7 +401,7 @@ static int mod_priority_set(void const *instance, UNUSED uint8_t const *buffer,
  *
  * @param[in] instance Ctx data for this application.
  * @param[in] sc       to add our file descriptor to.
- * @param[in] conf     Listen section parsed to give us isntance.
+ * @param[in] conf     Listen section parsed to give us instance.
  * @return
  *     - 0 on success.
  *     - -1 on failure.
index cdfa2a77ff941aa2aed77f05b9aefc7bb3e98b6f..435a3cce74d4efe0be96da1677bc138008875f8f 100644 (file)
@@ -466,7 +466,7 @@ static void mod_vnode_delete(fr_event_list_t *el, int fd, UNUSED int fflags, voi
 /** Start processing a new work file
  *
  * @param[in] thread                   the thread instance.
- * @param[in] triggered_by_delete      true if this was trigged by a vnode_delete.
+ * @param[in] triggered_by_delete      true if this was triggered by a vnode_delete.
  *                                     When a new file is moved over a workfile
  *                                     vnode delete can serve as an indication
  *                                     that new data is available.
index 513a624c5a1d5463c92c58483e739e027d012727..a453e17452cb0c20dc708540771dad1da2d1f3c5 100644 (file)
@@ -370,7 +370,7 @@ static int mod_priority_set(void const *instance, uint8_t const *buffer, size_t
  *
  * @param[in] instance Ctx data for this application.
  * @param[in] sc       to add our file descriptor to.
- * @param[in] conf     Listen section parsed to give us isntance.
+ * @param[in] conf     Listen section parsed to give us instance.
  * @return
  *     - 0 on success.
  *     - -1 on failure.
index 57e2ae00f197e018655f2f61f3f905191d516936..479a4da5c2b7c9819b91ee22003815cb64a2e14a 100644 (file)
@@ -369,7 +369,7 @@ static int mod_priority_set(void const *instance, uint8_t const *buffer, UNUSED
  *
  * @param[in] instance Ctx data for this application.
  * @param[in] sc       to add our file descriptor to.
- * @param[in] conf     Listen section parsed to give us isntance.
+ * @param[in] conf     Listen section parsed to give us instance.
  * @return
  *     - 0 on success.
  *     - -1 on failure.
index d6ff1d624d6fd8296e0539b41c21c1e221dccbe9..ee84c30c1495387c5b5b1726057b298d4f5b1100 100644 (file)
@@ -318,7 +318,7 @@ static int mod_priority_set(void const *instance, uint8_t const *buffer, size_t
  *
  * @param[in] instance Ctx data for this application.
  * @param[in] sc       to add our file descriptor to.
- * @param[in] conf     Listen section parsed to give us isntance.
+ * @param[in] conf     Listen section parsed to give us instance.
  * @return
  *     - 0 on success.
  *     - -1 on failure.
index d5429b914c92ed84fc87b35c6cc9ea768fa5f916..27e7163fda6e3264aebb51558120279ee430f2ee 100644 (file)
@@ -19,7 +19,7 @@
  * $Id$
  *
  * @file persistent_search.h
- * @brief Callback routines for direcories implementing persistent search
+ * @brief Callback routines for directories implementing persistent search
  *
  * @copyright 2022 Network RADIUS SAS (legal@networkradius.com)
  */
index ca79e72539d2b7e77d48b31fee9afc000e982d19..809c26d3763dfe3663acef7a8349accc4b1cb7c8 100644 (file)
@@ -301,13 +301,13 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
         */
        if (inst->app_io->common.instantiate &&
            (inst->app_io->common.instantiate(MODULE_INST_CTX(inst->io_submodule)) < 0)) {
-               cf_log_err(conf, "Instantation failed for \"%s\"", inst->app_io->common.name);
+               cf_log_err(conf, "Instantiation failed for \"%s\"", inst->app_io->common.name);
                return -1;
        }
 
        /*
         *      These configuration items are not printed by default,
-        *      because normal people shouln't be touching them.
+        *      because normal people shouldn't be touching them.
         */
        if (!inst->max_packet_size) inst->max_packet_size = inst->app_io->default_message_size;
        if (!inst->num_messages) inst->num_messages = 2;
index be078563f21f2db21259e1028ae1b3833d8d5f4a..6d66048d40bdba39dca39c8428114885711be0e2 100644 (file)
@@ -272,7 +272,7 @@ finish:
        (void) fr_event_timer_in(sync, el, &sync->cookie_ev, sync->inst->cookie_interval, ldap_sync_cookie_event, sync);
 }
 
-/** Enque a new cookie store packet
+/** Enqueue a new cookie store packet
  *
  * Create a new internal packet containing the cookie we received from the LDAP server.
  * This allows the administrator to store the cookie and provide it on a future call to
@@ -599,7 +599,7 @@ static int proto_ldap_child_mod_close(fr_listen_t *li)
  *
  *   - Sync Info Message with syncInfoValue of syncIdSet can reference
  *     multiple directory entries.
- *   - Various sync related messages can inculde a new cookie in
+ *   - Various sync related messages can include a new cookie in
  *     addition to their other data.
  */
 static ssize_t proto_ldap_child_mod_read(fr_listen_t *li, UNUSED void **packet_ctx, UNUSED fr_time_t *recv_time_p, UNUSED uint8_t *buffer,
index 222be93ab9b18229057cd70c1327e1ba1aaa3fd1..10bbecb8e55fa60b5808df8c2df03ffd51013bdb 100644 (file)
@@ -19,7 +19,7 @@
  * $Id$
  *
  * @file rfc4533.h
- * @brief Callback routines for direcories implementing RFC 4533
+ * @brief Callback routines for directories implementing RFC 4533
  *
  * @copyright 2022 Network RADIUS SAS (legal@networkradius.com)
  */
index 513ffb2c5c0ec56129c534a1085191af8b162ee7..ee7416e0acf0c1eab2efe21f5bc518707698d19d 100644 (file)
@@ -189,7 +189,7 @@ static ssize_t mod_encode(UNUSED void const *instance, request_t *request, uint8
  *
  * @param[in] instance Ctx data for this application.
  * @param[in] sc       to add our file descriptor to.
- * @param[in] conf     Listen section parsed to give us isntance.
+ * @param[in] conf     Listen section parsed to give us instance.
  * @return
  *     - 0 on success.
  *     - -1 on failure.
index 786df6d19583c6f23f90fd1a64da4228a2f37aa6..e228824f53267374356add8956cbcf236fc62741 100644 (file)
@@ -370,7 +370,7 @@ static int mod_track_compare(void const *instance, UNUSED void *thread_instance,
        if (ret != 0) return ret;
 
        /*
-        *      Then ordered by code, which is usally the same.
+        *      Then ordered by code, which is usually the same.
         */
        return (a[0] < b[0]) - (a[0] > b[0]);
 }
index 7dd1f48da041e76279f05fdd3813a73a1743250d..662137761d9a28addec66749edcfd2db9d085e95 100644 (file)
@@ -338,7 +338,7 @@ static int mod_priority_set(void const *instance, uint8_t const *buffer, UNUSED
  *
  * @param[in] instance Ctx data for this application.
  * @param[in] sc       to add our file descriptor to.
- * @param[in] conf     Listen section parsed to give us isntance.
+ * @param[in] conf     Listen section parsed to give us instance.
  * @return
  *     - 0 on success.
  *     - -1 on failure.
index 64a8b37068772b1946bbc37fdd5c2d8603994269..b4c571600f45e2e995193f01e4f79239f2d53c94 100644 (file)
@@ -383,7 +383,7 @@ static int mod_track_compare(UNUSED void const *instance, UNUSED void *thread_in
        if (ret != 0) return ret;
 
        /*
-        *      Then ordered by opcode, which is usally the same.
+        *      Then ordered by opcode, which is usually the same.
         */
        return (a->opcode < b->opcode) - (a->opcode > b->opcode);
 }
index 4ca7ac216f8876e5c24e1ec23c25e97b3b6bb0d0..d9ced711172d5a2a457c858b677a76078d5de80b 100644 (file)
@@ -173,7 +173,7 @@ typedef cache_status_t      (*cache_entry_expire_t)(rlm_cache_config_t const *config,
                                                request_t *request, void *handle,
                                                fr_value_box_t const *key);
 
-/** Update the ttl of an entry in the cace
+/** Update the ttl of an entry in the cache
  *
  * @note This callback optional. If it's not specified the cache code will expire and
  *      recreate the entry with a new TTL.
index 6532a66ab462ff8360d80ad6bb2fb37c25383375..d44713598a64e33653170c422bfb31c24e20c55e 100644 (file)
@@ -239,7 +239,7 @@ static const conf_parser_t module_config[] = {
        CONF_PARSER_TERMINATOR
 };
 
-/** Calls EVP_get_digestbyname() to covert the digest type
+/** Calls EVP_get_digestbyname() to convert the digest type
  *
  * @param[in] ctx      to allocate data in.
  * @param[out] out     EVP_MD representing the OpenSSL digest type.
index 801c3652c881d7ded5370c3244d4ef316c60a2ba..f8ce8bc28a738ff71498ad83a8bed032c5d8118d 100644 (file)
@@ -254,7 +254,7 @@ lcb_error_t couchbase_init_connection(lcb_t *instance, const char *host, const c
 lcb_error_t couchbase_server_stats(lcb_t instance, const void *cookie)
 {
        lcb_error_t error;                         /* couchbase command return */
-       lcb_server_stats_cmd_t cmd;                /* server stats command stuct */
+       lcb_server_stats_cmd_t cmd;                /* server stats command struct */
        const lcb_server_stats_cmd_t *commands[1]; /* server stats commands array */
 
        /* init commands */
@@ -288,7 +288,7 @@ lcb_error_t couchbase_server_stats(lcb_t instance, const void *cookie)
 lcb_error_t couchbase_set_key(lcb_t instance, const char *key, const char *document, int expire)
 {
        lcb_error_t error;                  /* couchbase command return */
-       lcb_store_cmd_t cmd;                /* store command stuct */
+       lcb_store_cmd_t cmd;                /* store command struct */
        const lcb_store_cmd_t *commands[1]; /* store commands array */
 
        /* init commands */
index 305f67225b477086608469adddf9ce6b1bb82e13..35f236aab2b414ba45eca78ecf0cf48db8c27768 100644 (file)
@@ -17,7 +17,7 @@
 /**
  * $Id$
  *
- * @brief Utillity functions used in the module.
+ * @brief Utility functions used in the module.
  * @file mod.c
  *
  * @author Aaron Hurt (ahurt@anbcs.com)
@@ -195,7 +195,7 @@ void *mod_conn_create(TALLOC_CTX *ctx, void *instance, fr_time_delta_t timeout)
 
 /** Check the health of a connection handle
  *
- * Attempt to determing the state of the Couchbase connection by requesting
+ * Attempt to determine the state of the Couchbase connection by requesting
  * a cluster statistics report.  Mark the connection as failed if the request
  * returns anything other than success.
  *
@@ -238,7 +238,7 @@ int mod_build_attribute_element_map(CONF_SECTION *conf, rlm_couchbase_t *inst)
 {
        CONF_SECTION *cs;                   /* module config list */
        CONF_ITEM *ci;                      /* config item */
-       CONF_PAIR *cp;                      /* conig pair */
+       CONF_PAIR *cp;                      /* config pair */
        const char *attribute, *element;    /* attribute and element names */
 
        /* find update list */
@@ -854,7 +854,7 @@ int mod_load_client_documents(rlm_couchbase_t *inst, CONF_SECTION *tmpl, CONF_SE
                                cf_section_alloc(NULL, NULL, "client", vkey);
 
                if (client_map_section(client, map, _get_client_value, cookie->jobj) < 0) {
-                       /* free config setion */
+                       /* free config section */
                        talloc_free(client);
                        /* set return */
                        retval = -1;
@@ -868,7 +868,7 @@ int mod_load_client_documents(rlm_couchbase_t *inst, CONF_SECTION *tmpl, CONF_SE
                c = client_afrom_cs(NULL, client, false, 0);
                if (!c) {
                        ERROR("failed to allocate client");
-                       /* free config setion */
+                       /* free config section */
                        talloc_free(client);
                        /* set return */
                        retval = -1;
index 6d15f94f0efde9ac3fd337f9b5d64eec93502d97..e2008e764a8d28c48a3944d7a4604149d02856e9 100644 (file)
@@ -87,7 +87,7 @@ fr_dict_attr_autoload_t rlm_couchbase_dict_attr[] = {
 
 /** Handle authorization requests using Couchbase document data
  *
- * Attempt to fetch the document assocaited with the requested user by
+ * Attempt to fetch the document associated with the requested user by
  * using the deterministic key defined in the configuration.  When a valid
  * document is found it will be parsed and the containing value pairs will be
  * injected into the request.
@@ -434,7 +434,7 @@ static int mod_detach(module_detach_ctx_t const *mctx)
 
 /** Initialize the rlm_couchbase module
  *
- * Intialize the module and create the initial Couchbase connection pool.
+ * Initialize the module and create the initial Couchbase connection pool.
  *
  * @param  mctx     The module instance.
  * @return
index f4b8929899809137161eabf20e0ed2ba127c124a..2dc964bc8a65e798f097d54b1cab84461cb56ca0 100644 (file)
@@ -691,7 +691,7 @@ static int mod_bootstrap(module_inst_ctx_t const *mctx)
                 *      map to which entries.
                 *
                 *      Some fields are unused, so there isn't a 1-1
-                *      mapping betweeen CSV file fields, and fields
+                *      mapping between CSV file fields, and fields
                 *      in the map.
                 */
                if (last_field && (*p == ',') && (strcmp(p + 1, inst->index_field_name) == 0)) {
index 1b3012333f34d67c90ceb87c107c882b066e895a..5931794bda1d8cab17d129694f6ebc3e346e1c23 100644 (file)
@@ -788,7 +788,7 @@ static fr_radius_packet_code_t eap_fast_crypto_binding(request_t *request, UNUSE
 
        fr_hmac_sha1(binding->compound_mac, (uint8_t *)binding, sizeof(*binding), t->cmk, EAP_FAST_CMK_LEN);
        if (memcmp(binding->compound_mac, cmac, sizeof(cmac))) {
-               RDEBUG2("Crypto-Binding TLV mis-match");
+               RDEBUG2("Crypto-Binding TLV mismatch");
                RHEXDUMP3((uint8_t const *) binding->compound_mac,
                 sizeof(binding->compound_mac), "Calculated Compound MAC");
                return FR_RADIUS_CODE_ACCESS_REJECT;
index 6e924ab994831c0d25125ff1bd4d60ee8c70074a..d982f07c1c806e71157d8cfd48d54d8b316fbd93 100644 (file)
@@ -163,7 +163,7 @@ static unlang_action_t mod_handshake_resume(rlm_rcode_t *p_result, module_ctx_t
        case EAP_TLS_RECORD_RECV_COMPLETE:
                 /*
                  *     TLSv1.3 makes application data immediately
-                 *     avaliable when the handshake is finished.
+                 *     available when the handshake is finished.
                  */
                if (SSL_is_init_finished(tls_session->ssl) && (peap->status == PEAP_STATUS_INVALID)) {
                        peap->status = PEAP_STATUS_TUNNEL_ESTABLISHED;
index 4fe322cf63bfab4aebed48ee367a758cd0c43fac..1707ab5ae560ae86e0d31cad937ea17b5c121737 100644 (file)
@@ -464,7 +464,7 @@ int compute_password_element (request_t *request, pwd_session_t *session, uint16
        }
 
        /*
-       * now we can savely construct PWE
+       * now we can safely construct PWE
        */
        BN_bin2bn(xbuf, primebytelen, x_candidate);
        do_equation(session->group, y_sqrd, x_candidate, bnctx);
index 51a41e185fd62183e954dd739759043d3446418e..1586c6e2229763b22d24fc8cc9b64da43f517e03 100644 (file)
@@ -145,7 +145,7 @@ static unlang_action_t mod_handshake_resume(rlm_rcode_t *p_result, module_ctx_t
         *      Anything else: fail.
         *
         *      Also, remove the session from the cache so that
-        *      the client can't re-use it.
+        *      the client can't reuse it.
         */
        default:
                fr_tls_cache_deny(request, tls_session);
index c737274f2cbfdd4db9862adad55a0ee80ebc9fdc..257c5c01d6d5667cb86782297e8860b646a27334 100644 (file)
@@ -71,7 +71,7 @@ static const conf_parser_t mod_config[] = {
         *      ...and if we want raw punycode or to tweak Bootstring parameters,
         *      we can do similar things.  All defaults should result in IDNA
         *      ToASCII with the use_std3_ascii_rules flag set, allow_unassigned unset,
-        *      because that is the forseeable use case.
+        *      because that is the foreseeable use case.
         *
         *      Note that doing anything much different will require choosing the
         *      appropriate libidn API functions, as we currently call the IDNA
index c9c470cd4739dca7ee23a28e75e912d275207449..159b5137747816d1bc8f4cc2273517921fd06ffa 100644 (file)
@@ -58,7 +58,7 @@ typedef struct {
        char const                      *uri;           //!< URI of imap server
        fr_time_delta_t                 timeout;        //!< Timeout for connection and server response
        fr_curl_tls_t                   tls;
-       fr_curl_conn_config_t           conn_config;    //!< Re-usable CURL handle config
+       fr_curl_conn_config_t           conn_config;    //!< Reusable CURL handle config
 } rlm_imap_t;
 
 FR_SLAB_TYPES(imap, fr_curl_io_request_t)
@@ -146,7 +146,7 @@ static unlang_action_t CC_HINT(nonnull) mod_authenticate_resume(rlm_rcode_t *p_r
  *             timeout information
  *             and TLS information
  *
- *     Then it queues the request and yeilds until a response is given
+ *     Then it queues the request and yields until a response is given
  *     When it responds, mod_authenticate_resume is called.
  */
 static unlang_action_t CC_HINT(nonnull(1,2)) mod_authenticate(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
index 654621b6c0a2109eeda75876990752b298e6c75a..a4c1b2f978de7e23354e90a25bcf0c3a2bcd9c9e 100644 (file)
@@ -1560,7 +1560,7 @@ static int parse_subnet(rlm_isc_dhcp_tokenizer_t *state, rlm_isc_dhcp_info_t *in
                rlm_isc_dhcp_info_t *old;
 
                /*
-                *      Duplicate or overlapping "subnet" entries aren't allowd.
+                *      Duplicate or overlapping "subnet" entries aren't allowed.
                 */
                old = fr_trie_lookup_by_key(parent->subnets, &(info->argv[0]->vb_ipv4addr), bits);
                if (old) {
index 44a4b25a3ecc8c8337698da2d320eaeb1d910481..1afbe48c48e2365f7a5a31a5a1d32f21fe94d250 100644 (file)
@@ -1326,7 +1326,7 @@ static unlang_action_t mod_authenticate_resume(rlm_rcode_t *p_result, UNUSED int
 #ifdef WITH_SASL
                ldap_auth_call_env_t *call_env = auth_ctx->call_env;
 
-               RDEBUG2("Login attept using identity \"%pV\"", &call_env->user_sasl_authname);
+               RDEBUG2("Login attempt using identity \"%pV\"", &call_env->user_sasl_authname);
 
                return fr_ldap_sasl_bind_auth_async(request, auth_ctx->thread, call_env->user_sasl_mech.vb_strvalue,
                                                 call_env->user_sasl_authname.vb_strvalue,
@@ -1394,7 +1394,7 @@ static unlang_action_t CC_HINT(nonnull) mod_authenticate(rlm_rcode_t *p_result,
        };
 
        /*
-        *      Check for a cahed copy of the DN
+        *      Check for a cached copy of the DN
         */
        auth_ctx->dn = rlm_find_user_dn_cached(request);
 
@@ -1425,15 +1425,15 @@ static unlang_action_t mod_authorize_start(UNUSED rlm_rcode_t *p_result, UNUSED
 
 /** Resume function called after each potential yield in LDAP authorization
  *
- * Some operations may or may not yeild.  E.g. if group membership is
+ * Some operations may or may not yield.  E.g. if group membership is
  * read from an attribute returned with the user object and is already
- * in the correct form, that will not yeild.
+ * in the correct form, that will not yield.
  * Hence, each state may fall through to the next.
  *
  * @param p_result     Result of current authorization.
  * @param priority     Unused.
  * @param request      Current request.
- * @param uctx         Current authrorization context.
+ * @param uctx         Current authorization context.
  * @return One of the RLM_MODULE_* values.
  */
 static unlang_action_t mod_authorize_resume(rlm_rcode_t *p_result, UNUSED int *priority, request_t *request, void *uctx)
@@ -1531,7 +1531,7 @@ static unlang_action_t mod_authorize_resume(rlm_rcode_t *p_result, UNUSED int *p
                        autz_ctx->dn = rlm_find_user_dn_cached(request);
 
                        /*
-                        *      Retrive universal password
+                        *      Retrieve universal password
                         */
                        REPEAT_MOD_AUTHORIZE_RESUME;
                        autz_ctx->status = LDAP_AUTZ_EDIR_BIND;
@@ -1848,7 +1848,7 @@ static unlang_action_t user_modify_resume(rlm_rcode_t *p_result, UNUSED int *pri
 
 /** Modify user's object in LDAP
  *
- * Process a modifcation map to update a user object in the LDAP directory.
+ * Process a modification map to update a user object in the LDAP directory.
  *
  * @param[out] p_result                the result of the modification.
  * @param[in] inst             rlm_ldap instance.
index 5e88ae7cdd94f8ec739dff232e0e87a734b4c73c..1f401d6ad1b69af9269282d06080728c43107abb 100644 (file)
@@ -902,7 +902,7 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
 
        case LINELOG_DST_UNIX:
 #ifndef HAVE_SYS_UN_H
-               cf_log_err(conf, "Unix sockets are not supported on this sytem");
+               cf_log_err(conf, "Unix sockets are not supported on this system");
                return -1;
 #else
                inst->pool = module_rlm_connection_pool_init(cf_section_find(conf, "unix", NULL),
index a4d92465afd973fcaec109aa477a4a326d56ac56..4bc77456d8134dac18190492adc90e4e58f52269 100644 (file)
@@ -500,7 +500,7 @@ static void logtee_it(fr_log_type_t type, fr_log_lvl_t lvl, request_t *request,
 
 finish:
        /*
-        *      Don't free, we re-use the fr_pair_ts for the next message
+        *      Don't free, we reuse the fr_pair_ts for the next message
         */
        vp = fr_dcursor_remove(&cursor);
        if (!fr_cond_assert(vp == t->lvl)) fr_dcursor_append(&cursor, vp);
@@ -630,7 +630,7 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
 
        case LOGTEE_DST_UNIX:
 #ifndef HAVE_SYS_UN_H
-               cf_log_err(conf, "Unix sockets are not supported on this sytem");
+               cf_log_err(conf, "Unix sockets are not supported on this system");
                return -1;
 #endif
 
index 3a89e86d32c418b8358b7fbaa6090022c256b9f2..3c1836796f7d276064ab2024b9eaa9570e9b5be2 100644 (file)
@@ -61,7 +61,7 @@ typedef enum {
 
 DIAG_OFF(DIAG_UNKNOWN_PRAGMAS)
 DIAG_OFF(used-but-marked-unused)       /* fix spurious warnings for sk macros */
-/** Extract components of OCSP responser URL from a certificate
+/** Extract components of OCSP responder URL from a certificate
  *
  * @param[in] cert to extract URL from.
  * @param[out] host_out Portion of the URL (must be freed with free()).
index b2d313bfc201d548cf272c191d59af4681ef45eb..9d4fbac1463ca7e57d366a3bb696ec57e74db7f6 100644 (file)
@@ -175,7 +175,7 @@ static void rlm_perl_close_handles(void **handles)
 
 /*
  *     This is wrapper for fr_log
- *     Now users can call radiusd::log(level,msg) wich is the same
+ *     Now users can call radiusd::log(level,msg) which is the same
  *     as calling fr_log from C code.
  */
 static XS(XS_radiusd_log)
@@ -200,7 +200,7 @@ static XS(XS_radiusd_log)
 }
 
 /*
- *     This is a wraper for xlat_aeval
+ *     This is a wrapper for xlat_aeval
  *     Now users are able to get data that is accessible only via xlat
  *     e.g. %client(...)
  *     Call syntax is radiusd::xlat(string), string will be handled the
@@ -990,7 +990,7 @@ static int mod_thread_detach(module_thread_inst_ctx_t const *mctx)
  *     that must be referenced in later calls, store a handle to it
  *     in *instance otherwise put a null pointer there.
  *
- *     Setup a hashes wich we will use later
+ *     Setup a hashes which we will use later
  *     parse a module and give it a chance to live
  *
  */
@@ -1028,7 +1028,7 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
         *      Allocate a new perl interpreter to do the parsing
         */
        if ((inst->perl = perl_alloc()) == NULL) {
-               ERROR("No memory for allocating new perl interpretor!");
+               ERROR("No memory for allocating new perl interpreter!");
                return -1;
        }
        perl_construct(inst->perl);     /* ...and initialise it */
index 41431142fc57b3daa4ff923fa5fd30a46ee342e5..679cce909d46172b7bbe73c5c8aa71bcc2d2f109 100644 (file)
@@ -250,7 +250,7 @@ static int status_check_type_parse(UNUSED TALLOC_CTX *ctx, void *out, UNUSED voi
        code = type_enum->value->vb_uint32;
 
        /*
-        *      Cheat, and re-use the "type" array for allowed packet
+        *      Cheat, and reuse the "type" array for allowed packet
         *      types.
         */
        if (!code ||
index 74ae8a1c9a43f43b89e438bb4be833635804ea7e..ee54c293746e9c25f640a0bcabebb06084461faf 100644 (file)
@@ -312,7 +312,7 @@ static void udp_request_reset(udp_request_t *u)
        u->can_retransmit = false;
 }
 
-/** Reset a status_check packet, ready to re-use
+/** Reset a status_check packet, ready to reuse
  *
  */
 static void status_check_reset(udp_handle_t *h, udp_request_t *u)
@@ -1794,7 +1794,7 @@ static void request_mux(fr_event_list_t *el,
                 *      packet, then u->rr MUST already have been
                 *      deleted in the request_cancel() function
                 *      or request_release_conn() function when
-                *      the REQUEUE signal was recevied.
+                *      the REQUEUE signal was received.
                 */
                if (!u->packet || !u->can_retransmit) {
                        fr_assert(!u->rr);
index 66b21026d81444f5f1b047214accc098d539d1ca..453a3f8c9e35ed9175df16cb9551cde6c43ddbbc 100644 (file)
@@ -142,7 +142,7 @@ incoming RADIUS packets.
 
 Platforms:: MacOS, Linux, FreeBSD
 
-Rationale:: As there are no ACKs required this tests mesures the rate at which rlm_radius + transport can send
+Rationale:: As there are no ACKs required this tests measures the rate at which rlm_radius + transport can send
 packets. On Linux and FreeBSD we'd expect an exceptionally high packet rate in this mode as we coalesce multiple
 outbound packets and send them using single system call
 (`sendmmsg` for datagrams, and aggregated buffers + `write` for streams).
@@ -380,10 +380,10 @@ You will need to use different subrequest types to produce the different packet
 ** Verify No Message-Authenticator attribute is present
 * Send a <<CoA-Request>>
 ** Verify packet is well formed.
-** Verify Message-Authenticator attribue is present.
+** Verify Message-Authenticator attribute is present.
 * Send a <<Disconnect-Request>>
 ** Verify packet is well formed.
-** Verify Message-Authenticator attribue is present.
+** Verify Message-Authenticator attribute is present.
 
 === 3.2. Outbound packet buffer overrun
 
index 5079a0fdc617b1088d7c8eb703288e1d5d2e49aa..2272b474fa460a26450019236aaa82cd2d094c5f 100644 (file)
@@ -151,7 +151,7 @@ static unlang_action_t radutmp_zap(rlm_rcode_t *p_result, request_t *request, ch
                        RETURN_MODULE_FAIL;
                }
        }
-       close(fd);      /* and implicitely release the locks */
+       close(fd);      /* and implicitly release the locks */
 
        RETURN_MODULE_OK;
 }
@@ -550,7 +550,7 @@ static unlang_action_t CC_HINT(nonnull) mod_accounting(rlm_rcode_t *p_result, mo
        talloc_free(filename);
 
        if (fd > -1) {
-               close(fd);      /* and implicitely release the locks */
+               close(fd);      /* and implicitly release the locks */
        }
 
        RETURN_MODULE_RCODE(rcode);
index 56bd5998ea138e3c4932ef33e0ceaafc64593ace..9d1bf3253334ed370d92df4e726a7b7475e74e79 100644 (file)
@@ -530,7 +530,7 @@ static void ippool_action_print(request_t *request, ippool_action_t action,
 
        /*
         *      Ordering is important, needs to be LIFO
-        *      for proper talloc pool re-use.
+        *      for proper talloc pool reuse.
         */
        talloc_free(device_str);
        talloc_free(gateway_str);
index 326e6860645e0d605353a31707741b3d98c2c555..043498abcbe7c803e3e3cfad814c816d2f0f09fc 100644 (file)
@@ -467,7 +467,7 @@ static xlat_action_t rest_xlat(UNUSED TALLOC_CTX *ctx, UNUSED fr_dcursor_t *out,
        if (!randle) return XLAT_ACTION_FAIL;
 
        /*
-        *      Walk the incomming boxes, assessing where each is in the URI,
+        *      Walk the incoming boxes, assessing where each is in the URI,
         *      escaping tainted ones where needed.  Following each space in the
         *      input a new VB group is started.
         */
index a39afb08fb94a9896245f656ddf650de2b26f4e7..6278db1a8aa116790bf03a75bdd213862a640cfb 100644 (file)
@@ -176,7 +176,7 @@ static int sigtran_m3ua_route_from_conf(UNUSED TALLOC_CTX *ctx,
  *
  * @note The final version needs to be much more complex.  We can only have one
  *     event loop per instance of rlm_sigtran, so we need to record link references
- *     and re-use existing SCTP/MTP3 connections where appropriate.
+ *     and reuse existing SCTP/MTP3 connections where appropriate.
  *
  * @param[in] ctx      to allocate connection data in.
  * @param[out] out     where to write the new sigtran connection.
index 4838f9b9ba28f8a1ced67e0c8d10339e5dfe582e..c7dc3d39d9c44af1941cb81b2cb28f2e35aad9ec 100644 (file)
@@ -392,7 +392,7 @@ void bss_rewrite_header_for_msc(int rc, struct msgb *target, struct msgb *inpt,
        }
 }
 
-/* it is asssumed that the SCCP stack checked the size */
+/* it is assumed that the SCCP stack checked the size */
 static int patch_address(uint32_t offset, int pc, struct msgb *msg)
 {
        struct sccp_called_party_address *party;
index 68c9c31788f76129a5f85d324e58df9dbd05991e..cdf9f6cac070d4f1b0a09bab4cce45b3d4584850 100644 (file)
@@ -37,7 +37,7 @@ static const struct rate_ctr_desc mtp_lset_cfg_description[] = {
 static const struct rate_ctr_desc mtp_link_cfg_description[] = {
        [MTP_LNK_IN]            = { "total.in",       "Messages in        "},
        [MTP_LNK_OUT]           = { "total.out",      "Messages out       "},
-       [MTP_LNK_ERROR]         = { "total.error",    "Errors occured     "},
+       [MTP_LNK_ERROR]         = { "total.error",    "Errors occurred    "},
        [MTP_LNK_DRP]           = { "total.dropped",  "Messages dropped   "},
        [MTP_LNK_SLTM_TOUT]     = { "sltm.timeouts",  "SLTM timeouts      "},
 };
index d79349b60ae1c400bc9fd9df2c6b4c730a192484..c46453789395e4bda74e4a4a2ce5ce96f2702c7f 100644 (file)
@@ -26,7 +26,7 @@
 static const struct log_info_cat default_categories[] = {
        [DINP] = {
                .name = "DINP",
-               .description = "A-bis Intput Subsystem",
+               .description = "A-bis Input Subsystem",
                .enabled = 1, .loglevel = LOGL_NOTICE,
        },
        [DSCCP] = {
index 826eb3a4cee3763dcf201d4f9e600c26971576dc..ff6e4de068b0de6df867c8f35b0a6d80632b1e80 100644 (file)
@@ -65,7 +65,7 @@ struct msc_connection {
        struct osmo_timer_list ping_timeout;
        struct osmo_timer_list pong_timeout;
 
-       /* mgcp messgaes */
+       /* mgcp messages */
        struct mgcp_callagent mgcp_agent;
 
        /* application pointer */
index 73836556d429fb8ba68556ef3ad2c8cf4d73d6c4..579b3627f9fbaf00328381e8f8f0698dc6cdfde9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Represet M3UA client (and later server) links
+ * Represent M3UA client (and later server) links
  */
 #pragma once
 
index ede3548fd5cd5013a76ae8382d1e022a1dbaaa11..ecb1d50357c374fa3a60574c0739eb1dc2dda547 100644 (file)
@@ -84,7 +84,7 @@ struct ss7_application {
 
        /* various hacks/quirks to deal with broken equipment */
        /*
-        * Some equipments do not look into the codec list but only the
+        * Some equipment do not look into the codec list but only the
         * size of it.
         */
        unsigned fixed_ass_cmpl_reply : 1;
index ee909c3e1b14b022167725622cf66cf0bad87769..36cad884e2b8536a925267c03682d73a2e052934 100644 (file)
@@ -117,7 +117,7 @@ struct msgb *ipaccess_read_msg(struct osmo_fd *bfd, int *error)
 
        msgb_put(msg, ret);
 
-       /* then read te length as specified in header */
+       /* then read the length as specified in header */
        msg->l2h = msg->data + sizeof(*hh);
        len = ntohs(hh->len);
        ret = recv(bfd->fd, msg->l2h, len, 0);
index f26b533192967f70d1c677f9e9ed81fa6e0f5977..df4a810c02111692ba2e44099ee14676bc33cea6 100644 (file)
@@ -132,7 +132,7 @@ static int udp_read_cb(struct osmo_fd *fd)
                mtp_link_failure(link);
                goto exit;
        } else if (hdr->data_type > UDP_DATA_MSU_PRIO_3) {
-               LOGP(DINP, LOGL_ERROR, "Link failue on %d/%s of %d/%s.\n",
+               LOGP(DINP, LOGL_ERROR, "Link failure on %d/%s of %d/%s.\n",
                     link->nr, link->name, link->set->nr, link->set->name);
                mtp_link_failure(link);
                goto exit;
index d7a5233394e6cbdde2f7a15c3169b2ae3fd9a994..5794410421f1aae9e419d5a41044d4e3f73a62ba 100644 (file)
@@ -52,7 +52,7 @@ void mtp_link_down(struct mtp_link *link)
        link->was_up = 0;
        one_up = is_one_up(link->set);
 
-       /* our linkset is now unsuable */
+       /* our linkset is now unusable */
        if (was_up && !one_up)
                mtp_linkset_down(link->set);
        link->clear_queue(link);
index 3558fd5611ff8822625089de287c8aaa4f4a9d84..cdc8f3eadf3fe1e9b883f1f4e0d82615d264c53c 100644 (file)
@@ -174,7 +174,7 @@ static struct msgb *mtp_sccp_alloc_scmg(struct mtp_link_set *set,
        /* this appears to be round robin or such.. */
        hdr->addr = MTP_ADDR(sls % 16, set->dpc, set->sccp_opc);
 
-       /* generate the UDT message... libsccp does not offer formating yet */
+       /* generate the UDT message... libsccp does not offer formatting yet */
        udt = (struct sccp_data_unitdata *) msgb_put(out, sizeof(*udt));
        udt->type = SCCP_MSG_TYPE_UDT;
        udt->proto_class = SCCP_PROTOCOL_CLASS_0;
index 2b41c8964b930be161a1a607e449a242833b1564..e873a40ffe6ccb137b1b8af0def25d10bfaef0aa 100644 (file)
@@ -142,7 +142,7 @@ static void handle_local_sccp(struct mtp_link_set *set, struct msgb *inpt, struc
                struct sccp_connection_request *cr;
                struct msgb *msg;
 
-               LOGP(DINP, LOGL_NOTICE, "Handling CR localy.\n");
+               LOGP(DINP, LOGL_NOTICE, "Handling CR locally.\n");
                cr = (struct sccp_connection_request *) inpt->l2h;
                msg = create_sccp_refuse(&cr->source_local_reference);
                if (msg) {
index 9921e7cbaec29ab2ab2c9d02b8338338c010d8a6..e7b36f54c6ac89bc3920345be2a2545a60b43cb7 100644 (file)
@@ -182,7 +182,7 @@ static int ss7_app_setup_stp(struct ss7_application *app,
                return -1;
        }
 
-       /* veryify the MTP Linkset */
+       /* verify the MTP Linkset */
        src = mtp_link_set_num(app->bsc, src_num);
        if (!src) {
                LOGP(DINP, LOGL_ERROR,
@@ -199,11 +199,11 @@ static int ss7_app_setup_stp(struct ss7_application *app,
                return -3;
        }
 
-       /* veryify the MTP Linkset */
+       /* verify the MTP Linkset */
        dst = mtp_link_set_num(app->bsc, dst_num);
        if (!dst) {
                LOGP(DINP, LOGL_ERROR,
-                    "SS7 %d/%s destionation linkset not found with nr: %d.\n",
+                    "SS7 %d/%s destination linkset not found with nr: %d.\n",
                     app->nr, app->name, dst_num);
                return -2;
        }
@@ -257,7 +257,7 @@ static int ss7_app_setup_relay(struct ss7_application *app, int type,
                return -1;
        }
 
-       /* veryify the MTP Linkset */
+       /* verify the MTP Linkset */
        mtp = mtp_link_set_num(app->bsc, src_num);
        if (!mtp) {
                LOGP(DINP, LOGL_ERROR,
index d62c20ea4b25897a76026de73de58657ba6ce7b9..858678cb8bbd09120a6492f0e646eecae8fd5175 100644 (file)
@@ -103,7 +103,7 @@ typedef struct {
        header_list_t           header_list;            //!< List of SMTP headers to add to emails.
        bool                    set_date;
 
-       fr_curl_conn_config_t   conn_config;            //!< Re-usable CURL handle config
+       fr_curl_conn_config_t   conn_config;            //!< Reusable CURL handle config
 } rlm_smtp_t;
 
 /*
@@ -771,7 +771,7 @@ static unlang_action_t smtp_io_module_resume(rlm_rcode_t *p_result, module_ctx_t
  *             Email header and body
  *             File attachments
  *
- *     Then it queues the request and yeilds until a response is given
+ *     Then it queues the request and yields until a response is given
  *     When it responds, smtp_io_module_resume is called.
  */
 static unlang_action_t CC_HINT(nonnull) mod_mail(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
index c5be4f0670a01624f875cdbff773b2fc9646b2d6..1f33130b3c83c78f7fbe2996b4d21828a6c1291e 100644 (file)
@@ -687,7 +687,7 @@ static sql_rcode_t sql_finish_query(rlm_sql_handle_t *handle, rlm_sql_config_t c
 
        /*
         *      Clear our local log buffer, and free any messages which weren't
-        *      reconfiged (so we don't leak memory).
+        *      reconfigured (so we don't leak memory).
         */
        talloc_free_children(conn->log_ctx);
        memset(&conn->last_error, 0, sizeof(conn->last_error));
index 3c40184cba5f8aceb7453da3fb36307447f02cf9..fce6190b02baa14b7030a24ef7f7c3ff89c22d28 100644 (file)
@@ -77,7 +77,7 @@ static sql_rcode_t sql_socket_init(rlm_sql_handle_t *handle, rlm_sql_config_t co
 
        /* Set the connection timeout */
 #if 0
-       /* Not suported ? */
+       /* Not supported ? */
        SQLSetConnectAttr(conn->dbc_handle, SQL_ATTR_LOGIN_TIMEOUT, &timeout_ms, SQL_IS_UINTEGER);
 #endif
 
index 9ac23b9cbb51e3c0a2fa7f70437d63a16fd4eb0f..dcc25145d12f04e9a648369d753979427c685532 100644 (file)
@@ -102,7 +102,7 @@ static sql_rcode_t sql_query(rlm_sql_handle_t *handle, UNUSED rlm_sql_config_t c
 
        try_again:
        /*
-        *      Try again query when deadlock, beacuse in any case it
+        *      Try again query when deadlock, because in any case it
         *      will be retried.
         */
        if (fb_sql_query(conn, query)) {
index 1e14022f77ad3254464321af0f0be908ca2cc421..2209253892c8ebc4b35350f65afe93a06e35a5dd 100644 (file)
@@ -164,7 +164,7 @@ static sql_rcode_t sql_check_error(sqlite3 *db, int status)
  *
  * @param db handle to extract error from (may be NULL).
  * @param status to check (if unused, set to SQLITE_OK).
- * @param fmt to preprend.
+ * @param fmt to prepend.
  * @param ... arguments to fmt.
  */
 static void sql_print_error(sqlite3 *db, int status, char const *fmt, ...)
@@ -546,7 +546,7 @@ static sql_rcode_t sql_fetch_row(rlm_sql_row_t *out, rlm_sql_handle_t *handle, r
        TALLOC_FREE(handle->row);
 
        /*
-        *      Executes the SQLite query and interates over the results
+        *      Executes the SQLite query and iterates over the results
         */
        status = sqlite3_step(conn->statement);
 
index 554f1d9278073e557f73ef0de265bde69571535b..17a208a01e49318b97b01cc7a057b56ca2532411 100644 (file)
@@ -810,7 +810,7 @@ static unlang_action_t CC_HINT(nonnull) mod_mark(rlm_rcode_t *p_result, module_c
 }
 
 /*
- *     Check Accounting packets for their accoutning status
+ *     Check Accounting packets for their accounting status
  *     Call the relevant module based on the status
  */
 static unlang_action_t CC_HINT(nonnull) mod_accounting(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
index c150c6600b3f8781809626a50e0f96eeb5ca9f44..76b10c621ff8b965fd43eea6219d06345628576b 100644 (file)
@@ -98,7 +98,7 @@ int fr_totp_cmp(fr_totp_t const *cfg, request_t *request, time_t now, uint8_t co
         *      First try to authenticate against the current OTP, then step
         *      back in increments of BACK_STEP_SECS, up to BACK_STEPS times,
         *      to authenticate properly in cases of long transit delay, as
-        *      described in RFC 6238, secion 5.2.
+        *      described in RFC 6238, section 5.2.
         */
 
        for (i = 0, then = now; i <= cfg->lookback_steps; i++, then -= cfg->lookback_steps) {
index 613015a63ce9412f18f8d8b68148c5ece9961333..907934b0037cd2c751efefdee660daa29176d3c8 100644 (file)
@@ -52,7 +52,7 @@ Performs a PTR lookup for the owner.
 Performs an MX lookup for the owner, returning just the first result.
 .PP
 .SH CAVEATS
-Logging from rlm_unbound can be problematic, especialy if more than one
+Logging from rlm_unbound can be problematic, especially if more than one
 instantiation of the module is used.  This is due to the need for additional
 features in the underlying libunbound which hopefully will be enhanced over
 time.
index d3439de594d04832895fd9b17130f95cf56cb421..582ec5d3faa3853e2fa080a2378179bc00f26467 100644 (file)
@@ -462,7 +462,7 @@ static int mod_thread_instantiate(module_thread_inst_ctx_t const *mctx)
        /*
         *      The unbound context needs to be "finalised" to fix its settings.
         *      The API does not expose a method to do this, rather it happens on first
-        *      use.  A quick workround is to delete data which won't be present
+        *      use.  A quick workaround is to delete data which won't be present
         */
        ub_ctx_data_remove(t->ev_b->ub, "notar33lsite.foo123.nottld A 127.0.0.1");
 
index 0d44703741c7a8d51aee1fe56fd7e1eb1be39668..e93ce081ac31b725ded611441ab756864d2a1fe8 100644 (file)
@@ -53,7 +53,7 @@
  * @param[in] ifindex          of the interface we're binding to.
  * @return
  *     - >= 0 a file descriptor to read/write packets on.
- *     - <0 an error ocurred.
+ *     - <0 an error occurred.
  */
 int fr_dhcpv4_raw_socket_open(struct sockaddr_ll *link_layer, int ifindex)
 {
@@ -206,7 +206,7 @@ fr_radius_packet_t *fr_dhcpv4_raw_packet_recv(int sockfd, struct sockaddr_ll *li
        sock_len = sizeof(struct sockaddr_ll);
        data_len = recvfrom(sockfd, raw_packet, MAX_PACKET_SIZE, 0, (struct sockaddr *)link_layer, &sock_len);
 
-       data_offset = ETH_HDR_SIZE + IP_HDR_SIZE + UDP_HDR_SIZE; /* DHCP data datas after Ethernet, IP, UDP */
+       data_offset = ETH_HDR_SIZE + IP_HDR_SIZE + UDP_HDR_SIZE; /* DHCP data after Ethernet, IP, UDP */
 
        if (data_len <= data_offset) DISCARD_RP("Payload (%d) smaller than required for layers 2+3+4", (int)data_len);
 
index e44382451b10253a175db976add5594cfd8ff3fc..493eab4730bfc49eed40df89083939fbe8208475 100644 (file)
@@ -47,7 +47,7 @@
  */
 #define VLAN_VID_UNPACK(_vlan)         ((htons((_vlan)->tag_control) & 0x0fff))
 
-/** Pack the PCP (Priority Code Point) DEI (Drop Eligable Indicator) and VID (VLAN ID)
+/** Pack the PCP (Priority Code Point) DEI (Drop Eligible Indicator) and VID (VLAN ID)
  *
  * Packs the PCP, DEI and VID into the TCI (Tag control information). Output will be a 16bit integer
  * in network byte order.
index 1e64d6584e0416c38b37e30e7f7558bd5e636474..a8e82ab741842452d9909dbb6325b2728f739255 100644 (file)
@@ -369,7 +369,7 @@ ssize_t fr_internal_decode_pair_dbuff(TALLOC_CTX *ctx, fr_pair_list_t *out, fr_d
  * @param out          list to append pairs to
  * @param parent       attribute within which which to decode
  * @param dbuff                to parse
- * @param decode_ctx   to pass to decoder funtion
+ * @param decode_ctx   to pass to decoder function
  * @return
  *     - bytes of dbuff consumed
  *     - < 0 on error
index e8f6a283a2b028c5d99f40815e3bc35cc8fbdcea..8b391effef219c41edc35047db39d1c08c61a058 100644 (file)
@@ -218,7 +218,7 @@ typedef struct {
  *     value:          A value to compare against the masked bits at
  *                     offset in a users packet.
  *
- *     compNeq:        Defines type of comarison (Equal or Notequal)
+ *     compNeq:        Defines type of comparison (Equal or Notequal)
  *                     default is Equal.
  *
  *     fill:           Round things out to a dword boundary
index 7fccff5bd92a4113348198bed1e780293bbd2d39..8eb25dbe65c4ce00f49d6649aafcbd354aa87805 100644 (file)
@@ -456,7 +456,7 @@ bool fr_radius_ok(uint8_t const *packet, size_t *packet_len_p,
 
        /*
         *      Code of 0 is not understood.
-        *      Code of 16 or greate is not understood.
+        *      Code of 16 or greater is not understood.
         */
        if ((packet[0] == 0) ||
            (packet[0] >= FR_RADIUS_CODE_MAX)) {
@@ -662,7 +662,7 @@ bool fr_radius_ok(uint8_t const *packet, size_t *packet_len_p,
         *      Message-Authenticator attributes.
         */
        if (require_ma && !seen_ma) {
-               FR_DEBUG_STRERROR_PRINTF("we equire Message-Authenticator attribute, but it is not in the packet");
+               FR_DEBUG_STRERROR_PRINTF("we require Message-Authenticator attribute, but it is not in the packet");
                failure = DECODE_FAIL_MA_MISSING;
                goto finish;
        }
index fc138fae3d4651c99b274a5c84461196854627be..47108a932061cd085fd48d8f9225974c7b92bd87 100644 (file)
@@ -1423,7 +1423,7 @@ create_attrs:
 
        /*
         *      When the unknown attributes were created by
-        *      decode_vsa_internal, the hierachy between that unknown
+        *      decode_vsa_internal, the hierarchy between that unknown
         *      attribute and first known attribute was cloned
         *      meaning we can now free the unknown vendor.
         */
@@ -1895,7 +1895,7 @@ ssize_t fr_radius_decode_pair_value(TALLOC_CTX *ctx, fr_pair_list_t *out,
        case FR_TYPE_OCTETS:
                /*
                 *      This attribute SHOULD have fixed size, but it
-                *      doesn't.  Therefor it's malformed.
+                *      doesn't.  Therefore it's malformed.
                 */
                if (parent->flags.length && (data_len != parent->flags.length)) goto raw;
                FALL_THROUGH;
@@ -1962,7 +1962,7 @@ ssize_t fr_radius_decode_pair(TALLOC_CTX *ctx, fr_pair_list_t *out,
 
        /*
         *      If we don't have a tag root already, then record where
-        *      we're putting the top level attributes and add tha tags
+        *      we're putting the top level attributes and add the tags
         *      there.
         */
        if (!packet_ctx->tag_root) {
index 0300ec8b2194816d1e6dc2e044b799598b772be9..7d6811b51fe4cfe4ebac13e96fea3e5a30d86cfa 100644 (file)
@@ -1048,7 +1048,7 @@ static ssize_t encode_vendor_attr(fr_dbuff_t *dbuff,
 
        case 1:
                /*
-                *      Lenght fields are set to zero, because they
+                *      Length fields are set to zero, because they
                 *      will get over-ridden later.
                 */
                fr_dbuff_marker(&vsa_length_field, &work_dbuff);
index bf55a435d74e0f704ebbb808ac21622739e7bc11..733068bb072d93c6a0c1f707b07690cefc5c05d5 100644 (file)
@@ -428,7 +428,7 @@ bool fr_packet_list_id_alloc(fr_packet_list_t *pl, int proto,
        }
 
        /*
-        *      FIXME: Go to an LRU system.  This prevents ID re-use
+        *      FIXME: Go to an LRU system.  This prevents ID reuse
         *      for as long as possible.  The main problem with that
         *      approach is that it requires us to populate the
         *      LRU/FIFO when we add a new socket, or a new destination,
index da643ed1a4eb9886540ca23ac80852a98bdbc850..523aa9e5fc5cf98aca831a3c323a2effcf7619bd 100644 (file)
@@ -517,7 +517,7 @@ ssize_t fr_tacacs_decode(TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dict_attr_t co
        /*
         *      3.6. Encryption
         *
-        *      If there's a secret, we alway decrypt the packets.
+        *      If there's a secret, we always decrypt the packets.
         */
        if (secret && packet_is_encrypted(pkt)) {
                size_t length;
index 2a4c50b0265d836ce27f5556921671c0b350ec67..409a49c1b19c7879ba95d8275e13946db15ae31b 100644 (file)
@@ -54,7 +54,7 @@ $(BUILD_DIR)/tests/tmux.key:
        ${Q}echo $(TMUX_KEY) > $@
 
 #
-#  Stupid 'make' doesn' know how to create directories.
+#  Stupid 'make' doesn't know how to create directories.
 #
 .PHONY: $(BUILD_DIR)/tests/daemon/
 $(BUILD_DIR)/tests/daemon/:
index b50b16da130d07b659e58e67029d8f324d0d5d1e..925cf362053a32dfc2dfbef3cf487f79b8f72815 100644 (file)
@@ -51,7 +51,7 @@ else {
        test_fail
 }
 
-# Checking full capture group overun
+# Checking full capture group overrun
 if ('a_b_c_d_e_f_g_h_i_j_k_l_m_n_o_p_q_r_s_t_u_v_w_x_y_z_A_B_C_D_E_F_G' =~ /^(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)_(.)$/) {
        if (!("%{0}%{1}%{2}%{3}%{4}%{5}%{6}%{7}%{8}%{9}%{10}%{11}%{12}%{13}%{14}%{15}%{16}%{17}%{18}%{19}%{20}%{21}%{22}%{23}%{24}%{25}%{26}%{27}%{28}%{29}%{30}%{31}%{32}" == 'a_b_c_d_e_f_g_h_i_j_k_l_m_n_o_p_q_r_s_t_u_v_w_x_y_z_A_B_C_D_E_F_GabcdefghijklmnopqrstuvwxyzABCDEF')) {
                test_fail
index e4b9231e0dd6cc9a42df6f117f15def6f7769a2b..ffe4afd8c95cb27991ee43d8f11d4a4a17358aec 100644 (file)
@@ -26,7 +26,7 @@ if (!(%{control.Tmp-Integer-0[#]} == 4)) {
 }
 
 #
-#  We can't check order, as there's offically no guarantee on the
+#  We can't check order, as there's officially no guarantee on the
 #  order in which child sections will be evaluated.
 #
 
index 1c5d0a136e9a0da8b2a2d5ff6be8ba7f7290a869..72d0005623d9d5ddc672ac1dfff0bd40d37a8564 100644 (file)
@@ -27,7 +27,7 @@ update request {
        &Tmp-String-0 ^= 'boink'
 }
 
-# The prepended value should be first followd by the other two
+# The prepended value should be first followed by the other two
 if (!((&Tmp-String-0[0] == 'boink')) || (!(&Tmp-String-0[1] == 'foo')) || (!(%{Tmp-String-0[2]} == 'baz'))) {
        test_fail
 }
@@ -65,7 +65,7 @@ update control {
 #      &control.Tmp-String-0 ^= &Tmp-String-0
 #}
 
-# (Temporary method to acheive the same - as per issue noted above)
+# (Temporary method to achieve the same - as per issue noted above)
 update {
        &control ^= &request
 }
index e4883237a63cb5f55fa068f4d39f1ac8cfc8255d..bb6376865cda2f4f4172fffbdef62b9fcd4d734a 100644 (file)
@@ -28,7 +28,7 @@ SUBMAKEFILES := $(FILES)
 $(TEST): test.ldap_sync.dir $(patsubst %/all.mk,test.ldap_sync/%,$(FILES))
 
 #
-#  Ensure diretory for "touch" files exists
+#  Ensure directory for "touch" files exists
 #
 test.ldap_sync.dir:
        ${Q}mkdir -p $(BUILD_DIR)/tests/test.ldap_sync
index 856092ac341113176ba1a7b18947adf77222df19..d22f4afc621cca71fa0d24b3dfc5bf4a1384b3e4 100644 (file)
@@ -398,7 +398,7 @@ if !(&Tmp-uint64-0 == 9223372036854775807) {
 
 &request -= &Tmp-uint64-0[*]
 
-# 36. Multiple array indicies
+# 36. Multiple array indices
 map json &Tmp-String-0 {
        &Tmp-Signed-0 += '$[3][0,1]'
 }
index 0c49e4ae1565adca9893917f32a24f42e242722a..adb364dad102ada89c5b049c127d18356c13287a 100644 (file)
@@ -167,7 +167,7 @@ if (%json_jpath_validate("$[0][1]") != '7:$[0][1]') {
        test_fail
 }
 
-# 33. Expect success - Nested array with multiple indicies
+# 33. Expect success - Nested array with multiple indices
 if (%json_jpath_validate("$[0][1,2]") != '9:$[0][1,2]') {
        test_fail
 }
index b220b1fdee347dcdb093ccb1219c5f200d0d5644..d76271fea0017d3521f45f1a2af19a962f82238d 100644 (file)
@@ -1,5 +1,5 @@
 #
-#  Run the "ldapssl" module - an instance of ldap using an ssl conneciton
+#  Run the "ldapssl" module - an instance of ldap using an ssl connection
 #  PRE: acct
 #
 ldapssl
index d16769defc40e8aac6853f71d4397622f3641483..a0fb23138f86571bfb3795d3f1a8fd793e1bf50d 100644 (file)
@@ -1,5 +1,5 @@
 #
-#  Run the "ldapssl" module - an instance of ldap using an ssl conneciton
+#  Run the "ldapssl" module - an instance of ldap using an ssl connection
 #  PRE: auth_ssl
 #
 
index da244920d52fd1cbe47656e3a19a3a2197fbc33e..d635cdfd65e4f9d578f28cc1af58379402e5d0e6 100644 (file)
@@ -67,7 +67,7 @@ sub authenticate {
        if ($RAD_REQUEST{'User-Name'} =~ /^baduser/i) {
                # Reject user and tell him why
                $RAD_REPLY{'Reply-Message'} = "Denied access by rlm_perl function";
-               # For testing return NOTFOUND - returning REJECT immediatly rejects the packet so fails the test
+               # For testing return NOTFOUND - returning REJECT immediately rejects the packet so fails the test
                return RLM_MODULE_NOTFOUND;
        } else {
                # Accept user and set some attribute
index 0a8a0c72636781420fb929f88b15e6f2ee344964..06c69d1c452b077bc2f53391ff8f38d97b821062 100644 (file)
@@ -51,7 +51,7 @@ sub xlatscalar2array {
        return split(/ /, $_[0]);
 }
 
-# Take an arbitary number of scalars and retun an array of array refs
+# Take an arbitrary number of scalars and return an array of array refs
 sub xlatscalar2arrayref {
        my @array;
        for (my $i = 0; $i <= $#_; $i++) {
index 4dbeb32a92bb2f18f8d9818db907eada15c3cd0f..c0589975d994cba2b3bbe46fbb8d4784f23f5408 100644 (file)
@@ -4,7 +4,7 @@
 #  TODO
 #  A number of these tests return multiple values - either arrays, or hashes.
 #  Currently xlats have all returned values concatenated into a single value box -
-#  once multiple retuned boxes are handled to produce multiple attributes the tests
+#  once multiple returned boxes are handled to produce multiple attributes the tests
 #  will need amending.
 
 &Tmp-String-0 := "hello,goodbye,welcome,farewell"
index 7ac635c4f338e3367a6a85135814f5aaa1214e91..f7da05d24f4ffa2fbbb439a140aac7bbdf343961 100644 (file)
@@ -18,14 +18,14 @@ if (!(&control.Tmp-String-1 == "Sample text response\n")) {
        test_fail
 }
 
-# Take host from incomming packet
+# Take host from incoming packet
 &control.Tmp-String-1 := "%(rest:http://%{Login-IP-Host}:%{Tmp-Integer-0}/test.txt)"
 
 if (!(&REST-HTTP-Status-Code == 200) || !(&control.Tmp-String-1 == "Sample text response\n")) {
        test_fail
 }
 
-# Port is not allowed from incomming packet
+# Port is not allowed from incoming packet
 &control.Tmp-String-1 := "%(rest:http://%{Tmp-String-0}:%{NAS-Port}/test.txt)"
 
 if (!(&Module-Failure-Message == "Failed escaping URI: Tainted value not allowed for port") || !(&control.Tmp-String-1 == "")) {
index d2794c6feac49b946f747c88c157402f42b0e0a1..6a463c3dfa4b35d20452cdc222fef4120e71d325 100644 (file)
@@ -11,7 +11,7 @@ subrequest RADIUS.Access-Request {
                test_fail
        }
 
-       # We shouldnt magically acquire new proxy state values
+       # We shouldn't magically acquire new proxy state values
        if (&reply.Proxy-State) {
                test_fail
        }
index 7b2ae06a52735e9490c34383790755ff53441400..1ac5077d01078a2603246f2ef89d127b3a9d6e55 100644 (file)
@@ -1,7 +1,7 @@
 {% if grains['os'] == 'Ubuntu' %}
 
 # In Ubuntu 14.10, openldap comes with a broken AppArmor profile (can't connect through socket)
-# Disable AppArmor alltogether
+# Disable AppArmor altogether
 /etc/init.d/apparmor teardown:
    cmd.run
 
index f3421f5ea5b7a3c94ea71438da749817049d38dd..52b2833326594c1ff92a42a9902fdc57edc1edc9 100644 (file)
@@ -63,7 +63,7 @@ CREATE INDEX radacct_start_user_idx ON radacct (AcctStartTime, UserName);
 -- There was WAAAY too many indexes previously. This combo index
 -- should take care of the most common searches.
 -- I have commented out all the old indexes, but left them in case
--- someone wants them. I don't recomend anywone use them all at once
+-- someone wants them. I don't recommend anywone use them all at once
 -- as they will slow down your DB too much.
 --  - pnixon 2003-07-13
 --
index c4e92de0a73a7ceb8d1401eb72894e0610c315ec..0776489e7d519e6d3289f63bb2732f156f46c4d6 100644 (file)
@@ -1,7 +1,7 @@
 TACACS_BUILD_DIR  := $(BUILD_DIR)/tests/tacacs
 
 #
-#      We need the 'tacacs_plus' Python3 module to excute TACACS+ tests
+#      We need the 'tacacs_plus' Python3 module to execute TACACS+ tests
 #      i.e: Needed by ./scripts/tacacs/tacacs_client
 #
 $(TACACS_BUILD_DIR)/depends.mk:
index 5b81be1de79d13d3e0efe2495ef493af6290fb34..feb22356c86f94196eb3c1ac5f19d6e7f72d3241 100644 (file)
@@ -33,7 +33,7 @@ match ERROR offset 12: Invalid array index '-1' (should be between 0-1000)
 #
 #  And we do not (yet) allow for filters on leaf attributes.  See
 #
-#  @todo - feature - allowe expressions in tmpl_attr_parse_filter(()
+#  @todo - feature - allow expressions in tmpl_attr_parse_filter(()
 #
 condition &User-Name[&User-Name == 'bar'] == "foo"
 match ERROR offset 12: Invalid filter - cannot use filter on leaf attributes
index 8c7c6901ec99e94de442ee8a2eac115a041a5030..b5deb63ed6ec1d28980b78b38a90493426d7e25c 100644 (file)
@@ -360,7 +360,7 @@ static void master_process(TALLOC_CTX *ctx)
                                MPRINT1("Master ignoring packet (data length %zd)\n", data_size);
 
                        discard:
-                               fr_message_done(&cd->m); /* yeah, re-use it for the next packet... */
+                               fr_message_done(&cd->m); /* yeah, reuse it for the next packet... */
                                continue;
                        }
 
index f299579618fe501931e1b8a251b7990b7c0469ff..d76389cb2cb1dc1555b0d31a5b08f441b769c8ab 100644 (file)
@@ -127,7 +127,7 @@ static NEVER_RETURNS void usage(void)
        fprintf(stderr, "usage: ring_buffer_test [OPTS]\n");
        fprintf(stderr, "  -x                     Debugging mode.\n");
        fprintf(stderr, "  -s <string>            Set random seed to <string>.\n");
-       fprintf(stderr, "  -l <length>            Set the interation number to <length>.\n");
+       fprintf(stderr, "  -l <length>            Set the iteration number to <length>.\n");
 
        fr_exit_now(EXIT_SUCCESS);
 }