VirtualBox

Ignore:
Timestamp:
Jun 8, 2022 7:43:44 AM (3 years ago)
Author:
vboxsync
Message:

libs/openssl: Switched to v3.0.3, bugref:10128

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  
        1414/vendor/openssl/3.0.1:150323-150324
        1515/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
  • trunk/src/libs/openssl-3.0.3/crypto/http/http_client.c

    r94404 r95219  
    323323    for (i = 0; i < sk_CONF_VALUE_num(headers); i++) {
    324324        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)
    326326            add_host = 0;
    327327        if (!OSSL_HTTP_REQ_CTX_add1_header(rctx, hdr->name, hdr->value))
     
    667667        if (value != NULL && line_end != NULL) {
    668668            if (rctx->state == OHS_REDIRECT
    669                     && strcasecmp(key, "Location") == 0) {
     669                    && OPENSSL_strcasecmp(key, "Location") == 0) {
    670670                rctx->redirection_url = value;
    671671                return 0;
    672672            }
    673             if (rctx->expected_ct != NULL
    674                     && 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) {
    676676                    ERR_raise_data(ERR_LIB_HTTP, HTTP_R_UNEXPECTED_CONTENT_TYPE,
    677677                                   "expected=%s, actual=%s",
     
    683683
    684684            /* 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)
    687687                    found_keep_alive = 1;
    688                 else if (strcasecmp(value, "close") == 0)
     688                else if (OPENSSL_strcasecmp(value, "close") == 0)
    689689                    found_keep_alive = 0;
    690             } else if (strcasecmp(key, "Content-Length") == 0) {
     690            } else if (OPENSSL_strcasecmp(key, "Content-Length") == 0) {
    691691                resp_len = (size_t)strtoul(value, &line_end, 10);
    692692                if (line_end == value || *line_end != '\0') {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette