diff --git a/NEWS b/NEWS index 831d37f97..cdad7e2e2 100644 --- a/NEWS +++ b/NEWS @@ -2743,7 +2743,7 @@ strongswan-4.1.5 strongswan-4.1.4 ---------------- -- The pluto IKEv1 daemon now exhibits the same behaviour as its +- The pluto IKEv1 daemon now exhibits the same behavior as its IKEv2 companion charon by inserting an explicit route via the _updown script only if a sourceip exists. This is admissible since routing through the IPsec tunnel is handled automatically diff --git a/src/frontends/android/app/src/main/java/org/strongswan/android/logic/SimpleFetcher.java b/src/frontends/android/app/src/main/java/org/strongswan/android/logic/SimpleFetcher.java index de0ae97fe..1f24df7a4 100644 --- a/src/frontends/android/app/src/main/java/org/strongswan/android/logic/SimpleFetcher.java +++ b/src/frontends/android/app/src/main/java/org/strongswan/android/logic/SimpleFetcher.java @@ -118,7 +118,7 @@ public class SimpleFetcher /** * Disable the fetcher and abort any future requests. * - * The native thread is not cancelable as it is working on an IKE_SA (cancelling the methods of + * The native thread is not cancelable as it is working on an IKE_SA (canceling the methods of * HttpURLConnection is not reliably possible anyway), so to abort while fetching we cancel the * Future (causing a return from fetch() immediately) and let the executor thread continue its * thing in the background. diff --git a/src/frontends/android/gradlew.bat b/src/frontends/android/gradlew.bat index aec99730b..72d362daf 100644 --- a/src/frontends/android/gradlew.bat +++ b/src/frontends/android/gradlew.bat @@ -46,7 +46,7 @@ echo location of your Java installation. goto fail :init -@rem Get command-line arguments, handling Windowz variants +@rem Get command-line arguments, handling Windows variants if not "%OS%" == "Windows_NT" goto win9xME_args if "%@eval[2+2]" == "4" goto 4NT_args diff --git a/src/frontends/osx/charon-xpc/xpc_channels.c b/src/frontends/osx/charon-xpc/xpc_channels.c index d013e752b..3fefb5a10 100644 --- a/src/frontends/osx/charon-xpc/xpc_channels.c +++ b/src/frontends/osx/charon-xpc/xpc_channels.c @@ -64,7 +64,7 @@ typedef struct { } entry_t; /** - * Clean up an entry, cancelling connection + * Clean up an entry, canceling connection */ static void destroy_entry(entry_t *entry) { diff --git a/src/libcharon/network/socket_manager.c b/src/libcharon/network/socket_manager.c index 0a7ac9d11..dc6ce226c 100644 --- a/src/libcharon/network/socket_manager.c +++ b/src/libcharon/network/socket_manager.c @@ -66,7 +66,7 @@ METHOD(socket_manager_t, receiver, status_t, this->lock->unlock(this->lock); return NOT_SUPPORTED; } - /* receive is blocking and the thread can be cancelled */ + /* receive is blocking and the thread can be canceled */ thread_cleanup_push((thread_cleanup_t)this->lock->unlock, this->lock); status = this->socket->receive(this->socket, packet); thread_cleanup_pop(TRUE); diff --git a/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_plugin.h b/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_plugin.h index ea2461fcc..2f626e682 100644 --- a/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_plugin.h +++ b/src/libcharon/plugins/eap_aka_3gpp/eap_aka_3gpp_plugin.h @@ -63,8 +63,8 @@ typedef struct eap_aka_3gpp_plugin_t eap_aka_3gpp_plugin_t; * SQN with its own locally stored value. This potentially allows an attacker * to do replay attacks. But since the server has proven his identity via IKE, * such an attack is only possible between server and AAA (if any). - * Note that SEQ_CHECK only controls the compile-time default behaviour, - * but the run-time behaviour can always be controlled by setting the + * Note that SEQ_CHECK only controls the compile-time default behavior, + * but the run-time behavior can always be controlled by setting the * charon.plugins.eap-aka-3gpp.seq_check config variable. */ struct eap_aka_3gpp_plugin_t { diff --git a/src/libcharon/plugins/load_tester/load_tester_config.c b/src/libcharon/plugins/load_tester/load_tester_config.c index 62d03c9eb..16040a102 100644 --- a/src/libcharon/plugins/load_tester/load_tester_config.c +++ b/src/libcharon/plugins/load_tester/load_tester_config.c @@ -624,7 +624,7 @@ static void add_ts(private_load_tester_config_t *this, /** * Allocate and install a dynamic external address to use */ -static host_t *allocate_addr(private_load_tester_config_t *this, uint num) +static host_t *allocate_addr(private_load_tester_config_t *this, u_int num) { enumerator_t *enumerator; mem_pool_t *pool; @@ -682,7 +682,7 @@ static host_t *allocate_addr(private_load_tester_config_t *this, uint num) /** * Generate a new initiator config, num = 0 for responder config */ -static peer_cfg_t* generate_config(private_load_tester_config_t *this, uint num) +static peer_cfg_t* generate_config(private_load_tester_config_t *this, u_int num) { ike_cfg_t *ike_cfg; child_cfg_t *child_cfg; diff --git a/src/libcharon/plugins/vici/libvici.h b/src/libcharon/plugins/vici/libvici.h index 297a32c32..ab7b7ffa8 100644 --- a/src/libcharon/plugins/vici/libvici.h +++ b/src/libcharon/plugins/vici/libvici.h @@ -58,7 +58,7 @@ * - vici_end_list(): Close a previously opened list * - vici_add_list_item() / vici_add_list_itemf(): Add list item * - * Once the request message is complete, it can be sent or cancelled with: + * Once the request message is complete, it can be sent or canceled with: * * - vici_submit() * - vici_free_req() diff --git a/src/libcharon/plugins/vici/perl/Vici-Session/README.pod b/src/libcharon/plugins/vici/perl/Vici-Session/README.pod index 1f5ff5962..f08697e14 100644 --- a/src/libcharon/plugins/vici/perl/Vici-Session/README.pod +++ b/src/libcharon/plugins/vici/perl/Vici-Session/README.pod @@ -640,7 +640,7 @@ print $res ? "ok\n" : "failed: $errmsg\n"; # close vici socket close($socket); -=head1 COPYRIGHT AND LICENCE +=head1 COPYRIGHT AND LICENSE Copyright (c) 2015 Andreas Steffen diff --git a/src/libcharon/sa/ike_sa.h b/src/libcharon/sa/ike_sa.h index f15455930..3b8a0cd52 100644 --- a/src/libcharon/sa/ike_sa.h +++ b/src/libcharon/sa/ike_sa.h @@ -1170,7 +1170,7 @@ struct ike_sa_t { void (*remove_task)(ike_sa_t *this, enumerator_t *enumerator); /** - * Flush a task queue, cancelling all tasks in it. + * Flush a task queue, canceling all tasks in it. * * @param queue queue type to flush */ diff --git a/src/libcharon/sa/ike_sa_manager.h b/src/libcharon/sa/ike_sa_manager.h index b68ec7c14..318620be0 100644 --- a/src/libcharon/sa/ike_sa_manager.h +++ b/src/libcharon/sa/ike_sa_manager.h @@ -142,7 +142,7 @@ struct ike_sa_manager_t { * * Measures are taken according to the uniqueness policy of the IKE_SA. * The return value indicates whether duplicates have been found and if - * further measures should be taken (e.g. cancelling an IKE_AUTH exchange). + * further measures should be taken (e.g. canceling an IKE_AUTH exchange). * check_uniqueness() must be called before the IKE_SA is complete, * deadlocks occur otherwise. * diff --git a/src/libcharon/sa/ikev1/task_manager_v1.c b/src/libcharon/sa/ikev1/task_manager_v1.c index d3089a6ab..8df2862dd 100644 --- a/src/libcharon/sa/ikev1/task_manager_v1.c +++ b/src/libcharon/sa/ikev1/task_manager_v1.c @@ -487,7 +487,7 @@ METHOD(task_manager_t, initiate, status_t, message_t *message; host_t *me, *other; exchange_type_t exchange = EXCHANGE_TYPE_UNDEFINED; - bool new_mid = FALSE, expect_response = FALSE, cancelled = FALSE, keep = FALSE; + bool new_mid = FALSE, expect_response = FALSE, canceled = FALSE, keep = FALSE; if (this->initiating.type != EXCHANGE_TYPE_UNDEFINED && this->initiating.type != INFORMATIONAL_V1) @@ -672,7 +672,7 @@ METHOD(task_manager_t, initiate, status_t, /* processed, but task needs another exchange */ continue; case ALREADY_DONE: - cancelled = TRUE; + canceled = TRUE; break; case FAILED: default: @@ -697,7 +697,7 @@ METHOD(task_manager_t, initiate, status_t, { /* tasks completed, no exchange active anymore */ this->initiating.type = EXCHANGE_TYPE_UNDEFINED; } - if (cancelled) + if (canceled) { message->destroy(message); return initiate(this); @@ -754,7 +754,7 @@ static status_t build_response(private_task_manager_t *this, message_t *request) task_t *task; message_t *message; host_t *me, *other; - bool delete = FALSE, cancelled = FALSE, expect_request = FALSE; + bool delete = FALSE, canceled = FALSE, expect_request = FALSE; me = request->get_destination(request); other = request->get_source(request); @@ -791,7 +791,7 @@ static status_t build_response(private_task_manager_t *this, message_t *request) } continue; case ALREADY_DONE: - cancelled = TRUE; + canceled = TRUE; break; case INVALID_ARG: if (task->get_type(task) == TASK_QUICK_MODE) @@ -813,7 +813,7 @@ static status_t build_response(private_task_manager_t *this, message_t *request) enumerator->destroy(enumerator); clear_packets(this->responding.packets); - if (cancelled) + if (canceled) { message->destroy(message); return initiate(this); diff --git a/src/libcharon/sa/ikev1/tasks/aggressive_mode.c b/src/libcharon/sa/ikev1/tasks/aggressive_mode.c index c38276c9c..beceb6ea1 100644 --- a/src/libcharon/sa/ikev1/tasks/aggressive_mode.c +++ b/src/libcharon/sa/ikev1/tasks/aggressive_mode.c @@ -103,7 +103,7 @@ static bool establish(private_aggressive_mode_t *this) { if (!charon->bus->authorize(charon->bus, TRUE)) { - DBG1(DBG_IKE, "final authorization hook forbids IKE_SA, cancelling"); + DBG1(DBG_IKE, "final authorization hook forbids IKE_SA, canceling"); return FALSE; } @@ -177,7 +177,7 @@ static status_t send_notify(private_aggressive_mode_t *this, notify_type_t type) this->ike_sa->queue_task(this->ike_sa, (task_t*)informational_create(this->ike_sa, notify)); - /* cancel all active/passive tasks in favour of informational */ + /* cancel all active/passive tasks in favor of informational */ this->ike_sa->flush_queue(this->ike_sa, this->initiator ? TASK_QUEUE_ACTIVE : TASK_QUEUE_PASSIVE); return ALREADY_DONE; @@ -190,7 +190,7 @@ static status_t send_delete(private_aggressive_mode_t *this) { this->ike_sa->queue_task(this->ike_sa, (task_t*)isakmp_delete_create(this->ike_sa, TRUE)); - /* cancel all active tasks in favour of informational */ + /* cancel all active tasks in favor of informational */ this->ike_sa->flush_queue(this->ike_sa, this->initiator ? TASK_QUEUE_ACTIVE : TASK_QUEUE_PASSIVE); return ALREADY_DONE; @@ -320,7 +320,7 @@ METHOD(task_t, build_i, status_t, if (charon->ike_sa_manager->check_uniqueness( charon->ike_sa_manager, this->ike_sa, FALSE)) { - DBG1(DBG_IKE, "cancelling Aggressive Mode due to " + DBG1(DBG_IKE, "canceling Aggressive Mode due to " "uniqueness policy"); return send_notify(this, AUTHENTICATION_FAILED); } @@ -507,7 +507,7 @@ METHOD(task_t, process_r, status_t, if (!charon->bus->authorize(charon->bus, FALSE)) { DBG1(DBG_IKE, "Aggressive Mode authorization hook forbids " - "IKE_SA, cancelling"); + "IKE_SA, canceling"); charon->bus->alert(charon->bus, ALERT_PEER_AUTH_FAILED); return send_delete(this); } @@ -529,7 +529,7 @@ METHOD(task_t, process_r, status_t, if (charon->ike_sa_manager->check_uniqueness( charon->ike_sa_manager, this->ike_sa, FALSE)) { - DBG1(DBG_IKE, "cancelling Aggressive Mode due to " + DBG1(DBG_IKE, "canceling Aggressive Mode due to " "uniqueness policy"); return send_delete(this); } @@ -709,7 +709,7 @@ METHOD(task_t, process_i, status_t, if (!charon->bus->authorize(charon->bus, FALSE)) { DBG1(DBG_IKE, "Aggressive Mode authorization hook forbids IKE_SA, " - "cancelling"); + "canceling"); return send_notify(this, AUTHENTICATION_FAILED); } diff --git a/src/libcharon/sa/ikev1/tasks/main_mode.c b/src/libcharon/sa/ikev1/tasks/main_mode.c index 35e860f09..58b00f2de 100644 --- a/src/libcharon/sa/ikev1/tasks/main_mode.c +++ b/src/libcharon/sa/ikev1/tasks/main_mode.c @@ -100,7 +100,7 @@ static bool establish(private_main_mode_t *this) { if (!charon->bus->authorize(charon->bus, TRUE)) { - DBG1(DBG_IKE, "final authorization hook forbids IKE_SA, cancelling"); + DBG1(DBG_IKE, "final authorization hook forbids IKE_SA, canceling"); return FALSE; } @@ -186,7 +186,7 @@ static status_t send_notify(private_main_mode_t *this, notify_type_t type) this->ike_sa->queue_task(this->ike_sa, (task_t*)informational_create(this->ike_sa, notify)); - /* cancel all active/passive tasks in favour of informational */ + /* cancel all active/passive tasks in favor of informational */ this->ike_sa->flush_queue(this->ike_sa, this->initiator ? TASK_QUEUE_ACTIVE : TASK_QUEUE_PASSIVE); return ALREADY_DONE; @@ -199,7 +199,7 @@ static status_t send_delete(private_main_mode_t *this) { this->ike_sa->queue_task(this->ike_sa, (task_t*)isakmp_delete_create(this->ike_sa, TRUE)); - /* cancel all active tasks in favour of informational */ + /* cancel all active tasks in favor of informational */ this->ike_sa->flush_queue(this->ike_sa, this->initiator ? TASK_QUEUE_ACTIVE : TASK_QUEUE_PASSIVE); return ALREADY_DONE; @@ -483,7 +483,7 @@ METHOD(task_t, process_r, status_t, if (!charon->bus->authorize(charon->bus, FALSE)) { DBG1(DBG_IKE, "Main Mode authorization hook forbids IKE_SA, " - "cancelling"); + "canceling"); charon->bus->alert(charon->bus, ALERT_PEER_AUTH_FAILED); return send_notify(this, AUTHENTICATION_FAILED); } @@ -565,7 +565,7 @@ METHOD(task_t, build_r, status_t, if (charon->ike_sa_manager->check_uniqueness( charon->ike_sa_manager, this->ike_sa, FALSE)) { - DBG1(DBG_IKE, "cancelling Main Mode due to uniqueness " + DBG1(DBG_IKE, "canceling Main Mode due to uniqueness " "policy"); return send_notify(this, AUTHENTICATION_FAILED); } @@ -725,7 +725,7 @@ METHOD(task_t, process_i, status_t, if (!charon->bus->authorize(charon->bus, FALSE)) { DBG1(DBG_IKE, "Main Mode authorization hook forbids IKE_SA, " - "cancelling"); + "canceling"); charon->bus->alert(charon->bus, ALERT_PEER_AUTH_FAILED); return send_delete(this); } @@ -748,7 +748,7 @@ METHOD(task_t, process_i, status_t, if (charon->ike_sa_manager->check_uniqueness( charon->ike_sa_manager, this->ike_sa, FALSE)) { - DBG1(DBG_IKE, "cancelling Main Mode due to uniqueness " + DBG1(DBG_IKE, "canceling Main Mode due to uniqueness " "policy"); return send_delete(this); } diff --git a/src/libcharon/sa/ikev1/tasks/quick_mode.c b/src/libcharon/sa/ikev1/tasks/quick_mode.c index 50c280fe5..f75775357 100644 --- a/src/libcharon/sa/ikev1/tasks/quick_mode.c +++ b/src/libcharon/sa/ikev1/tasks/quick_mode.c @@ -773,7 +773,7 @@ static status_t send_notify(private_quick_mode_t *this, notify_type_t type) this->ike_sa->queue_task(this->ike_sa, (task_t*)informational_create(this->ike_sa, notify)); - /* cancel all active/passive tasks in favour of informational */ + /* cancel all active/passive tasks in favor of informational */ this->ike_sa->flush_queue(this->ike_sa, this->initiator ? TASK_QUEUE_ACTIVE : TASK_QUEUE_PASSIVE); return ALREADY_DONE; diff --git a/src/libcharon/sa/ikev1/tasks/xauth.c b/src/libcharon/sa/ikev1/tasks/xauth.c index bec2cfe7d..ba2a5c841 100644 --- a/src/libcharon/sa/ikev1/tasks/xauth.c +++ b/src/libcharon/sa/ikev1/tasks/xauth.c @@ -150,17 +150,17 @@ static bool allowed(private_xauth_t *this) if (charon->ike_sa_manager->check_uniqueness(charon->ike_sa_manager, this->ike_sa, FALSE)) { - DBG1(DBG_IKE, "cancelling XAuth due to uniqueness policy"); + DBG1(DBG_IKE, "canceling XAuth due to uniqueness policy"); return FALSE; } if (!charon->bus->authorize(charon->bus, FALSE)) { - DBG1(DBG_IKE, "XAuth authorization hook forbids IKE_SA, cancelling"); + DBG1(DBG_IKE, "XAuth authorization hook forbids IKE_SA, canceling"); return FALSE; } if (!charon->bus->authorize(charon->bus, TRUE)) { - DBG1(DBG_IKE, "final authorization hook forbids IKE_SA, cancelling"); + DBG1(DBG_IKE, "final authorization hook forbids IKE_SA, canceling"); return FALSE; } return TRUE; diff --git a/src/libcharon/sa/ikev2/tasks/ike_auth.c b/src/libcharon/sa/ikev2/tasks/ike_auth.c index 54f51d1eb..1d3e82588 100644 --- a/src/libcharon/sa/ikev2/tasks/ike_auth.c +++ b/src/libcharon/sa/ikev2/tasks/ike_auth.c @@ -887,7 +887,7 @@ METHOD(task_t, process_r, status_t, /* another auth round done, invoke authorize hook */ if (!charon->bus->authorize(charon->bus, FALSE)) { - DBG1(DBG_IKE, "authorization hook forbids IKE_SA, cancelling"); + DBG1(DBG_IKE, "authorization hook forbids IKE_SA, canceling"); this->authentication_failed = TRUE; return NEED_MORE; } @@ -1104,7 +1104,7 @@ METHOD(task_t, build_r, status_t, if (charon->ike_sa_manager->check_uniqueness(charon->ike_sa_manager, this->ike_sa, this->initial_contact)) { - DBG1(DBG_IKE, "cancelling IKE_SA setup due to uniqueness policy"); + DBG1(DBG_IKE, "canceling IKE_SA setup due to uniqueness policy"); charon->bus->alert(charon->bus, ALERT_UNIQUE_KEEP); message->add_notify(message, TRUE, AUTHENTICATION_FAILED, chunk_empty); @@ -1112,7 +1112,7 @@ METHOD(task_t, build_r, status_t, } if (!charon->bus->authorize(charon->bus, TRUE)) { - DBG1(DBG_IKE, "final authorization hook forbids IKE_SA, cancelling"); + DBG1(DBG_IKE, "final authorization hook forbids IKE_SA, canceling"); goto peer_auth_failed; } if (this->ike_sa->supports_extension(this->ike_sa, EXT_IKE_REDIRECTION) && @@ -1362,7 +1362,7 @@ METHOD(task_t, process_i, status_t, /* another auth round done, invoke authorize hook */ if (!charon->bus->authorize(charon->bus, FALSE)) { - DBG1(DBG_IKE, "authorization forbids IKE_SA, cancelling"); + DBG1(DBG_IKE, "authorization forbids IKE_SA, canceling"); goto peer_auth_failed; } @@ -1453,7 +1453,7 @@ METHOD(task_t, process_i, status_t, if (!charon->bus->authorize(charon->bus, TRUE)) { DBG1(DBG_IKE, "final authorization hook forbids IKE_SA, " - "cancelling"); + "canceling"); goto peer_auth_failed; } DBG0(DBG_IKE, "IKE_SA %s[%d] established between %H[%Y]...%H[%Y]", diff --git a/src/libcharon/sa/task_manager.h b/src/libcharon/sa/task_manager.h index d84acf4ed..f9225c56a 100644 --- a/src/libcharon/sa/task_manager.h +++ b/src/libcharon/sa/task_manager.h @@ -293,7 +293,7 @@ struct task_manager_t { void (*flush)(task_manager_t *this); /** - * Flush a queue, cancelling all tasks. + * Flush a queue, canceling all tasks. * * @param queue queue to flush */ diff --git a/src/libstrongswan/fetcher/fetcher.h b/src/libstrongswan/fetcher/fetcher.h index 953bf11b9..73fe9a8c6 100644 --- a/src/libstrongswan/fetcher/fetcher.h +++ b/src/libstrongswan/fetcher/fetcher.h @@ -117,7 +117,7 @@ struct fetcher_t { * * The fetcher returns NOT_SUPPORTED to indicate that it is uncappable * to handle such URLs. Other return values indicate a failure, and - * fetching of that URL gets cancelled. + * fetching of that URL gets canceled. * If no FETCH_CALLBACK function is set as option, userdata must be * a chunk_t*. This chunk gets allocated, accumulated data using the * fetcher_default_callback() function. diff --git a/src/libstrongswan/plugins/keychain/keychain_creds.c b/src/libstrongswan/plugins/keychain/keychain_creds.c index d60f28691..4c47fe940 100644 --- a/src/libstrongswan/plugins/keychain/keychain_creds.c +++ b/src/libstrongswan/plugins/keychain/keychain_creds.c @@ -148,7 +148,7 @@ static job_requeue_t monitor_changes(private_keychain_creds_t *this) { this->loop = CFRunLoopGetCurrent(); - /* does not return until cancelled */ + /* does not return until canceled */ CFRunLoopRun(); this->loop = NULL; diff --git a/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c b/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c index a1400ad3b..8ee714026 100644 --- a/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c +++ b/src/libstrongswan/plugins/pkcs11/pkcs11_manager.c @@ -173,7 +173,7 @@ CALLBACK(dispatch_slot_events, job_requeue_t, rv = entry->lib->f->C_WaitForSlotEvent(0, &slot, NULL); if (rv == CKR_FUNCTION_NOT_SUPPORTED || rv == CKR_NO_EVENT) { - DBG1(DBG_CFG, "module '%s' does not support hot-plugging, cancelled", + DBG1(DBG_CFG, "module '%s' does not support hot-plugging, canceled", entry->lib->get_name(entry->lib)); return JOB_REQUEUE_NONE; } diff --git a/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c b/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c index da56954ab..f26ac9090 100644 --- a/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c +++ b/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c @@ -165,7 +165,7 @@ static bool read_result(private_winhttp_fetcher_t *this, HINTERNET request, } if (!this->cb(user, chunk_create(buf, received))) { - DBG1(DBG_LIB, "processing response failed or cancelled"); + DBG1(DBG_LIB, "processing response failed or canceled"); return FALSE; } } diff --git a/src/libstrongswan/processing/watcher.c b/src/libstrongswan/processing/watcher.c index 4466e91eb..25af6baf8 100644 --- a/src/libstrongswan/processing/watcher.c +++ b/src/libstrongswan/processing/watcher.c @@ -186,12 +186,12 @@ static void update(private_watcher_t *this) } /** - * Cleanup function if callback gets cancelled + * Cleanup function if callback gets canceled */ static void unregister(notify_data_t *data) { - /* if a thread processing a callback gets cancelled, we mark the entry - * as cancelled, like the callback would return FALSE. This is required + /* if a thread processing a callback gets canceled, we mark the entry + * as canceled, like the callback would return FALSE. This is required * to not queue this watcher again if all threads have been gone. */ data->keep = FALSE; } @@ -276,7 +276,7 @@ static void activate_all(private_watcher_t *this) { entry_t *entry; - /* When the watcher thread gets cancelled, we have to reactivate any entry + /* When the watcher thread gets canceled, we have to reactivate any entry * and signal threads in remove() to go on. */ this->mutex->lock(this->mutex); @@ -398,7 +398,7 @@ static job_requeue_t watch(private_watcher_t *this) if (res == -1 && errno == EINTR) { /* LinuxThreads interrupts poll(), but does not make it a - * cancellation point. Manually test if we got cancelled. */ + * cancellation point. Manually test if we got canceled. */ thread_cancellation_point(); } diff --git a/src/libstrongswan/tests/suites/test_threading.c b/src/libstrongswan/tests/suites/test_threading.c index 140c4fd39..2d41e5f30 100644 --- a/src/libstrongswan/tests/suites/test_threading.c +++ b/src/libstrongswan/tests/suites/test_threading.c @@ -1130,7 +1130,7 @@ static void *cancel_onoff_run(void *data_in) thread_cancelability(FALSE); data->cancellable = FALSE; - /* we should not get cancelled here */ + /* we should not get canceled here */ data->sem->wait(data->sem); data->cancellable = TRUE; diff --git a/src/libstrongswan/threading/thread.c b/src/libstrongswan/threading/thread.c index ecdcfa98e..cb71bc4e0 100644 --- a/src/libstrongswan/threading/thread.c +++ b/src/libstrongswan/threading/thread.c @@ -84,7 +84,7 @@ struct private_thread_t { bool detached_or_joined; /** - * TRUE if the threads has terminated (cancelled, via thread_exit or + * TRUE if the threads has terminated (canceled, via thread_exit or * returned from the main function) */ bool terminated; @@ -130,7 +130,7 @@ static thread_value_t *current_thread; #endif /* the signal handler for SIG_CANCEL uses pthread_exit to terminate the - * "cancelled" thread */ + * "canceled" thread */ static void cancel_signal_handler(int sig) { pthread_exit(NULL); diff --git a/src/libstrongswan/threading/thread.h b/src/libstrongswan/threading/thread.h index 1dfc3772d..ce9cdcda2 100644 --- a/src/libstrongswan/threading/thread.h +++ b/src/libstrongswan/threading/thread.h @@ -109,7 +109,7 @@ u_int thread_current_id(); /** * Push a function onto the current thread's cleanup handler stack. - * The callback function is called whenever the thread is cancelled, exits or + * The callback function is called whenever the thread is canceled, exits or * thread_cleanup_pop is called with TRUE as execute argument. * * @param cleanup function called on thread exit diff --git a/src/libstrongswan/threading/windows/thread.c b/src/libstrongswan/threading/windows/thread.c index 798d75be7..5f42c0fbc 100644 --- a/src/libstrongswan/threading/windows/thread.c +++ b/src/libstrongswan/threading/windows/thread.c @@ -87,7 +87,7 @@ struct private_thread_t { bool cancelability; /** - * Has the thread been cancelled by thread->cancel()? + * Has the thread been canceled by thread->cancel()? */ bool canceled; diff --git a/src/libstrongswan/utils/identification.h b/src/libstrongswan/utils/identification.h index 90d945d3f..aae0d161e 100644 --- a/src/libstrongswan/utils/identification.h +++ b/src/libstrongswan/utils/identification.h @@ -299,7 +299,7 @@ struct identification_t { * - ID_RFC822_ADDR: alice@wonderland.org * - ID_DER_ASN1_DN: C=CH, O=Linux strongSwan, CN=bob * - * In favour of pluto, domainnames are prepended with an @, since + * In favor of pluto, domainnames are prepended with an @, since * pluto resolves domainnames without an @ to IPv4 addresses. Since * we use a separate host_t class for addresses, this doesn't * make sense for us. diff --git a/src/libtls/tls_eap.c b/src/libtls/tls_eap.c index a784c4b47..c8d7a4eef 100644 --- a/src/libtls/tls_eap.c +++ b/src/libtls/tls_eap.c @@ -323,7 +323,7 @@ static chunk_t create_ack(private_tls_eap_t *this) default: break; } - DBG2(DBG_TLS, "sending %N acknowledgement packet", + DBG2(DBG_TLS, "sending %N acknowledgment packet", eap_type_names, this->type); return chunk_clone(chunk_from_thing(pkt)); } @@ -370,7 +370,7 @@ METHOD(tls_eap_t, process, status_t, { if (in.len == sizeof(eap_tls_packet_t)) { - DBG2(DBG_TLS, "received %N acknowledgement packet", + DBG2(DBG_TLS, "received %N acknowledgment packet", eap_type_names, this->type); status = build_pkt(this, out); if (status == INVALID_STATE && this->tls->is_complete(this->tls)) diff --git a/src/libtls/tls_hkdf.c b/src/libtls/tls_hkdf.c index c406b3ec9..84358d3ff 100644 --- a/src/libtls/tls_hkdf.c +++ b/src/libtls/tls_hkdf.c @@ -735,7 +735,7 @@ tls_hkdf_t *tls_hkdf_create(hash_algorithm_t hash_algorithm, chunk_t psk) DBG1(DBG_TLS, "%N not supported", hash_algorithm_names, hash_algorithm); } - DBG1(DBG_TLS, "unable to initialise HKDF"); + DBG1(DBG_TLS, "unable to initialize HKDF"); destroy(this); return NULL; } diff --git a/src/libtnccs/plugins/tnccs_11/tnccs_11.c b/src/libtnccs/plugins/tnccs_11/tnccs_11.c index 8b118e82c..802f11fff 100644 --- a/src/libtnccs/plugins/tnccs_11/tnccs_11.c +++ b/src/libtnccs/plugins/tnccs_11/tnccs_11.c @@ -360,7 +360,7 @@ METHOD(tls_t, process, status_t, this->mutex->lock(this->mutex); if (this->batch) { - DBG1(DBG_TNC, "cancelling TNCCS batch"); + DBG1(DBG_TNC, "canceling TNCCS batch"); this->batch->destroy(this->batch); this->batch_id--; } diff --git a/src/libtnccs/plugins/tnccs_20/tnccs_20_client.c b/src/libtnccs/plugins/tnccs_20/tnccs_20_client.c index c8fdf0d30..3f5c0b3f7 100644 --- a/src/libtnccs/plugins/tnccs_20/tnccs_20_client.c +++ b/src/libtnccs/plugins/tnccs_20/tnccs_20_client.c @@ -209,7 +209,7 @@ static void change_batch_type(private_tnccs_20_client_t *this, { if (this->batch_type != PB_BATCH_NONE) { - DBG1(DBG_TNC, "cancelling PB-TNC %N batch", + DBG1(DBG_TNC, "canceling PB-TNC %N batch", pb_tnc_batch_type_names, this->batch_type); while (this->messages->remove_last(this->messages, diff --git a/src/libtnccs/plugins/tnccs_20/tnccs_20_server.c b/src/libtnccs/plugins/tnccs_20/tnccs_20_server.c index 44889d7e9..b6666c9ad 100644 --- a/src/libtnccs/plugins/tnccs_20/tnccs_20_server.c +++ b/src/libtnccs/plugins/tnccs_20/tnccs_20_server.c @@ -142,7 +142,7 @@ static void change_batch_type(private_tnccs_20_server_t *this, { if (this->batch_type != PB_BATCH_NONE) { - DBG1(DBG_TNC, "cancelling PB-TNC %N batch", + DBG1(DBG_TNC, "canceling PB-TNC %N batch", pb_tnc_batch_type_names, this->batch_type); while (this->messages->remove_last(this->messages, diff --git a/src/manager/templates/static/jquery.js b/src/manager/templates/static/jquery.js index aad352b54..7aaed5e4d 100644 --- a/src/manager/templates/static/jquery.js +++ b/src/manager/templates/static/jquery.js @@ -1542,7 +1542,7 @@ jQuery.extend({ }); /* * A number of helper functions used for managing events. - * Many of the ideas behind this code orignated from + * Many of the ideas behind this code originated from * Dean Edwards' addEvent library. */ jQuery.event = { diff --git a/testing/tests/ha/active-passive/description.txt b/testing/tests/ha/active-passive/description.txt index 3af67f630..9306af60f 100644 --- a/testing/tests/ha/active-passive/description.txt +++ b/testing/tests/ha/active-passive/description.txt @@ -1,7 +1,7 @@ The roadwarriors carol and dave set up a connection each to the virtual gateway mars implemented by the two real gateways alice and moon in a High Availability (HA) setup -based on ClusterIP. The HA synchronisation link between the two +based on ClusterIP. The HA synchronization link between the two gateways is secured by an IPsec transport connection. At the outset alice is the active and moon is the passive gateway. After alice gets killed moon automatically takes over diff --git a/testing/tests/ikev2/dhcp-static-mac/description.txt b/testing/tests/ikev2/dhcp-static-mac/description.txt index 3a465963b..3a11740b2 100644 --- a/testing/tests/ikev2/dhcp-static-mac/description.txt +++ b/testing/tests/ikev2/dhcp-static-mac/description.txt @@ -1,4 +1,4 @@ -TThe roadwarriors carol and dave set up a connection each to gateway moon +The roadwarriors carol and dave set up a connection each to gateway moon and request a virtual IP via the IKEv2 configuration payload by using the vips = 0.0.0.0 parameter. The dhcp plugin on gateway moon then requests an IP address and DNS/WINS server information from DHCP server venus using the DHCP protocol. The IP addresses are assigned statically