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;
{
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);
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);
}
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);
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);