len -= 4;
/* Does the server support the STARTTLS capability? */
- if(len >= 8 && !memcmp(line, "STARTTLS", 8))
+ if(len >= 8 && curl_strnequal(line, "STARTTLS", 8))
smtpc->tls_supported = TRUE;
/* Does the server support the SIZE capability? */
- else if(len >= 4 && !memcmp(line, "SIZE", 4))
+ else if(len >= 4 && curl_strnequal(line, "SIZE", 4))
smtpc->size_supported = TRUE;
/* Does the server support the UTF-8 capability? */
- else if(len >= 8 && !memcmp(line, "SMTPUTF8", 8))
+ else if(len >= 8 && curl_strnequal(line, "SMTPUTF8", 8))
smtpc->utf8_supported = TRUE;
/* Does the server support authentication? */
- else if(len >= 5 && !memcmp(line, "AUTH ", 5)) {
+ else if(len >= 5 && curl_strnequal(line, "AUTH ", 5)) {
smtpc->auth_supported = TRUE;
/* Advance past the AUTH keyword */