Skip to content

Commit

Permalink
Merge pull request #117 from DimitriPapadopoulos/codespell
Browse files Browse the repository at this point in the history
Fix typos found by codespell
  • Loading branch information
arr2036 authored Dec 27, 2023
2 parents 32f84e1 + 0b9fdb8 commit 5a7c776
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion BUGS
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$Id: BUGS,v 1.3 2010/02/04 10:27:09 aland Exp $

Testing can show the presense of bugs, but not their absence.
Testing can show the presence of bugs, but not their absence.
-- Dijkstra

Radlogin respectively send_server in sendserver.c does not honour a
Expand Down
6 changes: 3 additions & 3 deletions doc/instop.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,20 @@ <h2>
<p>

If the user is authenticated locally <i>radlogin</i> calls the local login
program to spawn a login enviroment.
program to spawn a login environment.

<p>

If the user is authenticated via RADIUS <i>radlogin</i> calls a special other
login program which gets the information that was passed from the RADIUS
server in enviroment variables.
server in environment variables.

<p>

In this special login program you can now either start a telnet/rlogin
session or start up SLIP/CSLIP or even PPP based on the information from
the RADIUS server. Furthermore you can send accounting information to a
RADIUS accouting server via a program called radacct which is also
RADIUS accounting server via a program called radacct which is also
part of Radiusclient.

<!--------------------------------------------------------------------------->
Expand Down
4 changes: 2 additions & 2 deletions etc/port-id-map
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# port-id-map
#
# This file describes the ttyname to port id mapping. The port id
# is reported as part of a RADIUS authentication or accouting request.
# is reported as part of a RADIUS authentication or accounting request.
#
#ttyname (as returned by ttyname(3)) port-id
/dev/tty1 1
Expand All @@ -21,4 +21,4 @@
/dev/ttyS5 14
/dev/ttyS6 15
/dev/ttyS7 16


4 changes: 2 additions & 2 deletions etc/radiusclient.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ issue @pkgsysconfdir@/issue
# simply '[IPv6]'.
authserver localhost

# RADIUS server to use for accouting requests. All that I
# RADIUS server to use for accounting requests. All that I
# said for authserver applies, too.
#
acctserver localhost
Expand All @@ -59,7 +59,7 @@ mapfile @pkgsysconfdir@/port-id-map

# default authentication realm to append to all usernames if no
# realm was explicitly specified by the user
# the radiusd directly form Livingston doesnt use any realms, so leave
# the radiusd directly form Livingston doesn't use any realms, so leave
# it blank then
default_realm

Expand Down
2 changes: 1 addition & 1 deletion include/freeradius-client.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ typedef struct send_data /* Used to pass information to sendserver() function */
{
uint8_t code; //!< RADIUS packet code.
uint8_t seq_nbr; //!< Packet sequence number.
char *server; //!< Name/addrress of RADIUS server.
char *server; //!< Name/address of RADIUS server.
int svc_port; //!< RADIUS protocol destination port.
char *secret; //!< Shared secret of RADIUS server.
int timeout; //!< Session timeout in seconds.
Expand Down
2 changes: 1 addition & 1 deletion lib/env.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int rc_import_env(ENV *env, char const **import)
continue;
}

/* ok, i grant thats not very clean... */
/* ok, i grant that's not very clean... */
*es = '\0';

if (rc_add_env(env, *import, es+1) < 0)
Expand Down
4 changes: 2 additions & 2 deletions lib/sendserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static int rc_pack_list (VALUE_PAIR *vp, char *secret, AUTH_HDR *auth)
AUTH_VECTOR_LEN);
rc_md5_calc (buf, md5buf, secretlen + AUTH_VECTOR_LEN);

/* Remeber the start of the digest */
/* Remember the start of the digest */
vector = buf;

/* Xor the password into the MD5 digest */
Expand Down Expand Up @@ -195,7 +195,7 @@ static void strappend(char *dest, unsigned max_size, int *pos, const char *src)
* @param msg must be an array of %PW_MAX_MSG_SIZE or %NULL; will contain the concatenation of
* any %PW_REPLY_MESSAGE received.
* @param flags must be %AUTH or %ACCT
* @return %OK_RC (0) on success, %TIMEOUT_RC on timeout %REJECT_RC on acess reject, or negative
* @return %OK_RC (0) on success, %TIMEOUT_RC on timeout %REJECT_RC on access reject, or negative
* on failure as return value.
*/
int rc_send_server (rc_handle const *rh, SEND_DATA *data, char *msg, unsigned flags)
Expand Down
2 changes: 1 addition & 1 deletion lib/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ char *rc_getifname(rc_handle *rh, char const *tty)
#endif
}

/** Reads in a string from the user (with or witout echo)
/** Reads in a string from the user (with or without echo)
*
* @param rh a handle to parsed configuration.
* @param prompt the prompt to print.
Expand Down
2 changes: 1 addition & 1 deletion src/radembedded.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ main (int argc, char **argv)
rh = rc_config_init(rh);
if (rh == NULL)
{
printf("ERROR: Failed to initialze configuration\n");
printf("ERROR: Failed to initialize configuration\n");
exit(1);
}

Expand Down
4 changes: 2 additions & 2 deletions src/radius.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ LFUNC auth_radius(rc_handle *rh, uint32_t client_port, char const *username, cha
if (rc_avpair_add(rh, &send, PW_SERVICE_TYPE, &service, -1, 0) == NULL)
return NULL;

/* Fill in Framed-Protocol, if neccessary */
/* Fill in Framed-Protocol, if necessary */

if (ftype != 0)
{
if (rc_avpair_add(rh, &send, PW_FRAMED_PROTOCOL, &ftype, -1, 0) == NULL)
return NULL;
}

/* Fill in Framed-Compression, if neccessary */
/* Fill in Framed-Compression, if necessary */

if (ctype != 0)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/docker/radius-clients.conf
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ client localhost2 {
# the same as above, but they are nested inside of a section.
#
# You can have as many per-socket client lists as you have "listen"
# sections, or you can re-use a list among multiple "listen" sections.
# sections, or you can reuse a list among multiple "listen" sections.
#
# Un-comment this section, and edit a "listen" section to add:
# "clients = per_socket_clients". That IP address/port combination
Expand Down
4 changes: 2 additions & 2 deletions tests/radiusclient-ipv6.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ issue /usr/local/etc/radiusclient/issue
# service. if this fails also a compiled in default is used.
authserver [::1]

# RADIUS server to use for accouting requests. All that I
# RADIUS server to use for accounting requests. All that I
# said for authserver applies, too.
#
acctserver [::1]
Expand All @@ -54,7 +54,7 @@ mapfile ../etc/port-id-map

# default authentication realm to append to all usernames if no
# realm was explicitly specified by the user
# the radiusd directly form Livingston doesnt use any realms, so leave
# the radiusd directly form Livingston doesn't use any realms, so leave
# it blank then
default_realm

Expand Down
4 changes: 2 additions & 2 deletions tests/radiusclient.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ issue /usr/local/etc/radiusclient/issue
# service. if this fails also a compiled in default is used.
authserver localhost

# RADIUS server to use for accouting requests. All that I
# RADIUS server to use for accounting requests. All that I
# said for authserver applies, too.
#
acctserver localhost
Expand All @@ -54,7 +54,7 @@ mapfile ../etc/port-id-map

# default authentication realm to append to all usernames if no
# realm was explicitly specified by the user
# the radiusd directly form Livingston doesnt use any realms, so leave
# the radiusd directly form Livingston doesn't use any realms, so leave
# it blank then
default_realm

Expand Down

0 comments on commit 5a7c776

Please sign in to comment.