diff -Naur openca-ocspd-1.5.1.orig/src/ocsp_request.c openca-ocspd-1.5.1/src/ocsp_request.c --- openca-ocspd-1.5.1.orig/src/ocsp_request.c 2007-11-19 11:24:51.000000000 -0500 +++ openca-ocspd-1.5.1/src/ocsp_request.c 2007-11-19 11:28:17.000000000 -0500 @@ -162,8 +162,8 @@ /* Check for headers */ if( (!cont_len) && - ((pnt = strstr(buf, "Content-Length: " )) != NULL) ) { - if((pnt_end = strstr(pnt, "\r\n")) != NULL ) + ((pnt = strcasestr(buf, "Content-Length: " )) != NULL) ) { + if((pnt_end = strcasestr(pnt, "\r\n")) != NULL ) sscanf((char *) (pnt+16), "%d", &cont_len ); if(ocspd_conf->debug) { syslog(LOG_ERR, "DEBUG::Got Content Len [%d]", @@ -173,8 +173,8 @@ fullsize += newsize; if( (!headers) && - (((pnt = strstr(buf, "\r\n\r\n")) != NULL) || - ((pnt = strstr(buf, "\n\n")) != NULL)) ) { + (((pnt = strcasestr(buf, "\r\n\r\n")) != NULL) || + ((pnt = strcasestr(buf, "\n\n")) != NULL)) ) { while( (*pnt == '\n') || (*pnt == '\r')) { *pnt = '\x0'; @@ -201,7 +201,7 @@ } if( (!post) && (fullsize >= 5 ) && - ( strncmp( buf, "POST ", 5) != 0 )) { + ( strncasecmp( buf, "POST ", 5) != 0 )) { /* Got an error - probably not found (?) */ if( ocspd_conf->verbose) {