diff options
-rw-r--r-- | src/conftest/actions.c | 2 | ||||
-rw-r--r-- | src/conftest/conftest.c | 2 | ||||
-rw-r--r-- | src/conftest/hooks/add_notify.c | 2 | ||||
-rw-r--r-- | src/conftest/hooks/add_payload.c | 2 | ||||
-rw-r--r-- | src/conftest/hooks/unencrypted_notify.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/src/conftest/actions.c b/src/conftest/actions.c index 71e172833..e66e9d7f1 100644 --- a/src/conftest/actions.c +++ b/src/conftest/actions.c @@ -273,7 +273,7 @@ static void load_action(settings_t *settings, char *action) for (i = 0; i < countof(actions); i++) { - if (strncasecmp(actions[i].name, action, strlen(actions[i].name)) == 0) + if (strncaseeq(actions[i].name, action, strlen(actions[i].name))) { int delay; char *config; diff --git a/src/conftest/conftest.c b/src/conftest/conftest.c index 304cacf02..0c1690ab0 100644 --- a/src/conftest/conftest.c +++ b/src/conftest/conftest.c @@ -100,7 +100,7 @@ static bool load_trusted_cert(settings_t *settings, bool trusted) { certificate_t *cert = NULL; - if (strcaseeq(key, "x509")) + if (strncaseeq(key, "x509")) { cert = lib->creds->create(lib->creds, CRED_CERTIFICATE, CERT_X509, BUILD_FROM_FILE, value, BUILD_END); diff --git a/src/conftest/hooks/add_notify.c b/src/conftest/hooks/add_notify.c index 00833265f..de46ca81f 100644 --- a/src/conftest/hooks/add_notify.c +++ b/src/conftest/hooks/add_notify.c @@ -80,7 +80,7 @@ METHOD(listener_t, message, bool, return TRUE; } } - if (strncasecmp(this->data, "0x", 2) == 0) + if (strncaseeq(this->data, "0x", 2)) { data = chunk_skip(chunk_create(this->data, strlen(this->data)), 2); data = chunk_from_hex(data, NULL); diff --git a/src/conftest/hooks/add_payload.c b/src/conftest/hooks/add_payload.c index 845d512aa..03a47cc23 100644 --- a/src/conftest/hooks/add_payload.c +++ b/src/conftest/hooks/add_payload.c @@ -98,7 +98,7 @@ METHOD(listener_t, message, bool, } enumerator->destroy(enumerator); } - if (strncasecmp(this->data, "0x", 2) == 0) + if (strncaseeq(this->data, "0x", 2)) { data = chunk_skip(chunk_create(this->data, strlen(this->data)), 2); data = chunk_from_hex(data, NULL); diff --git a/src/conftest/hooks/unencrypted_notify.c b/src/conftest/hooks/unencrypted_notify.c index 8737158ad..80bdc64b7 100644 --- a/src/conftest/hooks/unencrypted_notify.c +++ b/src/conftest/hooks/unencrypted_notify.c @@ -75,7 +75,7 @@ METHOD(listener_t, ike_updown, bool, return TRUE; } } - if (strncasecmp(this->data, "0x", 2) == 0) + if (strncaseeq(this->data, "0x", 2)) { data = chunk_skip(chunk_create(this->data, strlen(this->data)), 2); data = chunk_from_hex(data, NULL); |