aboutsummaryrefslogtreecommitdiffstats
path: root/src/conftest/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'src/conftest/hooks')
-rw-r--r--src/conftest/hooks/add_notify.c2
-rw-r--r--src/conftest/hooks/add_payload.c2
-rw-r--r--src/conftest/hooks/unencrypted_notify.c2
3 files changed, 3 insertions, 3 deletions
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);