]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix typos in src
authorDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
Thu, 25 Jan 2024 21:52:09 +0000 (22:52 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 25 Jan 2024 23:19:45 +0000 (17:19 -0600)
Misspellings found by codespell.

15 files changed:
src/lib/bio/haproxy.c
src/lib/bio/mem.c
src/lib/bio/network.c
src/lib/bio/network.h
src/lib/eap/base.c
src/lib/eap/compose.c
src/lib/eap/session.c
src/lib/eap/tls.c
src/lib/server/tmpl_dcursor.c
src/lib/server/tmpl_escape.h
src/lib/server/tmpl_tokenize.c
src/lib/util/acutest.h
src/lib/util/value.c
src/lib/util/value.h
src/modules/rlm_rest/rlm_rest.c

index 4e5a1bf3a0ff01a38b40d1f400cb4960838e68e9..294f5834016af89daaee08858f90372d8fe7ac81 100644 (file)
@@ -159,7 +159,7 @@ static ssize_t fr_bio_haproxy_read_next(fr_bio_t *bio, UNUSED void *packet_ctx,
        used = fr_bio_buf_used(&my->buffer);
 
        /*
-        *      Somehow (magically) we can satisy the read from our buffer.  Do so.  Note that we do NOT run
+        *      Somehow (magically) we can satisfy the read from our buffer.  Do so.  Note that we do NOT run
         *      the activation callback, as there is still data in our buffer
         */
        if (size < used) {
index 3310a3129a2971800acb2ee6d2844d2bdde36c72..b0d44e80c0d5c943b126d64b76cd90f06b7c0e88 100644 (file)
@@ -202,7 +202,7 @@ static ssize_t fr_bio_mem_read_packet(fr_bio_t *bio, void *packet_ctx, void *buf
 
                /*
                 *      We've tried to make room and failed.  Which means that the buffer is full, AND there
-                *      still isn't a compelte packet in the buffer.  This is therefore a fatal error.  The
+                *      still isn't a complete packet in the buffer.  This is therefore a fatal error.  The
                 *      application has not supplied us with enough read_buffer space to store a complete
                 *      packet.
                 */
index d8acd1a18fe5208996a1e04e5b785443ceec9582..48fda491369cb10dc471045f89e858d6976eed62 100644 (file)
@@ -97,7 +97,7 @@ fr_bio_t *fr_bio_network_alloc(TALLOC_CTX *ctx, fr_ipaddr_t const *allow, fr_ipa
        fr_bio_fd_info_t const *info;
 
        /*
-        *      We are only useable for FD bios.  We need to get "offset" into the packet_ctx, and we don't
+        *      We are only usable for FD bios.  We need to get "offset" into the packet_ctx, and we don't
         *      want to have an API which allows for two different "offset" values to be passed to two
         *      different bios.
         */
index 8f869b950bfe93b8b330bb5685c138af58879486..7270ee76a4e1b064a7c2eb43018b719d28647efa 100644 (file)
@@ -37,7 +37,7 @@ fr_trie_t *fr_bio_network_trie_alloc(TALLOC_CTX *ctx, int af, fr_ipaddr_t const
  *     NULL means "nothing matches", which should also be interpreted as "deny".
  *
  *     The difference between "NULL" and "deny" is that NULL is an IP address which was never inserted into
- *     the trie.  Whereas "deny" menas that there is a parent "allow" range, and we are carving out a "deny"
+ *     the trie.  Whereas "deny" means that there is a parent "allow" range, and we are carving out a "deny"
  *     in the middle of that range.
  */
 #define FR_BIO_NETWORK_ALLOW ((void *) (-1))
index da7f3e52f7907c7902006a3486b1703cb9b042f9..e4e7c3348502ce294cf0eb18047e9c3fe4357ee3 100644 (file)
@@ -167,7 +167,7 @@ static bool eap_is_valid(TALLOC_CTX *ctx, eap_packet_raw_t **eap_packet_p)
         */
        packet_len = talloc_array_length((uint8_t *) eap_packet);
        if (packet_len <= EAP_HEADER_LEN) {
-               fr_strerror_printf("Invalid EAP data lenth %zd <= 4", packet_len);
+               fr_strerror_printf("Invalid EAP data length %zd <= 4", packet_len);
                return false;
        }
 
index dd86b25f1c8e4178e6c74cd956e27d350b77d137..f64e85802886c8e29ab5c6a1438ded26f38ccba9 100644 (file)
@@ -170,7 +170,7 @@ rlm_rcode_t eap_compose(eap_session_t *eap_session)
         */
        if (!eap_round->set_request_id) {
                /*
-                *      Id serves to suppport request/response
+                *      Id serves to support request/response
                 *      retransmission in the EAP layer and as such
                 *      must be different for 'adjacent' packets
                 *      except in case of success/failure-replies.
index 7e51e3f69ed61bdcf1d863e2589575540e9dd057..c30e9ac80af358b2cc08239cc7e8e30aea6029ea 100644 (file)
@@ -134,7 +134,7 @@ static eap_session_t *eap_session_alloc(request_t *request)
        return eap_session;
 }
 
-/** 'destroy' an EAP session and dissasociate it from the current request
+/** 'destroy' an EAP session and disassociate it from the current request
  *
  * @note This could be done in the eap_session_t destructor (and was done previously)
  *     but this made the code too hard to follow, and too fragile.
@@ -259,7 +259,7 @@ static char *eap_identity(request_t *request, eap_session_t *eap_session, eap_pa
         *  In some EAP methods, the identity may be encrypted, and padded
         *  out to the block size of the encryption method.  These identities
         *  may contain nuls, and may be much larger than humanly readable
-        *  identiies.
+        *  identities.
         *
         *  The identity value *MUST NOT* be artificially limited or truncated
         *  here.
index 4b13e2eac0ab69e50332c5f9e62a52d8e88bb4b3..1d71573a9a6f8e91f2f58efa8cdfdfe0042828c1 100644 (file)
@@ -536,7 +536,7 @@ static eap_tls_status_t eap_tls_session_status(request_t *request, eap_session_t
 
 /** Check that this EAP-TLS packet is correct and the progression of EAP-TLS packets is sane
  *
- * @note In the received packet, No data will be present incase of ACK or NAK
+ * @note In the received packet, No data will be present in case of ACK or NAK
  *     in this case the packet->data pointer will be NULL.
  *
  * @param[in] request          the current subrequest.
@@ -936,7 +936,7 @@ static inline CC_HINT(always_inline) unlang_action_t eap_tls_handshake_push(requ
  * Here we implement a basic state machine.  The state machine is implicit and
  * is driven by the state of the TLS session and the flags sent.
  * INCOMING DATA:
- *   1. EAP-TLS should get the compelete TLS data from the peer.
+ *   1. EAP-TLS should get the complete TLS data from the peer.
  *   2. Store that data in a data structure with any other required info
  *   3. Hand this data structure to the TLS module.
  *   4. TLS module will perform its operations on the data and hands back to EAP-TLS
index 89fa6a6ee22e0be64aeddf267b31ab3d1026f47f..5ddd1f4992dbee561d8ff327dcb300a12e484a69 100644 (file)
@@ -401,7 +401,7 @@ fr_pair_t *_tmpl_dcursor_init(int *err, TALLOC_CTX *ctx, tmpl_dcursor_ctx_t *cc,
        if (err) *err = 0;
 
        /*
-        *      Navigate to the correct request context (parent, outer, curent, etc...)
+        *      Navigate to the correct request context (parent, outer, current, etc...)
         */
        if (tmpl_request_ptr(&request, tmpl_request(vpt)) < 0) {
                if (err) *err = -3;
index ebc229720f7dcb037f63ce05e8ba48b70ebd50a1..42faac73a50a4a94dc92ec433c3e7bf48cb89a37 100644 (file)
@@ -37,7 +37,7 @@ typedef enum {
                                                        ///< from uctx.ptr.
 } tmpl_escape_uctx_type_t;
 
-/** Funtion to allocate a user context for escaping
+/** Function to allocate a user context for escaping
  *
  * @param[in] request          Request that the tmpl is being evaluated for.
  * @param[in] uctx             The user context that was passed via the tmpl_escape_t.
index c6092043e0ff84a4446bcbaa1aba198a20402fcd..9ebf6c194966a4fac2e3dfd85445ced1d4abdf5a 100644 (file)
@@ -812,7 +812,7 @@ void tmpl_set_dict_def(tmpl_t *vpt, fr_dict_t const *dict)
 
 /** Set escape parameters for the tmpl output
  *
- * @parma[in] vpt      to alter.
+ * @param[in] vpt      to alter.
  * @param[in] escape   to set.
  */
 void tmpl_set_escape(tmpl_t *vpt, tmpl_escape_t const *escape)
index 69802f0ca555d64d90bf3334fd4952a653621a38..4393470f1fc10a2c72e494fd86b6da5b0e2319af 100644 (file)
  */
 #define TEST_LOG_MAXSIZE ((TEST_DUMP_MAXSIZE * 3) + TEST_MSG_MAXSIZE + 3)
 
-/* Common test initialiation/clean-up
+/* Common test initialisation/clean-up
  *
  * In some test suites, it may be needed to perform some sort of the same
  * initialization and/or clean-up in all the tests.
@@ -1319,7 +1319,7 @@ acutest_run_(const struct acutest_test_* test, int index, int master_index)
         char msg[TEST_LOG_MAXSIZE];
         size_t count;
 
-        /* Create pipe for receiveing log entries */
+        /* Create pipe for receiving log entries */
         if (!CreatePipe(&hRead, &hWrite, &lpPipeAttribute, 0)) {
             fprintf(stderr, "Error creating pipe\n");
             acutest_exit_(2);
index 045c976c042c62456e145f07843d3e807be61c41..e2c0ac3237af0cd19e9697b24f1bc97242108151 100644 (file)
@@ -5862,7 +5862,7 @@ int fr_value_box_list_concat_in_place(TALLOC_CTX *ctx,
 
 /** Escape a single value box in place
  *
- * @note Applies recurssively to the children of group boxes.
+ * @note Applies recursively to the children of group boxes.
  *
  * @param[in] vb               to escape.
  * @param[in] escape           function to apply to the value box.
@@ -5886,7 +5886,7 @@ int fr_value_box_escape_in_place(fr_value_box_t *vb, fr_value_box_escape_t escap
 
 /** Escape a list of value boxes in place
  *
- * @note Applies recurssively to the children of group boxes.
+ * @note Applies recursively to the children of group boxes.
  *
  * @note on error, the list may be left in an inconsistent/partially escaped state.
  *
index 701ae7ebc7a3f302f67f080f49980339dc1607c6..f6764067b4cfd5c9bdf85ed8d945dacd8b80f21c 100644 (file)
@@ -618,7 +618,7 @@ fr_value_box_t *_fr_value_box_alloc(NDEBUG_LOCATION_ARGS TALLOC_CTX *ctx, fr_typ
 
 /** @name Escape functions
  *
- * Apply a tranformation to a value box or list of value boxes.
+ * Apply a transformation to a value box or list of value boxes.
  *
  * @{
  */
index 7f1f87f73f7703dd0e1d761f28e0c767d1a18368..5f40300bfbc3e8f13219faaa85d6a3a8e2f5dcd8 100644 (file)
@@ -1102,7 +1102,7 @@ static int parse_sub_section(rlm_rest_t *inst, CONF_SECTION *parent, conf_parser
 
        /*
         *  Custom hackery to figure out if data was set we can't do it any other way because we can't
-        *  parse the tmpl_t execept within a call_env.
+        *  parse the tmpl_t except within a call_env.
         *
         *  We have custom body data so we set REST_HTTP_BODY_CUSTOM, but also need to try and
         *  figure out what content-type to use. So if they've used the canonical form we