]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fix typos 570/head
authorDimitris Apostolou <dimitris.apostolou@icloud.com>
Sat, 13 Nov 2021 14:56:15 +0000 (16:56 +0200)
committerDimitris Apostolou <dimitris.apostolou@icloud.com>
Sat, 13 Nov 2021 14:56:15 +0000 (16:56 +0200)
57 files changed:
README-Travis.md
aclocal.m4
configure
dnscrypt/dnscrypt.c
dnscrypt/dnscrypt.h
dnstap/dtstream.c
doc/unbound.conf.5.in
doc/unbound.doxygen
edns-subnet/edns-subnet.h
edns-subnet/subnetmod.c
ipsecmod/ipsecmod.c
ipsecmod/ipsecmod.h
iterator/iterator.c
libunbound/python/doc/examples/example4.rst
libunbound/python/libunbound.i
libunbound/unbound-event.h
libunbound/unbound.h
libunbound/worker.h
pythonmod/doc/examples/example5.rst
pythonmod/doc/modules/struct.rst
pythonmod/doc/usecase.rst
pythonmod/examples/edns.py
pythonmod/interface.i
services/authzone.c
services/cache/rrset.h
services/listen_dnsport.c
services/localzone.c
services/localzone.h
services/mesh.c
services/outbound_list.h
services/outside_network.c
services/rpz.c
services/rpz.h
sldns/parseutil.h
sldns/str2wire.c
sldns/wire2str.h
testcode/dohclient.c
testdata/10-unbound-anchor.tdir/keys/unbound-control-setup
testdata/auth_xfr_ixfrmismatch.rpl
testdata/fwd.rpl
testdata/fwd_any.rpl
testdata/http_user_agent.tdir/http_user_agent.test
testdata/iter_primenoglue.rpl
testdata/iter_scrub_dname_rev.rpl
testdata/iter_scrub_dname_sec.rpl
testdata/root_anchor.tdir/root_anchor.test
testdata/svcb.tdir/svcb.test
testdata/ttl_msg.rpl
testdata/val_keyprefetch_verify.rpl
testdata/val_nodata_failwc.rpl
testdata/val_nsec3_optout_cache.rpl
util/config_file.h
util/module.h
util/netevent.h
util/ub_event.c
validator/validator.c
validator/validator.h

index 3ce22cc20f597fd055c0c9f1c749158ea9aa37c0..ca64456124afe1f73663fd64ccd340c74c3d3cd6 100644 (file)
@@ -241,7 +241,7 @@ If you are working from a developer machine you probably already have the necess
 
 The fourth step builds OpenSSL and Expat. OpenSSL and Expat are built for iOS using the scripts `contrib/ios/install_openssl.sh` and `contrib/ios/install_expat.sh`. The scripts download, configure and install the latest release version of the libraries. The libraries are configured with `--prefix="$IOS_PREFIX"` so the headers are placed in `$IOS_PREFIX/include` directory, and the libraries are placed in the `$IOS_PREFIX/lib` directory.
 
-`IOS_PREFIX` is the value `$HOME/$IOS_SDK-$IOS_CPU`. The scheme handles both iOS SDKs and cpu architectures so the pair recieves a unique installation directory. The libraries will be installed in `$HOME/iPhoneOS-armv7s`, `$HOME/iPhoneOS-arm64`, `$HOME/iPhoneSimulator-i386`, etc. For Autotools projects, the appropriate `PKG_CONFIG_PATH` is exported.
+`IOS_PREFIX` is the value `$HOME/$IOS_SDK-$IOS_CPU`. The scheme handles both iOS SDKs and cpu architectures so the pair receives a unique installation directory. The libraries will be installed in `$HOME/iPhoneOS-armv7s`, `$HOME/iPhoneOS-arm64`, `$HOME/iPhoneSimulator-i386`, etc. For Autotools projects, the appropriate `PKG_CONFIG_PATH` is exported.
 
 `PKG_CONFIG_PATH` is an important variable. It is the userland equivalent to sysroot, and allows Autotools to find non-system headers and libraries for an architecture. Typical `PKG_CONFIG_PATH` are `$HOME/iPhoneOS-armv7s/lib/pkgconfig` and `$HOME/iPhoneOS-arm64/lib/pkgconfig`.
 
index bf3c57e2fd9fcf0bacaea386ad64ccd74253903c..d62b482d030f461661f4ad7897ada7d9d99996d6 100644 (file)
@@ -622,7 +622,7 @@ m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
 # LT_OUTPUT
 # ---------
 # This macro allows early generation of the libtool script (before
