mirror of
https://github.com/curl/curl.git
synced 2026-08-26 17:43:31 +03:00
lib: drop two interim macros in favor of native libcurl API calls
Drop `strcasecompare` and `strncasecompare` in favor of libcurl API calls `curl_strequal` and `curl_strnequal` respectively. Also drop unnecessary `strcase.h` includes. Include `curl/curl.h` instead where it wasn't included before. Closes #17772
This commit is contained in:
parent
d553f7e9f0
commit
a3787f98ac
54 changed files with 223 additions and 260 deletions
|
|
@ -67,7 +67,6 @@
|
|||
#include "../connect.h" /* for the connect timeout */
|
||||
#include "../progress.h"
|
||||
#include "../select.h"
|
||||
#include "../strcase.h"
|
||||
#include "../strdup.h"
|
||||
#include "x509asn1.h"
|
||||
#include "../curl_printf.h"
|
||||
|
|
@ -227,9 +226,9 @@ static int wssl_do_file_type(const char *type)
|
|||
{
|
||||
if(!type || !type[0])
|
||||
return WOLFSSL_FILETYPE_PEM;
|
||||
if(strcasecompare(type, "PEM"))
|
||||
if(curl_strequal(type, "PEM"))
|
||||
return WOLFSSL_FILETYPE_PEM;
|
||||
if(strcasecompare(type, "DER"))
|
||||
if(curl_strequal(type, "DER"))
|
||||
return WOLFSSL_FILETYPE_ASN1;
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue