Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling in docs/code comments #239

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ variety of operating systems.
we believe resolved, but want to confirm are fixed for the original
reporter. If you run an environment similar to the reporter, and can
reproduce the failure mode, more testing is useful, especially in the
case where the origninal reporter has not responded.
case where the original reporter has not responded.

* Reporting compiler warnings on your platform (along with the platform and
version) is helpful. Our goal is for a zero-warnings compile on most
Expand Down
2 changes: 1 addition & 1 deletion INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ doesn't find it, you will need to specify the location with
--with-sql-backend
Names the SQL backend in use on your system. The default
is "mysql". You can also specify "--without-sql-backend"
to suppres building of SQL support.
to suppress building of SQL support.

FEATURES
========
Expand Down
4 changes: 2 additions & 2 deletions RELEASE_NOTES
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ release, and a summary of the changes in that release.
Feature request #127: Log SPF results when rejecting. Requested
by Patrick Wagner; patch from Andreas Schulze, follow-up
patch from Juri Haberland.
Feature request #138: Inculde policy and disposition information
Feature request #138: Include policy and disposition information
in an Authentication-Results comment. Based on a patch
from Juri Haberland.
Feature request #139: Include the client host name if known
Expand Down Expand Up @@ -368,7 +368,7 @@ release, and a summary of the changes in that release.
reported by Todd Lyons.

0.2.2 2012/09/14
Fix bug #25: Use locks to co-ordinate between the filter writing
Fix bug #25: Use locks to coordinate between the filter writing
to the history file and opendmarc-import consuming it.
Problem noted by Marcos Vieira.
Don't use dmarcf_dstring_printf() where dmarcf_dstring_cat() suffices.
Expand Down
2 changes: 1 addition & 1 deletion libopendmarc/dmarc.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ extern "C" {
#define DMARC_PARSE_ERROR_BAD_VALUE (4) /* Bad token value like p=bob */
#define DMARC_PARSE_ERROR_NO_REQUIRED_P (5) /* Required p= missing */
#define DMARC_PARSE_ERROR_NO_DOMAIN (6) /* No domain, e.g. <> */
#define DMARC_PARSE_ERROR_NO_ALLOC (7) /* Memory Allocation Faliure */
#define DMARC_PARSE_ERROR_NO_ALLOC (7) /* Memory Allocation Failure */
#define DMARC_PARSE_ERROR_BAD_SPF_MACRO (8) /* Was not a macro from above */
#define DMARC_PARSE_ERROR_BAD_DKIM_MACRO DMARC_PARSE_ERROR_BAD_SPF_MACRO
#define DMARC_DNS_ERROR_NO_RECORD (9) /* No DMARC record was found */
Expand Down
2 changes: 1 addition & 1 deletion libopendmarc/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ <h2>Functions</h2>
</tr>
<tr>
<td> <a href="opendmarc_policy_status_to_str.html"> <tt>opendmarc_policy_status_to_str()</tt> </a> </td>
<td> Fetch a human readable string correspoding to a
<td> Fetch a human readable string corresponding to a
<a href="opendmarc_status_t.html"> <tt>OPENDMARC_STATUS_T</tt></a> value returned by a function.
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion libopendmarc/docs/opendmarc_lib_t.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h1>OPENDMARC_LIB_T</h1>
</blockquote>

<p>NOTE:<br>If and only if your resolver library lacks the <tt>res_setservers()<tt> interface, the following hooks
are avaliable as a substitute.
are available as a substitute.

<p><tt>int nscount</tt>
<blockquote>
Expand Down
2 changes: 1 addition & 1 deletion libopendmarc/docs/opendmarc_policy_fetch_alignment.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h1>opendmarc_policy_fetch_alignment()</h1>
<a href="opendmarc_policy_query_dmarc.html">opendmarc_policy_query_dmarc()</a>
or supplied to the library with
<a href="opendmarc_policy_store_dmarc.html">opendmarc_policy_store_dmarc()</a>.
And shoud only be called after the policy to enforce has been retrieved
And should only be called after the policy to enforce has been retrieved
and processed using
<a href="opendmarc_get_policy_to_enforce.html">opendmarc_get_policy_to_enforce()</a>.
</ul>
Expand Down
2 changes: 1 addition & 1 deletion libopendmarc/docs/opendmarc_policy_fetch_rua.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1>opendmarc_policy_fetch_rua()</h1>
<td>If <tt>list_buf</tt> was not NULL, the the length of that buffer in bytes.
</td></tr>
<tr valign="top"><td>constant</td>
<td>This function returns an argv-style array of stings. Set this to 0 if you will free that array
<td>This function returns an argv-style array of strings. Set this to 0 if you will free that array
when you are finished with it. Set this to 1 if you want to treat that array as const and have
the library magically free it for you.
</td></tr>
Expand Down
2 changes: 1 addition & 1 deletion libopendmarc/docs/opendmarc_policy_fetch_ruf.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1>opendmarc_policy_fetch_ruf()</h1>
<td>If <tt>list_buf</tt> was not NULL, the the length of that buffer in bytes.
</td></tr>
<tr valign="top"><td>constant</td>
<td>This function returns an argv-style array of stings. Set this to 0 if you will free that array
<td>This function returns an argv-style array of strings. Set this to 0 if you will free that array
when you are finished with it. Set this to 1 if you want to treat that array as const and have
the library magically free it for you.
</td></tr>
Expand Down
2 changes: 1 addition & 1 deletion libopendmarc/docs/opendmarc_policy_status_to_str.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>opendmarc_policy_status_to_str()</h1>
<tr bgcolor="#dddddd"><th>Argument</th><th>Description</th></tr>
<tr valign="top"><td>status</td>
<td>Value of <a href="opendmarc_status_t.html"><tt>OPENDMARC_STATUS_T</tt></a> returned by
a call to a library fuction.
a call to a library function.
</td></tr>
</table>
</td></tr>
Expand Down
4 changes: 2 additions & 2 deletions libopendmarc/docs/opendmarc_spf_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h1>opendmarc_spf_test()</h1>
If non-zero, softfails are threated as a pass.
</td></tr>
<tr valign="top"><td>human_readable</td>
<td>If not NULL, is the address of a string buffer into which to scribble a human readble reason for
<td>If not NULL, is the address of a string buffer into which to scribble a human readable reason for
any result.
</td></tr>
<tr valign="top"><td>human_readable_len</td>
Expand Down Expand Up @@ -91,7 +91,7 @@ <h1>opendmarc_spf_test()</h1>
<td>
<ul>
<li>This spf record check performs it own DNS lookups. There are no hooks provided
to subsitute your own DNS lookup routines at this time.
to substitute your own DNS lookup routines at this time.
</ul>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion libopendmarc/docs/opendmarc_xml_parse.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1>opendmarc_xml_parse()</h1>
<td>The full or relative path name of the file to read.
</td></tr>
<tr valign="blen"><td>err_buf</td>
<td>The size of a buffer in bytes to recieve error messages.
<td>The size of a buffer in bytes to receive error messages.
</td></tr>
<tr valign="top"><td>err_len</td>
<td>The size of the buffer <tt>err_buf</tt> in bytes.
Expand Down
2 changes: 1 addition & 1 deletion libopendmarc/docs/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<h1>Overview</h1>
<p align="right"><a href="index.html">[back to index]</a></p>

For basic processig of an arriving message under
For basic processing of an arriving message under
<b>Domain-Based Message Authentication, Reporting and Conformance</b>
("DMARC"), make the following calls:

Expand Down
6 changes: 3 additions & 3 deletions libopendmarc/opendmarc_dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ opendmarc_dns_fake_record(const char *name, const char *answer)
**
** Return Values:
** got_txtbuf -- pointer to got_txtbuf on success
** NULL -- otherise, and place the h_errno error into reply
** NULL -- otherwise, and place the h_errno error into reply
**
** Side Effects:
** Makes a connection to the local (or specified)
Expand Down Expand Up @@ -138,7 +138,7 @@ dmarc_dns_get_record(char *domain, int *reply, char *got_txtbuf, size_t got_txtl
reply_ptr = reply;

/*
* If a null or empy domain was given to us, just say that it
* If a null or empty domain was given to us, just say that it
* was not found.
*/
*reply_ptr = 0;
Expand Down Expand Up @@ -180,7 +180,7 @@ dmarc_dns_get_record(char *domain, int *reply, char *got_txtbuf, size_t got_txtl
}

/*
* Copy the domain so we can scribble on it. The orginal
* Copy the domain so we can scribble on it. The original
* may point to a static string.
* We should use strlcpy(), but not all systems have it.
*/
Expand Down
34 changes: 17 additions & 17 deletions libopendmarc/opendmarc_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ opendmarc_policy_library_init(OPENDMARC_LIB_T *lib_init)
}

/**************************************************************************
** OPENDMARC_POLICY_LIBRARY_SHUTDOWN -- Shutdown The Libarary
** OPENDMARC_POLICY_LIBRARY_SHUTDOWN -- Shutdown The Library
** Parameters:
** lib_init -- The prior DMARC_LIB_T strucgture
** Returns:
Expand All @@ -116,7 +116,7 @@ opendmarc_policy_library_shutdown(OPENDMARC_LIB_T *lib_init)
/**************************************************************************
** OPENDMARC_POLICY_CONNECT_INIT -- Get policy context for connection
** Parameters:
** ip_addr -- An IP addresss in string form.
** ip_addr -- An IP address in string form.
** is_ipv6 -- Zero for IPv4, non-zero for IPv6
** Returns:
** pctx -- An allocated and initialized context pointer.
Expand Down Expand Up @@ -208,8 +208,8 @@ opendmarc_policy_connect_clear(DMARC_POLICY_T *pctx)

/**************************************************************************
** OPENDMARC_POLICY_CONNECT_RSET -- Rset for another message
** Usefull if there is more than a single envelope per connection.
** Usefull during an SMTP RSET
** Useful if there is more than a single envelope per connection.
** Useful during an SMTP RSET
**
** Parameters:
** pctx -- The context to rset.
Expand Down Expand Up @@ -346,7 +346,7 @@ opendmarc_policy_check_alignment(u_char *subdomain, u_char *tld, int mode)
** The domain is needed to perform alignment checks.

** Parameters:
** pctx -- The context to uptdate
** pctx -- The context to update
** from_domain -- A string
** Returns:
** DMARC_PARSE_OKAY -- On success
Expand Down Expand Up @@ -384,7 +384,7 @@ opendmarc_policy_store_from_domain(DMARC_POLICY_T *pctx, u_char *from_domain)
** Okay to supply the raw MAIL From: data
**
** Parameters:
** pctx -- The context to uptdate
** pctx -- The context to update
** domain -- The domain used to verify SPF
** result -- DMARC_POLICY_SPF_OUTCOME_NONE
** or DMARC_POLICY_SPF_OUTCOME_PASS
Expand Down Expand Up @@ -591,7 +591,7 @@ opendmarc_policy_store_dkim(DMARC_POLICY_T *pctx, u_char *d_equal_domain,
** OPENDMARC_POLICY_QUERY_DMARC_XDOMAIN -- Verify that we have permission
** to send to domain
** Parameters:
** pctx -- The context to uptdate
** pctx -- The context to update
** uri -- URI listed in DMARC record
** Returns:
** DMARC_PARSE_OKAY -- On success, and fills pctx
Expand Down Expand Up @@ -727,7 +727,7 @@ opendmarc_policy_query_dmarc_xdomain(DMARC_POLICY_T *pctx, u_char *uri)
** specified domain. If not found
** try the organizational domain.
** Parameters:
** pctx -- The context to uptdate
** pctx -- The context to update
** domain -- The domain for which to lookup the DMARC record
** Returns:
** DMARC_PARSE_OKAY -- On success, and fills pctx
Expand All @@ -747,7 +747,7 @@ opendmarc_policy_query_dmarc_xdomain(DMARC_POLICY_T *pctx, u_char *uri)
** looks up topmost domain under tld. If this later is found
** updates pctx->organizational_domain with the result.
** Warning:
** If no TLD file has been loaded, will silenty not do that
** If no TLD file has been loaded, will silently not do that
** fallback lookup.
**
***************************************************************************/
Expand Down Expand Up @@ -988,7 +988,7 @@ opendmarc_policy_parse_dmarc(DMARC_POLICY_T *pctx, u_char *domain, u_char *recor
continue;
}
/*
* cp nwo points to the token, and
* cp now points to the token, and
* vp now points to the token's value
* both with all surronding whitepace removed.
*/
Expand Down Expand Up @@ -1017,7 +1017,7 @@ opendmarc_policy_parse_dmarc(DMARC_POLICY_T *pctx, u_char *domain, u_char *recor
pctx->p = DMARC_RECORD_P_QUARANTINE;
else
{
/* A totaly unknown value */
/* A totally unknown value */
return DMARC_PARSE_ERROR_BAD_VALUE;
}
}
Expand All @@ -1035,7 +1035,7 @@ opendmarc_policy_parse_dmarc(DMARC_POLICY_T *pctx, u_char *domain, u_char *recor
pctx->sp = DMARC_RECORD_P_QUARANTINE;
else
{
/* A totaly unknown value */
/* A totally unknown value */
return DMARC_PARSE_ERROR_BAD_VALUE;
}
}
Expand All @@ -1051,7 +1051,7 @@ opendmarc_policy_parse_dmarc(DMARC_POLICY_T *pctx, u_char *domain, u_char *recor
pctx->adkim = DMARC_RECORD_A_RELAXED;
else
{
/* A totaly unknown value */
/* A totally unknown value */
return DMARC_PARSE_ERROR_BAD_VALUE;
}
}
Expand All @@ -1067,7 +1067,7 @@ opendmarc_policy_parse_dmarc(DMARC_POLICY_T *pctx, u_char *domain, u_char *recor
pctx->aspf = DMARC_RECORD_A_RELAXED;
else
{
/* A totaly unknown value */
/* A totally unknown value */
return DMARC_PARSE_ERROR_BAD_VALUE;
}
}
Expand Down Expand Up @@ -1128,7 +1128,7 @@ opendmarc_policy_parse_dmarc(DMARC_POLICY_T *pctx, u_char *domain, u_char *recor
pctx->aspf |= DMARC_RECORD_RF_IODEF;
else
{
/* A totaly unknown value */
/* A totally unknown value */
return DMARC_PARSE_ERROR_BAD_VALUE;
}
}
Expand Down Expand Up @@ -1543,7 +1543,7 @@ opendmarc_policy_fetch_rf(DMARC_POLICY_T *pctx, int *rf)
** DMARC_PARSE_OKAY -- On success
** DMARC_PARSE_ERROR_NULL_CTX -- If context NULL
** DMARC_PARSE_ERROR_EMPTY -- If buf null or buflen 0 sized
** DMARC_PARSE_ERROR_NO_DOMAIN -- If neigher address is available
** DMARC_PARSE_ERROR_NO_DOMAIN -- If neither address is available
**/
OPENDMARC_STATUS_T
opendmarc_policy_fetch_utilized_domain(DMARC_POLICY_T *pctx, u_char *buf, size_t buflen)
Expand Down Expand Up @@ -1579,7 +1579,7 @@ opendmarc_policy_fetch_utilized_domain(DMARC_POLICY_T *pctx, u_char *buf, size_t
** DMARC_PARSE_OKAY -- On success
** DMARC_PARSE_ERROR_NULL_CTX -- If context NULL
** DMARC_PARSE_ERROR_EMPTY -- If buf null or buflen 0 sized
** DMARC_PARSE_ERROR_NO_DOMAIN -- If neigher address is available
** DMARC_PARSE_ERROR_NO_DOMAIN -- If neither address is available
**/
OPENDMARC_STATUS_T
opendmarc_policy_fetch_from_domain(DMARC_POLICY_T *pctx, u_char *buf, size_t buflen)
Expand Down
6 changes: 3 additions & 3 deletions libopendmarc/opendmarc_spf.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ opendmarc_spf_cidr_address(uint32_t ip, char *cidr_addr)
}

/**************************************************************
** opendmarc_spf_reverse -- Reverse doman name on dot or ip address
** opendmarc_spf_reverse -- Reverse domain name on dot or ip address
** on dot or colon boundaries
** e.g. a.b.c becomes c.b.a
** and FFFF::EEEE becomes EEEE::FFFF
Expand Down Expand Up @@ -821,7 +821,7 @@ opendmarc_spf_ipv6_cidr_check(char *ipv6_str, char *cidr_string)
if (cidr_bits == 0)
{
/*
* Requre an exact match.
* Require an exact match.
*/
for (i = 0; i < base_iary.nvalues; i++)
{
Expand Down Expand Up @@ -1674,7 +1674,7 @@ opendmarc_spf_parse(SPF_CTX_T *spfctx, int dns_count, char *xbuf, size_t xbuf_le
if (i < s)
{
(void) strlcat(xbuf, query, xbuf_len);
(void) strlcat(xbuf, " Include LOOP detected and supressed", xbuf_len);
(void) strlcat(xbuf, " Include LOOP detected and suppressed", xbuf_len);
PUSHLINE
continue;
}
Expand Down
Loading