1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-13 13:05:03 -05:00

s/strcasecmp/strequal to make it more portable

This commit is contained in:
Daniel Stenberg 2008-06-19 05:42:45 +00:00
parent 70d834c512
commit c1e2341f0a

View File

@ -43,6 +43,7 @@
#include "strequal.h" #include "strequal.h"
#include "select.h" #include "select.h"
#include "sslgen.h" #include "sslgen.h"
#include "strequal.h"
#define _MPRINTF_REPLACE /* use the internal *printf() functions */ #define _MPRINTF_REPLACE /* use the internal *printf() functions */
#include <curl/mprintf.h> #include <curl/mprintf.h>
@ -203,7 +204,7 @@ static SECStatus set_ciphers(struct SessionHandle *data, PRFileDesc * model,
found = PR_FALSE; found = PR_FALSE;
for(i=0; i<ciphernum; i++) { for(i=0; i<ciphernum; i++) {
if(!strcasecmp(cipher, cipherlist[i].name)) { if(strequal(cipher, cipherlist[i].name)) {
cipher_state[i] = PR_TRUE; cipher_state[i] = PR_TRUE;
found = PR_TRUE; found = PR_TRUE;
break; break;