Changeset 95219 in vbox for trunk/src/libs/openssl-3.0.3/crypto/http
- Timestamp:
- Jun 8, 2022 7:43:44 AM (3 years ago)
- Location:
- trunk/src/libs/openssl-3.0.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.0.3
- Property svn:mergeinfo
-
old new 14 14 /vendor/openssl/3.0.1:150323-150324 15 15 /vendor/openssl/3.0.2:150728-150729 16 /vendor/openssl/current:147554-150727 16 /vendor/openssl/3.0.3:151497-151729 17 /vendor/openssl/current:147554-151496
-
- Property svn:mergeinfo
-
trunk/src/libs/openssl-3.0.3/crypto/http/http_client.c
r94404 r95219 323 323 for (i = 0; i < sk_CONF_VALUE_num(headers); i++) { 324 324 hdr = sk_CONF_VALUE_value(headers, i); 325 if (add_host && strcasecmp("host", hdr->name) == 0)325 if (add_host && OPENSSL_strcasecmp("host", hdr->name) == 0) 326 326 add_host = 0; 327 327 if (!OSSL_HTTP_REQ_CTX_add1_header(rctx, hdr->name, hdr->value)) … … 667 667 if (value != NULL && line_end != NULL) { 668 668 if (rctx->state == OHS_REDIRECT 669 && strcasecmp(key, "Location") == 0) {669 && OPENSSL_strcasecmp(key, "Location") == 0) { 670 670 rctx->redirection_url = value; 671 671 return 0; 672 672 } 673 if (rctx-> expected_ct != NULL674 && strcasecmp(key, "Content-Type") == 0) {675 if ( strcasecmp(rctx->expected_ct, value) != 0) {673 if (rctx->state == OHS_HEADERS && rctx->expected_ct != NULL 674 && OPENSSL_strcasecmp(key, "Content-Type") == 0) { 675 if (OPENSSL_strcasecmp(rctx->expected_ct, value) != 0) { 676 676 ERR_raise_data(ERR_LIB_HTTP, HTTP_R_UNEXPECTED_CONTENT_TYPE, 677 677 "expected=%s, actual=%s", … … 683 683 684 684 /* https://tools.ietf.org/html/rfc7230#section-6.3 Persistence */ 685 if ( strcasecmp(key, "Connection") == 0) {686 if ( strcasecmp(value, "keep-alive") == 0)685 if (OPENSSL_strcasecmp(key, "Connection") == 0) { 686 if (OPENSSL_strcasecmp(value, "keep-alive") == 0) 687 687 found_keep_alive = 1; 688 else if ( strcasecmp(value, "close") == 0)688 else if (OPENSSL_strcasecmp(value, "close") == 0) 689 689 found_keep_alive = 0; 690 } else if ( strcasecmp(key, "Content-Length") == 0) {690 } else if (OPENSSL_strcasecmp(key, "Content-Length") == 0) { 691 691 resp_len = (size_t)strtoul(value, &line_end, 10); 692 692 if (line_end == value || *line_end != '\0') {
Note:
See TracChangeset
for help on using the changeset viewer.