Skip to content

Commit db82c0f

Browse files
committed
Fixed some typos, courtesy of codespell
1 parent 0329645 commit db82c0f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/libcharon/sa/child_sa.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ static void prepare_sa_cfg(private_child_sa_t *this, ipsec_sa_cfg_t *my_sa,
978978
}
979979

980980
/**
981-
* Install inbound policie(s): in, fwd
981+
* Install inbound policies: in, fwd
982982
*/
983983
static status_t install_policies_inbound(private_child_sa_t *this,
984984
host_t *my_addr, host_t *other_addr, traffic_selector_t *my_ts,
@@ -1012,7 +1012,7 @@ static status_t install_policies_inbound(private_child_sa_t *this,
10121012
}
10131013

10141014
/**
1015-
* Install outbound policie(s): out, [fwd]
1015+
* Install outbound policies: out, [fwd]
10161016
*/
10171017
static status_t install_policies_outbound(private_child_sa_t *this,
10181018
host_t *my_addr, host_t *other_addr, traffic_selector_t *my_ts,

src/libstrongswan/crypto/mac.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ struct mac_t {
3939
*
4040
* If out is NULL, no result is given back. A next call will
4141
* append the data to already supplied data. If out is not NULL,
42-
* the mac of all apended data is calculated, written to out and the
42+
* the MAC of all appended data is calculated, written to out and the
4343
* internal state is reset.
4444
*
4545
* @param data chunk of data to authenticate
4646
* @param out pointer where the generated bytes will be written
47-
* @return TRUE if mac generated successfully
47+
* @return TRUE if MAC generated successfully
4848
*/
4949
bool (*get_mac)(mac_t *this, chunk_t data,
5050
uint8_t *out) __attribute__((warn_unused_result));

src/libstrongswan/plugins/openssl/openssl_rng.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ METHOD(rng_t, get_bytes, bool,
5353
{
5454
#if OPENSSL_VERSION_NUMBER >= 0x1010100fL
5555
if (this->quality > RNG_WEAK)
56-
{ /* use a separate DRBG for data we wan't to keep private, compared
56+
{ /* use a separate DRBG for data we want to keep private, compared
5757
* to e.g. nonces */
5858
return RAND_priv_bytes((char*)buffer, bytes) == 1;
5959
}

src/libstrongswan/utils/chunk.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ static inline bool chunk_equals_ptr(chunk_t *a, chunk_t *b)
332332
}
333333

334334
/**
335-
* Increment a chunk, as it would reprensent a network order integer.
335+
* Increment a chunk, as it would represent a network order integer.
336336
*
337337
* @param chunk chunk to increment
338338
* @return TRUE if an overflow occurred

0 commit comments

Comments
 (0)