From: Tobias Brunner Date: Fri, 2 Jun 2023 08:19:32 +0000 (+0200) Subject: Fixed some typos, courtesy of codespell X-Git-Tag: 5.9.11rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee9a663b0178363e64625add0ca6fa60ceaf4004;p=thirdparty%2Fstrongswan.git Fixed some typos, courtesy of codespell --- diff --git a/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c b/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c index aa4b0f1629..9bb67cfce9 100644 --- a/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c +++ b/src/libcharon/plugins/kernel_pfkey/kernel_pfkey_ipsec.c @@ -1979,7 +1979,7 @@ METHOD(kernel_ipsec_t, update_sa, status_t, } #ifndef SADB_X_EXT_NEW_ADDRESS_SRC /* we can't update the SA if any of the ip addresses have changed. - * that's because we can't use SADB_UPDATE and by deleting and readding the + * that's because we can't use SADB_UPDATE and by deleting and re-adding the * SA the sequence numbers would get lost */ if (!id->src->ip_equals(id->src, data->new_src) || !id->dst->ip_equals(id->dst, data->new_dst)) diff --git a/src/libcharon/sa/task_manager.h b/src/libcharon/sa/task_manager.h index 365e6e6bd4..69e5a812e7 100644 --- a/src/libcharon/sa/task_manager.h +++ b/src/libcharon/sa/task_manager.h @@ -89,7 +89,7 @@ struct retransmission_t { /** * Maximum jitter to apply to calculated timeout (in percent). A random - * amount of value this will be subtracted from the calculated timeout. + * amount of that value will be subtracted from the calculated timeout. */ u_int jitter; diff --git a/src/libipsec/ipsec_sa_mgr.c b/src/libipsec/ipsec_sa_mgr.c index 56698f3f08..fa8a17334d 100644 --- a/src/libipsec/ipsec_sa_mgr.c +++ b/src/libipsec/ipsec_sa_mgr.c @@ -28,7 +28,7 @@ #include /** - * Timeout in seconds for acquries for the same reqid (i.e. the interval used + * Timeout in seconds for acquires for the same reqid (i.e. the interval used * to trigger acquires while no SA is established). */ #define ACQUIRE_TIMEOUT 10 diff --git a/src/libstrongswan/plugins/openssl/openssl_pkcs7.c b/src/libstrongswan/plugins/openssl/openssl_pkcs7.c index 3adb02dea8..d9abcf8c0f 100644 --- a/src/libstrongswan/plugins/openssl/openssl_pkcs7.c +++ b/src/libstrongswan/plugins/openssl/openssl_pkcs7.c @@ -357,7 +357,7 @@ METHOD(enumerator_t, signature_enumerate, bool, if (openssl_asn1_known_oid(sig->algorithm) == OID_RSA_ENCRYPTION) { /* derive the signature scheme from the digest algorithm - * for the classic PKCS#7 RSA mechansim */ + * for the classic PKCS#7 RSA mechanism */ sig_alg.scheme = signature_scheme_from_oid(hash_oid); } else diff --git a/src/libstrongswan/plugins/pkcs7/pkcs7_signed_data.c b/src/libstrongswan/plugins/pkcs7/pkcs7_signed_data.c index 7210b728d7..995157e412 100644 --- a/src/libstrongswan/plugins/pkcs7/pkcs7_signed_data.c +++ b/src/libstrongswan/plugins/pkcs7/pkcs7_signed_data.c @@ -475,7 +475,7 @@ static bool parse(private_pkcs7_signed_data_t *this, chunk_t content) info->digest_alg != OID_UNKNOWN) { /* derive the signature scheme from the digest algorithm - * for the classic PKCS#7 RSA mechansim */ + * for the classic PKCS#7 RSA mechanism */ info->sig_alg.scheme = signature_scheme_from_oid( info->digest_alg); }