From: Tobias Brunner Date: Mon, 29 Apr 2019 13:07:25 +0000 (+0200) Subject: Fixed some typos, courtesy of codespell X-Git-Tag: 5.8.0rc1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02b348403a44f5fb1f9a3773da2a58fc29b25c13;p=thirdparty%2Fstrongswan.git Fixed some typos, courtesy of codespell --- diff --git a/README_LEGACY.md b/README_LEGACY.md index 0ca187a97e..251a304c73 100644 --- a/README_LEGACY.md +++ b/README_LEGACY.md @@ -1144,7 +1144,7 @@ keys are safe. On a mobile laptop computer the situation is quite different. The computer can be stolen or the user may leave it unattended so that unauthorized persons -can get access to it. In theses cases it would be preferable not to keep any +can get access to it. In these cases it would be preferable not to keep any passphrases openly in `/etc/ipsec.secrets` but to prompt for them interactively instead. This is easily done by defining diff --git a/src/libcharon/encoding/payloads/encodings.h b/src/libcharon/encoding/payloads/encodings.h index daa179530a..5adff32855 100644 --- a/src/libcharon/encoding/payloads/encodings.h +++ b/src/libcharon/encoding/payloads/encodings.h @@ -138,7 +138,7 @@ enum encoding_type_t { FLAG, /** - * Representating a length field of a payload. + * Representing a length field of a payload. * * When generating it must be changed from host to network order. * The value is read from the associated data struct. @@ -151,7 +151,7 @@ enum encoding_type_t { PAYLOAD_LENGTH, /** - * Representating a length field of a header. + * Representing a length field of a header. * * When generating it must be changed from host to network order. * The value is read from the associated data struct. @@ -164,7 +164,7 @@ enum encoding_type_t { HEADER_LENGTH, /** - * Representating a spi size field. + * Representing a spi size field. * * When generating it must be changed from host to network order. * The value is read from the associated data struct. @@ -177,7 +177,7 @@ enum encoding_type_t { SPI_SIZE, /** - * Representating a spi field. + * Representing a spi field. * * When generating the content of the chunkt pointing to * is written. @@ -256,7 +256,7 @@ enum encoding_type_t { ATTRIBUTE_VALUE, /** - * Representating a Traffic selector type field. + * Representing a Traffic selector type field. * * When generating it must be changed from host to network order. * The value is read from the associated data struct. @@ -269,7 +269,7 @@ enum encoding_type_t { TS_TYPE, /** - * Representating an address field in a traffic selector. + * Representing an address field in a traffic selector. * * Depending on the last field of type TS_TYPE * this field is either 4 or 16 byte long. @@ -287,7 +287,7 @@ enum encoding_type_t { CHUNK_DATA, /** - * Representating an IKE_SPI field in an IKEv2 Header. + * Representing an IKE_SPI field in an IKEv2 Header. * * When generating the value of the uint64_t pointing to * is written (host and networ order is not changed). @@ -297,7 +297,7 @@ enum encoding_type_t { IKE_SPI, /** - * Representating an encrypted IKEv1 message. + * Representing an encrypted IKEv1 message. */ ENCRYPTED_DATA, diff --git a/src/libcharon/encoding/payloads/payload.h b/src/libcharon/encoding/payloads/payload.h index 261fcf600e..cb3dce0426 100644 --- a/src/libcharon/encoding/payloads/payload.h +++ b/src/libcharon/encoding/payloads/payload.h @@ -188,7 +188,7 @@ enum payload_type_t { PLV2_TS_INITIATOR = 44, /** - * Traffic selector for the original responser (TSr). + * Traffic selector for the original responder (TSr). */ PLV2_TS_RESPONDER = 45, diff --git a/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c b/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c index 3b6feadfa6..4e1e202e7c 100644 --- a/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c +++ b/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c @@ -615,7 +615,7 @@ static inline void encode_utf16le_single(chunk_t *utf16, uint16_t c) /** * Encode the given code point as UTF-16LE where utf16 points to and advance - * the position. Invalid code points are ingored. + * the position. Invalid code points are ignored. */ static inline void encode_utf16le(chunk_t *utf16, uint32_t c) { diff --git a/src/libcharon/plugins/vici/vici_socket.c b/src/libcharon/plugins/vici/vici_socket.c index 2a55fd061d..8edd3fb37b 100644 --- a/src/libcharon/plugins/vici/vici_socket.c +++ b/src/libcharon/plugins/vici/vici_socket.c @@ -474,7 +474,7 @@ static bool do_read(private_vici_socket_t *this, entry_t *entry, } /** - * Callback processing incoming requestes in strict order + * Callback processing incoming requests in strict order */ CALLBACK(process_queue, job_requeue_t, entry_selector_t *sel) diff --git a/src/libcharon/sa/ike_sa.c b/src/libcharon/sa/ike_sa.c index e75aa755cd..4e60ed8e23 100644 --- a/src/libcharon/sa/ike_sa.c +++ b/src/libcharon/sa/ike_sa.c @@ -2560,7 +2560,7 @@ static bool is_current_path_valid(private_ike_sa_t *this) } /** - * Check if we have any path avialable for this IKE SA. + * Check if we have any path available for this IKE SA. */ static bool is_any_path_valid(private_ike_sa_t *this) { diff --git a/src/libcharon/tests/suites/test_ike_rekey.c b/src/libcharon/tests/suites/test_ike_rekey.c index b6a0154455..5960e989df 100644 --- a/src/libcharon/tests/suites/test_ike_rekey.c +++ b/src/libcharon/tests/suites/test_ike_rekey.c @@ -360,7 +360,7 @@ END_TEST /** * Both peers initiate the IKE_SA rekeying concurrently but the proposed DH - * gropus are not the same. After handling the INVALID_KE_PAYLOAD they should + * groups are not the same. After handling the INVALID_KE_PAYLOAD they should * still handle the collision properly depending on the nonces. */ START_TEST(test_collision_ke_invalid) diff --git a/src/libimcv/pa_tnc/pa_tnc_msg.h b/src/libimcv/pa_tnc/pa_tnc_msg.h index 3be3020322..5e9e56327d 100644 --- a/src/libimcv/pa_tnc/pa_tnc_msg.h +++ b/src/libimcv/pa_tnc/pa_tnc_msg.h @@ -53,7 +53,7 @@ struct pa_tnc_msg_t { /** * Add a PA-TNC attribute * - * @param attr PA-TNC attribute to be addedd + * @param attr PA-TNC attribute to be added * @return TRUE if attribute fit into message and was added */ bool (*add_attribute)(pa_tnc_msg_t *this, pa_tnc_attr_t* attr); diff --git a/src/libpttls/pt_tls_client.c b/src/libpttls/pt_tls_client.c index f86f13dcc0..b79b92763e 100644 --- a/src/libpttls/pt_tls_client.c +++ b/src/libpttls/pt_tls_client.c @@ -249,7 +249,7 @@ static status_t do_sasl(private_pt_tls_client_t *this, sasl_mechanism_t *sasl) case INVALID_STATE: break; case SUCCESS: - /* shoudln't happen, continue until we get a result */ + /* shouldn't happen, continue until we get a result */ case NEED_MORE: writer->write_data(writer, data); free(data.ptr); diff --git a/src/libstrongswan/networking/streams/stream.h b/src/libstrongswan/networking/streams/stream.h index 747bf651c1..3e0ff5d95f 100644 --- a/src/libstrongswan/networking/streams/stream.h +++ b/src/libstrongswan/networking/streams/stream.h @@ -50,7 +50,7 @@ typedef stream_t*(*stream_constructor_t)(char *uri); typedef bool (*stream_cb_t)(void *data, stream_t *stream); /** - * Abstraction of a Berkley socket using stream semantics. + * Abstraction of a Berkeley socket using stream semantics. */ struct stream_t { diff --git a/src/libstrongswan/plugins/wolfssl/wolfssl_rsa_private_key.c b/src/libstrongswan/plugins/wolfssl/wolfssl_rsa_private_key.c index 39d3e021bd..c936266c89 100644 --- a/src/libstrongswan/plugins/wolfssl/wolfssl_rsa_private_key.c +++ b/src/libstrongswan/plugins/wolfssl/wolfssl_rsa_private_key.c @@ -333,7 +333,7 @@ METHOD(private_key_t, get_encoding, bool, int len; /* n and d are of keysize length, p and q plus the three CRT - * params roughtly half that, the version and e are small */ + * params roughly half that, the version and e are small */ len = wc_RsaEncryptSize(&this->rsa) * 5 + MAX_SEQ_SZ; *encoding = chunk_alloc(len); len = wc_RsaKeyToDer(&this->rsa, encoding->ptr, len); diff --git a/src/libtnccs/plugins/tnccs_11/batch/tnccs_batch.h b/src/libtnccs/plugins/tnccs_11/batch/tnccs_batch.h index 25301f7630..7e1a3dea35 100644 --- a/src/libtnccs/plugins/tnccs_11/batch/tnccs_batch.h +++ b/src/libtnccs/plugins/tnccs_11/batch/tnccs_batch.h @@ -43,7 +43,7 @@ struct tnccs_batch_t { /** * Add TNCCS message * - * @param msg TNCCS message to be addedd + * @param msg TNCCS message to be added */ void (*add_msg)(tnccs_batch_t *this, tnccs_msg_t* msg); diff --git a/src/libtnccs/plugins/tnccs_20/batch/pb_tnc_batch.h b/src/libtnccs/plugins/tnccs_20/batch/pb_tnc_batch.h index 6089c7d2ee..fcd46f105e 100644 --- a/src/libtnccs/plugins/tnccs_20/batch/pb_tnc_batch.h +++ b/src/libtnccs/plugins/tnccs_20/batch/pb_tnc_batch.h @@ -73,7 +73,7 @@ struct pb_tnc_batch_t { /** * Add a PB-TNC Message * - * @param msg PB-TNC message to be addedd + * @param msg PB-TNC message to be added * @return TRUE if message fit into batch and was added */ bool (*add_msg)(pb_tnc_batch_t *this, pb_tnc_msg_t* msg); diff --git a/src/manager/templates/static/jquery.js b/src/manager/templates/static/jquery.js index f0e43fa931..dccc5be909 100644 --- a/src/manager/templates/static/jquery.js +++ b/src/manager/templates/static/jquery.js @@ -464,7 +464,7 @@ jQuery.extend({ elem.tagName && elem.ownerDocument && !elem.ownerDocument.body; }, - // Evalulates a script in a global context + // Evaluates a script in a global context // Evaluates Async. in Safari 2 :-( globalEval: function( data ) { data = jQuery.trim( data );