-# AC_OUTPUT is called), incase it is used in configure for compilation
+# AC_OUTPUT is called), in case it is used in configure for compilation
 # tests.
 AC_DEFUN([LT_OUTPUT],
 [: ${CONFIG_LT=./config.lt}
@@ -659,7 +659,7 @@ configured by $[0], generated by m4_PACKAGE_STRING.
 
 Copyright (C) 2011 Free Software Foundation, Inc.
 This config.lt script is free software; the Free Software Foundation
-gives unlimited permision to copy, distribute and modify it."
+gives unlimited permission to copy, distribute and modify it."
 
 while test 0 != $[#]
 do
@@ -2876,7 +2876,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
   # Add ABI-specific directories to the system library path.
   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
-  # Ideally, we could use ldconfig to report *all* directores which are
+  # Ideally, we could use ldconfig to report *all* directories which are
   # searched for libraries, however this is still not possible.  Aside from not
   # being certain /sbin/ldconfig is available, command
   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
@@ -9132,7 +9132,7 @@ dnl Check to see whether a particular set of modules exists. Similar to
 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
 dnl
 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
-dnl only at the first occurence in configure.ac, so if the first place
+dnl only at the first occurrence in configure.ac, so if the first place
 dnl it's called might be skipped (such as if it is within an "if", you
 dnl have to call PKG_CHECK_EXISTS manually
 AC_DEFUN([PKG_CHECK_EXISTS],
index ec8a25499a32210c72aa0b73c62b659302710fcf..9131b348af3b2d4190e15a9e2c37dcdd96e6c23f 100755 (executable)
--- a/configure
+++ b/configure
@@ -13600,7 +13600,7 @@ fi
   # Add ABI-specific directories to the system library path.
   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
 
-  # Ideally, we could use ldconfig to report *all* directores which are
+  # Ideally, we could use ldconfig to report *all* directories which are
   # searched for libraries, however this is still not possible.  Aside from not
   # being certain /sbin/ldconfig is available, command
   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
@@ -15324,7 +15324,7 @@ if test "$ac_res" != no; then :
 fi
 
 
-# check wether strptime also works
+# check whether strptime also works
 
 # check some functions of the OS before linking libs (while still runnable).
 for ac_header in unistd.h
@@ -18777,7 +18777,7 @@ $as_echo "#define CLIENT_SUBNET 1" >>confdefs.h
        ;;
 esac
 
-# check wether gost also works
+# check whether gost also works
 
 # Check whether --enable-gost was given.
 if test "${enable_gost+set}" = set; then :
index 9b324ae69052c389b64cc5b05f08098a9a61c5ec..4902447fda01526e390578594167ddaddcde723a 100644 (file)
@@ -435,7 +435,7 @@ dnscrypt_hrtime(void)
 
 /**
  * Add the server nonce part to once.
- * The nonce is made half of client nonce and the seconf half of the server
+ * The nonce is made half of client nonce and the second half of the server
  * nonce, both of them of size crypto_box_HALF_NONCEBYTES.
  * \param[in] nonce: a uint8_t* of size crypto_box_NONCEBYTES
  */
@@ -674,7 +674,7 @@ dnsc_find_cert(struct dnsc_env* dnscenv, struct sldns_buffer* buffer)
 /**
  * Insert local-zone and local-data into configuration.
  * In order to be able to serve certs over TXT, we can reuse the local-zone and
- * local-data config option. The zone and qname are infered from the
+ * local-data config option. The zone and qname are inferred from the
  * provider_name and the content of the TXT record from the certificate content.
  * returns the number of certificate TXT record that were loaded.
  * < 0 in case of error.
index 666f54e62aa46c34a28ba2986db70fc887c0b122..b0da9b732681fce5a815ca445cd073475d17e931 100644 (file)
@@ -114,7 +114,7 @@ void dnsc_delete(struct dnsc_env *env);
 
 /**
  * handle a crypted dnscrypt request.
- * Determine wether or not a query is coming over the dnscrypt listener and
+ * Determine whether or not a query is coming over the dnscrypt listener and
  * attempt to uncurve it or detect if it is a certificate query.
  * return 0 in case of failure.
  */
@@ -122,7 +122,7 @@ int dnsc_handle_curved_request(struct dnsc_env* dnscenv,
                                struct comm_reply* repinfo);
 /**
  * handle an unencrypted dnscrypt request.
- * Determine wether or not a query is going over the dnscrypt channel and
+ * Determine whether or not a query is going over the dnscrypt channel and
  * attempt to curve it unless it was not crypted like when  it is a
  * certificate query.
  * \return 0 in case of failure.
index f1ace3c340236e25f86b53eb7ad437c1175effec..14aacaef567b7bad95fe60ee8c468737d19a46f8 100644 (file)
@@ -251,7 +251,7 @@ dt_msg_queue_submit(struct dt_msg_queue* mq, void* buf, size_t len)
        entry->buf = buf;
        entry->len = len;
 
-       /* aqcuire lock */
+       /* acquire lock */
        lock_basic_lock(&mq->lock);
        /* if list was empty, start timer for (eventual) wakeup */
        if(mq->first == NULL)
@@ -930,7 +930,7 @@ static int dtio_write_more_of_data(struct dt_io_thread* dtio)
        return 1;
 }
 
-/** write more of the current messsage. false if incomplete, true if
+/** write more of the current message. false if incomplete, true if
  * the message is done */
 static int dtio_write_more(struct dt_io_thread* dtio)
 {
@@ -1181,7 +1181,7 @@ static int dtio_read_accept_frame(struct dt_io_thread* dtio)
                                        goto close_connection;
                                return 1;
                        } else {
-                               /* unknow content type */
+                               /* unknown content type */
                                verbose(VERB_ALGO, "dnstap: ACCEPT frame "
                                        "contains unknown content type, "
                                        "closing connection");
index a1a2c3eff8317d169704230a58fc8f31b42e302e..3ad8be23ccaaf6e6aa8630149ddc9b8322e11d11 100644 (file)
@@ -2415,7 +2415,7 @@ This option defaults to "default".
 .P
 The following
 .B cachedb
-otions are specific to the redis backend.
+options are specific to the redis backend.
 .TP
 .B redis-server-host: \fI<server address or name>\fR
 The IP (either v6 or v4) address or domain name of the Redis server.
index 823e092536e48e111f7fd4b50b39971641773267..272d6b4cb9491b1f567867f939f39f7dd81ee832 100644 (file)
@@ -279,10 +279,10 @@ TYPEDEF_HIDES_STRUCT   = NO
 # For small to medium size projects (<1000 input files) the default value is
 # probably good enough. For larger projects a too small cache size can cause
 # doxygen to be busy swapping symbols to and from disk most of the time
-# causing a significant performance penality.
+# causing a significant performance penalty.
 # If the system has enough physical memory increasing the cache will improve the
 # performance by keeping more symbols in memory. Note that the value works on
-# a logarithmic scale so increasing the size by one will rougly double the
+# a logarithmic scale so increasing the size by one will roughly double the
 # memory usage. The cache size is given by this formula:
 # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
 # corresponding to a cache size of 2^16 = 65536 symbols
index 4b306080ad6d57d864813d772506fa42e976bb26..6ab541de94879f296d48ba598a0ec7ea8e8315ed 100644 (file)
@@ -59,7 +59,7 @@ struct ecs_data {
 
 /** 
  * copy the first n BITS from src to dst iff both src and dst 
- * are large enough, return 0 on succes
+ * are large enough, return 0 on success
  */
 int
 copy_clear(uint8_t* dst, size_t dstlen, uint8_t* src, size_t srclen, size_t n);
index ade40c66e85fae7f74ca0f5190e8e85f06c298da..81f0bf3ade55a6b31c5b19f7b2744f97a95b065a 100644 (file)
@@ -497,7 +497,7 @@ eval_response(struct module_qstate *qstate, int id, struct subnet_qstate *sq)
        if (!s_in->subnet_validdata) {
                /* The authority indicated no support for edns subnet. As a
                 * consequence the answer ended up in the regular cache. It
-                * is still usefull to put it in the edns subnet cache for
+                * is still useful to put it in the edns subnet cache for
                 * when a client explicitly asks for subnet specific answer. */
                verbose(VERB_QUERY, "subnetcache: Authority indicates no support");
                if(!sq->started_no_cache_store) {
index e42af6f497ea5d30a5eee962787acfd7b393613b..577f7112e194011f98f5efe4fc69f9bf9654834d 100644 (file)
@@ -37,7 +37,7 @@
  * \file
  *
  * This file contains a module that facilitates opportunistic IPsec. It does so
- * by also quering for the IPSECKEY for A/AAAA queries and calling a
+ * by also querying for the IPSECKEY for A/AAAA queries and calling a
  * configurable hook (eg. signaling an IKE daemon) before replying.
  */
 
index e00816d4bf998db25f21b07e350b286861d0ebf8..272f473c2eac4f1b916f6c0db39c2226a243234b 100644 (file)
@@ -37,7 +37,7 @@
  * \file
  *
  * This file contains a module that facilitates opportunistic IPsec. It does so
- * by also quering for the IPSECKEY for A/AAAA queries and calling a
+ * by also querying for the IPSECKEY for A/AAAA queries and calling a
  * configurable hook (eg. signaling an IKE daemon) before replying.
  */
 
index 45e9f7bf424c3b59c063aecf4e8cff0ae06dc3a3..72003b4ba078ffaa29360ef7cd0fbaf94a9c68d2 100644 (file)
@@ -3242,7 +3242,7 @@ prime_supers(struct module_qstate* qstate, int id, struct module_qstate* forq)
        /* Convert our response to a delegation point */
        dp = delegpt_from_message(qstate->return_msg, forq->region);
        if(!dp) {
-               /* if there is no convertable delegation point, then 
+               /* if there is no convertible delegation point, then 
                 * the ANSWER type was (presumably) a negative answer. */
                verbose(VERB_ALGO, "prime response was not a positive "
                        "ANSWER; failing");
index 3b43eb85f93922bc46267a812caf1b2280f4446c..a95be52fb465139fb3b9349a8284697d03f71861 100644 (file)
@@ -31,6 +31,6 @@ Source code
         else:
             print "Result is insecure"
 
-More detailed informations can be seen in libUnbound DNSSEC tutorial `here`_.
+More detailed information can be seen in libUnbound DNSSEC tutorial `here`_.
 
 .. _here: http://www.unbound.net/documentation/libunbound-tutorial-6.html
index 763879e80869a057a200a7a6f49d21774c4134d0..c9549bf9008dd5a22790983f3de1670e6966fa91 100644 (file)
@@ -363,7 +363,7 @@ Result: ['74.125.43.147', '74.125.43.99', '74.125.43.103', '74.125.43.104']
                     ctx.debuglevel(3)
                     ctx.debugout(fw)
 
-                  Another option is to print the debug informations to stderr output
+                  Another option is to print the debug information to stderr output
 
                   ::
 
index 4d694b8b4c5d8eb0d4ea7e0b6e8d5b0163ed01b6..a5d5c038b68fa25013c673349f24b67f456619e9 100644 (file)
@@ -41,7 +41,7 @@
  *
  * Use ub_ctx_create_event_ub_base() to create an unbound context that uses
  * the user provided event base API.  Then, use the ub_resolve_event call
- * to add DNS resolve queries to the context.  Those then run whith the
+ * to add DNS resolve queries to the context.  Those then run with the
  * provided event_base, and when they are done you get a function callback.
  *
  * This method does not fork another process or create a thread, the effort
index 945c17a8fb5b77d0a5c40092de6991c3ba070784..2a12511bde3937957458ede2c1ecd53bc73cf537 100644 (file)
@@ -224,7 +224,7 @@ struct ub_result {
  * It is called with
  *     void* my_arg: your pointer to a (struct of) data of your choice, 
  *             or NULL.
- *     int err: if 0 all is OK, otherwise an error occured and no results
+ *     int err: if 0 all is OK, otherwise an error occurred and no results
  *          are forthcoming.
  *     struct result: pointer to more detailed result structure.
  *             This structure is allocated on the heap and needs to be
index f50369f8772df4dcf7d18d56f83779c49cc09091..974b66a30e849aea512e8e5152587a2b64145f36 100644 (file)
@@ -66,7 +66,7 @@ struct query_info;
  * @param ssl_upstream: use SSL for upstream queries.
  * @param tls_auth_name: if ssl_upstream, use this name with TLS
  *     authentication.
- * @param q: wich query state to reactivate upon return.
+ * @param q: which query state to reactivate upon return.
  * @return: false on failure (memory or socket related). no query was
  *      sent.
  */
@@ -118,7 +118,7 @@ void worker_sighandler(int sig, void* arg);
  * @param ssl_upstream: use SSL for upstream queries.
  * @param tls_auth_name: if ssl_upstream, use this name with TLS
  *     authentication.
- * @param q: wich query state to reactivate upon return.
+ * @param q: which query state to reactivate upon return.
  * @return: false on failure (memory or socket related). no query was
  *      sent.
  */
index 938d8941bc9cb084b70f70cceb922d778f98bfbf..8b9d145d142986f6d39a2d2fc2fa4adfcb337882 100644 (file)
@@ -90,7 +90,7 @@ We can also remove an EDNS option code from an EDNS option list.
         log_info("python: Option code {} was not found in the "
                  "list.".format(code))
 
-.. note:: All occurences of the EDNS option code will be removed from the list:
+.. note:: All occurrences of the EDNS option code will be removed from the list:
 
 
 Controlling other modules' cache behavior
index de7c084e9008ca008a7a23595fe4f9ddb66df98e..310cf552456e607b310698940a2d6142e282e8bb 100644 (file)
@@ -12,7 +12,7 @@ module_qstate
 
     .. attribute:: qinfo
 
-        (:class:`query_info`) Informations about query being answered. Name, RR type, RR class.
+        (:class:`query_info`) Information about query being answered. Name, RR type, RR class.
 
     .. attribute:: query_flags
 
@@ -256,7 +256,7 @@ dns_msg
 
    .. attribute:: qinfo
    
-      (:class:`query_info`) Informations about query.
+      (:class:`query_info`) Information about query.
    
    .. attribute:: rep
    
@@ -440,7 +440,7 @@ DNSMessage
       
    .. method:: set_return_msg(self, qstate)
    
-      This method fills qstate return message according to the given informations
+      This method fills qstate return message according to the given information. 
                It takes lists of RRs in each section of answer, created necessary RRsets in wire format and store the result in :attr:`qstate.return_msg`.
                Returns 1 if OK.
    
index 5845061b02b34f9ec0e1fd40c8cf8d6d0f1de853..27985e0394d5224df8eb1fb0d0916d6500c22dc7 100644 (file)
@@ -21,7 +21,7 @@ almost every mail server supports DNS based blacklisting.
 
 DNS based Wake-On-Lan
 ---------------------
-Controled by secured queries secured with private key.
+Controlled by secured queries secured with private key.
 
 Dynamic translation service
 ---------------------------
index ca1bb8da710d6bab3c306eae55e51bf326fcb499..ddcccc51c9bdf90b9bd2bd80977ca85ecd334c33 100644 (file)
@@ -55,7 +55,7 @@
 #       Return True on success, False on failure.
 #
 #   edns_opt_list_remove(edns_opt_list, code):
-#       Remove all occurences of the given EDNS option code from the
+#       Remove all occurrences of the given EDNS option code from the
 #           edns_opt_list.
 #       Return True when at least one EDNS option was removed, False otherwise.
 #
index 5825409b13f8d7f27d4853dddff50382a9f8c902..6508418936da6ad4767b835ebd8f8dc8bdd53c08 100644 (file)
@@ -1341,7 +1341,7 @@ int set_return_msg(struct module_qstate* qstate,
 %pythoncode %{
     class DNSMessage:
         def __init__(self, rr_name, rr_type, rr_class = RR_CLASS_IN, query_flags = 0, default_ttl = 0):
-            """Query flags is a combination of PKT_xx contants"""
+            """Query flags is a combination of PKT_xx constants"""
             self.rr_name = rr_name
             self.rr_type = rr_type
             self.rr_class = rr_class
index 696fcbd8566c998d13e4c3172bf75eba8aa6a97b..b07dcbcc7095244ed431e8e2b8c7dc7ba72b8916 100644 (file)
@@ -84,7 +84,7 @@
 #define AUTH_PROBE_TIMEOUT_STOP 1000 /* msec */
 /* auth transfer timeout for TCP connections, in msec */
 #define AUTH_TRANSFER_TIMEOUT 10000 /* msec */
-/* auth transfer max backoff for failed tranfers and probes */
+/* auth transfer max backoff for failed transfers and probes */
 #define AUTH_TRANSFER_MAX_BACKOFF 86400 /* sec */
 /* auth http port number */
 #define AUTH_HTTP_PORT 80
@@ -243,7 +243,7 @@ msg_add_rrset_an(struct auth_zone* z, struct regional* region,
        return 1;
 }
 
-/** add rrset to authority section (no additonal section rrsets yet) */
+/** add rrset to authority section (no additional section rrsets yet) */
 static int
 msg_add_rrset_ns(struct auth_zone* z, struct regional* region,
        struct dns_msg* msg, struct auth_data* node, struct auth_rrset* rrset)
@@ -6491,7 +6491,7 @@ auth_xfer_probe_udp_callback(struct comm_point* c, void* arg, int err,
        comm_point_delete(xfr->task_probe->cp);
        xfr->task_probe->cp = NULL;
 
-       /* if the result was not a successfull probe, we need
+       /* if the result was not a successful probe, we need
         * to send the next one */
        xfr_probe_nextmaster(xfr);
        xfr_probe_send_or_end(xfr, env);
index 35a0d732b0481b4d6e5325d4e61ed60c6ca6eeea..7c36d4032ebc9ec8700b0a5a959606d8dd72a3bb 100644 (file)
@@ -120,7 +120,7 @@ void rrset_cache_touch(struct rrset_cache* r, struct ub_packed_rrset_key* key,
  *     the new rrset. The reference may be changed if the cached rrset is
  *     superior.
  *     Before calling the rrset is presumed newly allocated and changeable.
- *     Afer calling you do not hold a lock, and the rrset is inserted in
+ *     After calling you do not hold a lock, and the rrset is inserted in
  *     the hashtable so you need a lock to change it.
  * @param alloc: how to allocate (and deallocate) the special rrset key.
  * @param timenow: current time (to see if ttl in cache is expired).
@@ -143,7 +143,7 @@ int rrset_cache_update(struct rrset_cache* r, struct rrset_ref* ref,
  * @param rrset: which rrset to cache as wildcard. This rrset is left 
  *     untouched.
  * @param ce: the closest encloser, will be uses to generate the wildcard dname.
- * @param ce_len: the closest encloser lenght.
+ * @param ce_len: the closest encloser length.
  * @param alloc: how to allocate (and deallocate) the special rrset key.
  * @param timenow: current time (to see if ttl in cache is expired).
  */
index 1bb855c16b9bd412e68bb96110e826435c7f21d6..bedb0d5bec6032614104f0bed30b15f71c0b2d59 100644 (file)
@@ -2618,7 +2618,7 @@ static int http2_req_begin_headers_cb(nghttp2_session* session,
        int ret;
        if(frame->hd.type != NGHTTP2_HEADERS ||
                frame->headers.cat != NGHTTP2_HCAT_REQUEST) {
-               /* only interrested in request headers */
+               /* only interested in request headers */
                return 0;
        }
        if(!(h2_stream = http2_stream_create(frame->hd.stream_id))) {
@@ -2746,7 +2746,7 @@ static int http2_req_header_cb(nghttp2_session* session,
         * the HEADER */
        if(frame->hd.type != NGHTTP2_HEADERS ||
                frame->headers.cat != NGHTTP2_HCAT_REQUEST) {
-               /* only interrested in request headers */
+               /* only interested in request headers */
                return 0;
        }
        if(!(h2_stream = nghttp2_session_get_stream_user_data(session,
@@ -2842,7 +2842,7 @@ static int http2_req_header_cb(nghttp2_session* session,
                        h2_stream->query_too_large = 1;
                        return 0;
                }
-               /* guaranteed to only contian digits and be null terminated */
+               /* guaranteed to only contain digits and be null terminated */
                h2_stream->content_length = atoi((const char*)value);
                if(h2_stream->content_length >
                        h2_session->c->http2_stream_max_qbuffer_size) {
@@ -2882,7 +2882,7 @@ static int http2_req_data_chunk_recv_cb(nghttp2_session* ATTR_UNUSED(session),
                        /* setting this to msg-buffer-size can result in a lot
                         * of memory consuption. Most queries should fit in a
                         * single DATA frame, and most POST queries will
-                        * containt content-length which does not impose this
+                        * contain content-length which does not impose this
                         * limit. */
                        qlen = len;
                }
index 17dd46813839b32b2252756a26f6d01db784f887..bbd2326baa925e5f161121ab37d52f8d55ce264c 100644 (file)
@@ -465,7 +465,7 @@ lz_find_create_node(struct local_zone* z, uint8_t* nm, size_t nmlen,
 
 /* Mark the SOA record for the zone. This only marks the SOA rrset; the data
  * for the RR is entered later on local_zone_enter_rr() as with the other
- * records. An artifical soa_negative record with a modified TTL (minimum of
+ * records. An artificial soa_negative record with a modified TTL (minimum of
  * the TTL and the SOA.MINIMUM) is also created and marked for usage with
  * negative answers and to avoid allocations during those answers. */
 static int
@@ -1526,7 +1526,7 @@ local_data_answer(struct local_zone* z, struct module_env* env,
                        /* write qname */
                        memmove(d->rr_data[0] + sizeof(uint16_t), qinfo->qname,
                                qinfo->qname_len - 1);
-                       /* write cname target wilcard wildcard label */
+                       /* write cname target wildcard label */
                        memmove(d->rr_data[0] + sizeof(uint16_t) +
                                qinfo->qname_len - 1, ctarget + 2,
                                ctargetlen - 2);
index 9a06a7f84f49cc36b55961128376211e8a81e69a..19534f7509ed37ed8883a7f844d2aa66cb566457 100644 (file)
@@ -257,7 +257,7 @@ void local_zone_delete(struct local_zone* z);
  * @param dclass: class to lookup.
  * @param dtype: type to lookup, if type DS a zone higher is used for zonecuts.
  * @param taglist: taglist to lookup.
- * @param taglen: lenth of taglist.
+ * @param taglen: length of taglist.
  * @param ignoretags: lookup zone by name and class, regardless the
  * local-zone's tags.
  * @return closest local_zone or NULL if no covering zone is found.
index 200531903503237f76a3957e6f3958d42bc09a0f..6a1609e7fd02bcf8db3c1c2081d764590e65f34e 100644 (file)
@@ -1367,7 +1367,7 @@ void mesh_query_done(struct mesh_state* mstate)
        }
        if(mstate->s.return_rcode == LDNS_RCODE_SERVFAIL ||
                (rep && FLAGS_GET_RCODE(rep->flags) == LDNS_RCODE_SERVFAIL)) {
-               /* we are SERVFAILing; check for expired asnwer here */
+               /* we are SERVFAILing; check for expired answer here */
                mesh_serve_expired_callback(mstate);
                if((mstate->reply_list || mstate->cb_list)
                && mstate->s.env->cfg->log_servfail
@@ -1584,7 +1584,7 @@ int mesh_state_add_reply(struct mesh_state* s, struct edns_data* edns,
                        return 0;
 
                /* the rrset is not packed, like in the cache, but it is
-                * individualy allocated with an allocator from localzone. */
+                * individually allocated with an allocator from localzone. */
                d = regional_alloc_zero(s->s.region, sizeof(*d));
                if(!d)
                        return 0;
index ad59e42d192953dccdb7b26012110b02a379214e..73c137d50993cef05289b3441de5ad86238d1d1b 100644 (file)
@@ -79,7 +79,7 @@ void outbound_list_init(struct outbound_list* list);
  * Clear the user owner outbound list structure.
  * Deletes serviced queries.
  * @param list: the list structure. It is cleared, but the list struct itself
- *     is callers responsability to delete.
+ *     is callers responsibility to delete.
  */
 void outbound_list_clear(struct outbound_list* list);
 
index 666e46f989c68bf24602f1f054ee5643991298ce..e1ab5aa5d2317c394218c8ba751dc7e0086b7b96 100644 (file)
@@ -1935,7 +1935,7 @@ select_id(struct outside_network* outnet, struct pending* pend,
                LDNS_ID_SET(sldns_buffer_begin(packet), pend->id);
                id_tries++;
                if(id_tries == MAX_ID_RETRY) {
-                       pend->id=99999; /* non existant ID */
+                       pend->id=99999; /* non existent ID */
                        log_err("failed to generate unique ID, drop msg");
                        return 0;
                }
index 1e559640597c37cd2f88f8731b997052df3f07f7..d408f9383d24434c1d69b830d14722f8bcffe47b 100644 (file)
@@ -1095,7 +1095,7 @@ rpz_insert_rr(struct rpz* r, uint8_t* azname, size_t aznamelen, uint8_t* dname,
  * @param qname: qname
  * @param qname_len: length of qname
  * @param qclass: qclass
- * @param only_exact: if 1 only excact (non wildcard) matches are returned
+ * @param only_exact: if 1 only exact (non wildcard) matches are returned
  * @param wr: get write lock for local-zone if 1, read lock if 0
  * @param zones_keep_lock: if set do not release the r->local_zones lock, this
  *       makes the caller of this function responsible for releasing the lock.
@@ -1191,7 +1191,7 @@ rpz_find_zone(struct local_zones* zones, uint8_t* qname, size_t qname_len, uint1
  * Remove RR from RPZ's local-data
  * @param z: local-zone for RPZ, holding write lock
  * @param policydname: dname of RR to remove
- * @param policydnamelen: lenth of policydname
+ * @param policydnamelen: length of policydname
  * @param rr_type: RR type of RR to remove
  * @param rdata: rdata of RR to remove
  * @param rdatalen: length of rdata
index 642548bdd160287843c92d21f7ba48d2c819c672..691475743606457abfed4a461e8e6bb50cd0809b 100644 (file)
@@ -172,7 +172,7 @@ void rpz_remove_rr(struct rpz* r, size_t aznamelen, uint8_t* dname,
  * @param temp: scratchpad
  * @param repinfo: reply info
  * @param taglist: taglist to lookup.
- * @param taglen: lenth of taglist.
+ * @param taglen: length of taglist.
  * @param stats: worker stats struct
  * @return: 1 if client answer is ready, 0 to continue resolving
  */
@@ -234,7 +234,7 @@ enum rpz_action
 respip_action_to_rpz_action(enum respip_action a);
 
 /**
- * Prepare RPZ after procesing feed content.
+ * Prepare RPZ after processing feed content.
  * @param r: RPZ to use
  */
 void rpz_finish_config(struct rpz* r);
index 74d7c727571aa6a5c13659d97a983fcdd8420c6c..208fd2fbca8b4ff22fe175c8b04f5e2dd02dbe58 100644 (file)
@@ -58,7 +58,7 @@ time_t sldns_mktime_from_utc(const struct tm *tm);
  * The function interprets time as the number of seconds since epoch
  * with respect to now using serial arithmetics (rfc1982).
  * That number of seconds is then converted to broken-out time information.
- * This is especially usefull when converting the inception and expiration
+ * This is especially useful when converting the inception and expiration
  * fields of RRSIG records.
  *
  * \param[in] time number of seconds since epoch (midnight, January 1st, 1970)
index 293abf79a629b71d49e1b713d74e91921cffe3d8..ddaccd1b292dde718ff956040afb24e13254ab43 100644 (file)
@@ -1427,7 +1427,7 @@ sldns_str2wire_svcbparam_parse_next_unescaped_comma(const char *val)
 }
 
 /* The source is already properly unescaped, this double unescaping is purely to allow for
- * comma's in comma seperated alpn lists.
+ * comma's in comma separated alpn lists.
  * 
  * In draft-ietf-dnsop-svcb-https-06 Section 7:
  * To enable simpler parsing, this SvcParamValue MUST NOT contain escape sequences.
index b1ad459e37805d1049a4ea87a1f75603b3e78fae..548c66300d92260c2068dd42f0534b5f9d28f351 100644 (file)
@@ -59,7 +59,7 @@ char* sldns_wire2str_pkt(uint8_t* data, size_t len);
 char* sldns_wire2str_rr(uint8_t* rr, size_t len);
 
 /**
- * Conver wire dname to a string.
+ * Convert wire dname to a string.
  * @param dname: the dname in uncompressed wireformat.
  * @param dname_len: length of the dname.
  * @return string or NULL on failure.
index 731aa6e1362acc087eed128d379bd39cf2c56f6c..d35f5a82c6628afbf86b3e3cf18d926af47214ef 100644 (file)
@@ -358,7 +358,7 @@ static int http2_data_chunk_recv_cb(nghttp2_session* ATTR_UNUSED(session),
        }
 
        if(sldns_buffer_remaining(h2_stream->buf) < len) {
-               log_err("received data chunck does not fit into buffer");
+               log_err("received data chunk does not fit into buffer");
                return NGHTTP2_ERR_CALLBACK_FAILURE;
        }
 
@@ -531,7 +531,7 @@ run(struct http2_session* h2_session, int port, int no_tls, int count, char** q)
 
        h2_session->block_select = 1;
 
-       /* hande query */
+       /* handle query */
        for(i=0; i<count; i+=3) {
                buf = make_query(q[i], q[i+1], q[i+2]);
                submit_query(h2_session, buf);
index 2492f47b4b5f39552b8e57334564873ae0e3870a..ff205be1963fff037918b21be9b1efe51806c3aa 100755 (executable)
@@ -81,7 +81,7 @@ while test $# -ne 0; do
        echo "  -d dir  use directory to store keys and certificates."
        echo "          default: $DESTDIR"
        echo "please run this command using the same user id that the "
-       echo "unboun daemon uses, it needs read privileges."
+       echo "unbound daemon uses, it needs read privileges."
        exit 1
        ;;
        esac
index b1d71b474b536b08ff1c1b1e87f89ec74f9739e0..612bca47da5b60c543a4767db6387901e157b530 100644 (file)
@@ -182,7 +182,7 @@ example.com. IN SOA ns.example.com. hostmaster.example.com. 2 3600 900 86400 360
 example.com. IN SOA ns.example.com. hostmaster.example.com. 1 3600 900 86400 3600
 www.example.com. IN A  1.2.3.4
 mail.example.com.      3600    IN      A       1.2.3.6
-; this is the delete of the nonexistant entry
+; this is the delete of the nonexistent entry
 nonexist.example.com.  3600    IN      A       1.2.3.4
 example.com. IN SOA ns.example.com. hostmaster.example.com. 2 3600 900 86400 3600
 EXTRA_PACKET
index 53b6f9ad1ec053754f27836b90588d451e63f521..f9434085659c3cd6c27ecf3d80b9413320881a8d 100644 (file)
@@ -28,7 +28,7 @@ REPLY RD
 SECTION QUESTION
 www.example.com. IN A
 ENTRY_END
-; unneccesary nothing steps.
+; unnecessary nothing steps.
 STEP 2 NOTHING
 STEP 3 NOTHING
 STEP 4 CHECK_ANSWER
index 4284ee79e73aa1be4946f126a508d74b0d584a50..0fa827db64ae34d7893c69e685c05537895da0f8 100644 (file)
@@ -59,7 +59,7 @@ REPLY RD
 SECTION QUESTION
 www.example.com. IN A
 ENTRY_END
-; unneccesary nothing steps.
+; unnecessary nothing steps.
 STEP 20 NOTHING
 STEP 30 CHECK_ANSWER
 ENTRY_BEGIN
index afc0fbbe6f4bac0dac848e16ef06e6e445b70288..dce2d476c8f6c01a39d79b737029ce6e3fb92898 100644 (file)
@@ -81,12 +81,12 @@ echo "> cat logfiles"
 cat petal.log 
 cat unbound.log
 
-# check petal.log for the correct number of occurences.
+# check petal.log for the correct number of occurrences.
 # It should be 2 User-Agents, one being the custom.
-echo "> check User-Agent occurences"
-occurences=`grep "User-Agent:" petal.log | wc -l`
-echo $occurences
-if test $occurences -eq 2; then
+echo "> check User-Agent occurrences"
+occurrences=`grep "User-Agent:" petal.log | wc -l`
+echo $occurrences
+if test $occurrences -eq 2; then
        echo "OK"
 else
        echo "Not OK"
index a75ed82ddce2487452fd4357ea3e50c09885f566..a0be71c78cb65f45416ad0b20c9285916473697a 100644 (file)
@@ -28,7 +28,7 @@ SECTION QUESTION
 SECTION ANSWER
 . IN NS        K.ROOT-SERVERS.NET.
 SECTION ADDITIONAL
-; glue ommitted!
+; glue omitted!
 ;K.ROOT-SERVERS.NET.   IN      A       193.0.14.129
 ENTRY_END
 
index 3e649f9361867d512ef8b91b1a64800e6b159507..9caca66c0efda115fb06f2a25a120a6e6fa0b7cd 100644 (file)
@@ -17,7 +17,7 @@ CONFIG_END
 SCENARIO_BEGIN Test scrub of reversed DNAME and CNAME in answer section
 
 RANGE_BEGIN 0 100
-; all adresses
+; all addresses
 ENTRY_BEGIN
 MATCH opcode qtype qname
 ADJUST copy_id
index 4597cdf982cd21bb67b4de1c1ca9e16c19dbd0ab..34a7b324deacae6010fef693f2de217cc6fbc2f9 100644 (file)
@@ -17,7 +17,7 @@ CONFIG_END
 SCENARIO_BEGIN Test scrub of secure DNAME in answer section
 
 RANGE_BEGIN 0 100
-; all adresses
+; all addresses
 ENTRY_BEGIN
 MATCH opcode qtype qname
 ADJUST copy_id
index 9b8454c7b5857b6b6ee8921476a5c49b4fbe5af5..f75dadf67871613f639666f81222d62886c003d8 100644 (file)
@@ -27,7 +27,7 @@ fi
 
 echo ""
 # test that unbound-anchor, the builtin certificate, works
-# so, force https with -F and the -c is a nonexistant file
+# so, force https with -F and the -c is a nonexistent file
 $PRE/unbound-anchor -a test.cert -c test.pem -v -F
 # check that the test.cert file is OK.
 if $PRE/unbound-host -f test.cert -t SOA -v . 2>&1 | grep "(secure)"; then
index 707287d5cf89f575c1369f82180ae636c9c4c3d4..17330e08fde64a9f26809d56e37fdbf8ff1b468b 100644 (file)
@@ -80,7 +80,7 @@ else
 fi
 
 
-# check all the succes and write them
+# check all the success and write them
 if ! $PRE/readzone svcb.success-cases.zone > svcb.success-cases.zone.out
 then
        echo "Some particular success cases did not succeed to parse"
index efb7ea387a4a2852af4d3673709491de30922097..06726fb58ace19e06511031f851147c89dad007b 100644 (file)
@@ -411,7 +411,7 @@ ENTRY_END
 ; cause a lookup for nx1.example.com bypassing the cache.
 ; with bug; this causes msg ttl for nx1 to be time(NOW)+ttl.
 ; so 15+5 = 20
-; visiable in debug log as "msg ttl is %d"
+; visible in debug log as "msg ttl is %d"
 STEP 40 QUERY
 ENTRY_BEGIN
 REPLY RD
index f2050fb7fe137b3d6c3efbab3e010b5469a48994..9b901a8cbca618163bd1650b8aaa4673ae48499f 100644 (file)
@@ -219,7 +219,7 @@ STEP 20 TIME_PASSES ELAPSE 3400
 
 ; now the key gets prefetched and has to be verified with the anchor,
 ; not with the key itself.
-; this answer is from cache enyway.
+; this answer is from cache anyway.
 STEP 30 QUERY
 ENTRY_BEGIN
 REPLY RD DO
index 76fa8acac3e31c97a0fee011eb545978937bc89c..f9c810951afe2171a343a1e24b3c00f6fbcca1e6 100644 (file)
@@ -42,7 +42,7 @@ SECTION ANSWER
 SECTION AUTHORITY
 nsecwc.nlnetlabs.nl.   3600    IN      SOA     ns.nlnetlabs.nl. ralph.nlnetlabs.nl. 1 14400 3600 604800 3600
 nsecwc.nlnetlabs.nl.   3600    IN      RRSIG   SOA 8 3 3600 20200101000000 20171108114635 565 nsecwc.nlnetlabs.nl. bYibpCDg1LgrnYJgVahgu94LBqLIcNs4iC0SW8LV7pTI1hhuFKbLkO2O ekPdkJAWmu/KTytf8D+cdcK6X/9VS8QCVIF5S0hraHtNezu0f1B5ztg3 7Rqy+uJSucNKoykueAsz2z43GMgO0rGH3bqM7+3ii8p2E2rhzqEtG/D3 qyY=
-; NSEC has a label lenght of 3, indication that the original owner name is:
+; NSEC has a label length of 3, indication that the original owner name is:
 ; *.nsecwc.nlnetlabs.nl. The NSEC therefore does no prove the NODATA answer.
 _25._tcp.mail.nsecwc.nlnetlabs.nl. 3600        IN NSEC delegation.nsecwc.nlnetlabs.nl. TXT RRSIG NSEC
 _25._tcp.mail.nsecwc.nlnetlabs.nl. 3600        IN RRSIG NSEC 8 3 3600 20200101000000 20171108114635 565 nsecwc.nlnetlabs.nl. ddy1MRbshFuFJswlouNGHsZUF/tYu8BOCztY2JuHeTMyWL7rhRKp73q/ 1RAXMwywKsynT5ioY0bMtEQszeIEn29IYaPDHieLAobjF6BMu1kO7U2/ oEBrSHM/fx28BcaM5G4nfCIm3BlhQhWvk1NDHLn3Q26x4hF/dnmFOUet aXw=
index 215cca6768e26a74e455f089425d02ff97994608..05c07a839272276d5d163d5094b6e369d7220a36 100644 (file)
@@ -138,7 +138,7 @@ b6fuorg741ufili49mg9j4328ig53sqg.example.com. IN NSEC3 1 1 123 aabb00123456bbccd
 b6fuorg741ufili49mg9j4328ig53sqg.example.com.   3600    IN      RRSIG   NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AKHQ0gnNP5WDab1yqbd+Bt12CSSff88sqeDR40dvhiWOcYA8mmyjYNA=
 
 ; span around sub.example.com., same span as foo.example.com, but it has
-; just changed and it is now larger to accomodate sub.example.com.
+; just changed and it is now larger to accommodate sub.example.com.
 6obgmo062d9935unjnnj2su5otaj9334.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd 9r1f0ieoutlnjc03meng9e3bn2n0o9pd NS DS RRSIG
 6obgmo062d9935unjnnj2su5otaj9334.example.com.   3600    IN      RRSIG   NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. ABzruSKUUcJRNlYDqZ4UmQH/WnzeXt9Gozp3chS4cR0sqsEeGjL54eQ=
 
@@ -164,7 +164,7 @@ b6fuorg741ufili49mg9j4328ig53sqg.example.com. IN NSEC3 1 1 123 aabb00123456bbccd
 b6fuorg741ufili49mg9j4328ig53sqg.example.com.   3600    IN      RRSIG   NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. AKHQ0gnNP5WDab1yqbd+Bt12CSSff88sqeDR40dvhiWOcYA8mmyjYNA=
 
 ; span around sub.example.com., same span as foo.example.com, but it has
-; just changed and it is now larger to accomodate sub.example.com.
+; just changed and it is now larger to accommodate sub.example.com.
 6obgmo062d9935unjnnj2su5otaj9334.example.com. IN NSEC3 1 1 123 aabb00123456bbccdd 9r1f0ieoutlnjc03meng9e3bn2n0o9pd NS DS RRSIG
 6obgmo062d9935unjnnj2su5otaj9334.example.com.   3600    IN      RRSIG   NSEC3 3 3 3600 20070926135752 20070829135752 2854 example.com. ABzruSKUUcJRNlYDqZ4UmQH/WnzeXt9Gozp3chS4cR0sqsEeGjL54eQ=
 
index cd1bc7931c9c862cb45d16b8f7453e69a2160bfd..18910bee39fc3233531d03dc71053748a38931a2 100644 (file)
@@ -1110,7 +1110,7 @@ int cfg_count_numbers(const char* str);
 int cfg_parse_memsize(const char* str, size_t* res);
 
 /**
- * Parse nsid from string into binary nsid. nsid is either a hexidecimal
+ * Parse nsid from string into binary nsid. nsid is either a hexadecimal
  * string or an ascii string prepended with ascii_ in which case the
  * characters after ascii_ are simply copied.
  * @param str: the string to parse.
index a463736879d67581fab444d5999e9988663174b1..c6b7e573ce00c355f6666a0a5575c39d4857f418 100644 (file)
@@ -358,7 +358,7 @@ struct module_env {
         * @param ssl_upstream: use SSL for upstream queries.
         * @param tls_auth_name: if ssl_upstream, use this name with TLS
         *      authentication.
-        * @param q: wich query state to reactivate upon return.
+        * @param q: which query state to reactivate upon return.
         * @return: false on failure (memory or socket related). no query was
         *      sent. Or returns an outbound entry with qsent and qstate set.
         *      This outbound_entry will be used on later module invocations
index c79f99b3eb6dbee26692594c453ee5988294efff..9f4d28ba9f8f41ebd7427df5a255f99986f6edc1 100644 (file)
@@ -743,7 +743,7 @@ struct comm_signal* comm_signal_create(struct comm_base* base,
        void (*callback)(int, void*), void* cb_arg);
 
 /**
- * Bind signal struct to catch a signal. A signle comm_signal can be bound
+ * Bind signal struct to catch a signal. A single comm_signal can be bound
  * to multiple signals, calling comm_signal_bind multiple times.
  * @param comsig: the communication point, with callback information.
  * @param sig: signal number.
index 68f633bb0ef26405408fe16367292d413cdbd81a..8cd87ec4e1d439d3090bf343547909711366ddc8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * util/ub_event.c - directly call libevent (compatability) functions
+ * util/ub_event.c - directly call libevent (compatibility) functions
  *
  * Copyright (c) 2007, NLnet Labs. All rights reserved.
  *
index d4d48d956895550d70108ca8bab2da87972d56e7..e6307284fb0ed5272b858194a76c614f18e6fdc9 100644 (file)
@@ -140,7 +140,7 @@ val_apply_cfg(struct module_env* env, struct val_env* val_env,
        val_env->max_restart = cfg->val_max_restart;
        c = cfg_count_numbers(cfg->val_nsec3_key_iterations);
        if(c < 1 || (c&1)) {
-               log_err("validator: unparseable or odd nsec3 key "
+               log_err("validator: unparsable or odd nsec3 key "
                        "iterations: %s", cfg->val_nsec3_key_iterations);
                return 0;
        }
@@ -484,7 +484,7 @@ generate_keytag_query(struct module_qstate* qstate, int id,
                return 0;
        }
 
-       /* Not interrested in subquery response. Restore the ext_state,
+       /* Not interested in subquery response. Restore the ext_state,
         * that might be changed by generate_request() */
        qstate->ext_state[id] = ext_state;
 
index a928e10a65d8104aceeca4bbd57bb25717baf7a3..a97eab25bc4aaef1e5f5bc9b7ba00e92c088b8b2 100644 (file)
@@ -68,7 +68,7 @@ struct config_strlist;
 #define SENTINEL_IS            "root-key-sentinel-is-ta-"
 /** Root key sentinel is not ta preamble */
 #define SENTINEL_NOT           "root-key-sentinel-not-ta-"
-/** Root key sentinal keytag length */
+/** Root key sentinel keytag length */
 #define SENTINEL_KEYTAG_LEN    5
 
 /**