VirtualBox

Ignore:
Timestamp:
Nov 2, 2022 7:40:16 AM (2 years ago)
Author:
vboxsync
Message:

libs: Switch to openssl-3.0.7, bugref:10317

Location:
trunk/src/libs/openssl-3.0.7
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/openssl-3.0.7

    • Property svn:mergeinfo
      •  

        old new  
        1515/vendor/openssl/3.0.2:150728-150729
        1616/vendor/openssl/3.0.3:151497-151729
        17 /vendor/openssl/current:147554-151496
         17/vendor/openssl/3.0.7:154371
         18/vendor/openssl/current:147554-154370
  • trunk/src/libs/openssl-3.0.7/crypto/cmp/cmp_http.c

    r94320 r97372  
    11/*
    2  * Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 2007-2022 The OpenSSL Project Authors. All Rights Reserved.
    33 * Copyright Nokia 2007-2019
    44 * Copyright Siemens AG 2015-2019
     
    3232{
    3333    if (keep_alive != 0
    34         /* Ask for persistent connection only if may need more round trips */
     34        /*
     35         * Ask for persistent connection only if may need more round trips.
     36         * Do so even with disableConfirm because polling might be needed.
     37         */
    3538            && body_type != OSSL_CMP_PKIBODY_IR
    3639            && body_type != OSSL_CMP_PKIBODY_CR
  • trunk/src/libs/openssl-3.0.7/crypto/cmp/cmp_msg.c

    r94404 r97372  
    254254         || OSSL_CMP_CTX_reqExtensions_have_SAN(ctx) == 1)
    255255
    256 static const X509_NAME *determine_subj(OSSL_CMP_CTX *ctx,
    257                                        const X509_NAME *ref_subj,
    258                                        int for_KUR)
     256static const X509_NAME *determine_subj(OSSL_CMP_CTX *ctx, int for_KUR,
     257                                       const X509_NAME *ref_subj)
    259258{
    260259    if (ctx->subjectName != NULL)
    261260        return IS_NULL_DN(ctx->subjectName) ? NULL : ctx->subjectName;
    262 
    263     if (ref_subj != NULL && (ctx->p10CSR != NULL || for_KUR || !HAS_SAN(ctx)))
     261    if (ctx->p10CSR != NULL) /* first default is from any given CSR */
     262        return X509_REQ_get_subject_name(ctx->p10CSR);
     263    if (for_KUR || !HAS_SAN(ctx))
    264264        /*
    265          * For KUR, copy subject from the reference.
     265         * For KUR, copy subject from any reference cert as fallback.
    266266         * For IR or CR, do the same only if there is no subjectAltName.
    267267         */
     
    278278    STACK_OF(GENERAL_NAME) *default_sans = NULL;
    279279    const X509_NAME *ref_subj =
    280         ctx->p10CSR != NULL ? X509_REQ_get_subject_name(ctx->p10CSR) :
    281280        refcert != NULL ? X509_get_subject_name(refcert) : NULL;
    282     const X509_NAME *subject = determine_subj(ctx, ref_subj, for_KUR);
     281    const X509_NAME *subject = determine_subj(ctx, for_KUR, ref_subj);
    283282    const X509_NAME *issuer = ctx->issuer != NULL || refcert == NULL
    284283        ? (IS_NULL_DN(ctx->issuer) ? NULL : ctx->issuer)
  • trunk/src/libs/openssl-3.0.7/crypto/cmp/cmp_protect.c

    r94320 r97372  
    11/*
    2  * Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 2007-2022 The OpenSSL Project Authors. All Rights Reserved.
    33 * Copyright Nokia 2007-2019
    44 * Copyright Siemens AG 2015-2019
     
    9191
    9292        if ((prot = ASN1_BIT_STRING_new()) == NULL)
    93             return NULL;
     93            goto end;
    9494        /* OpenSSL defaults all bit strings to be encoded as ASN.1 NamedBitList */
    9595        prot->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07);
  • trunk/src/libs/openssl-3.0.7/crypto/cmp/cmp_util.c

    r94320 r97372  
    11/*
    2  * Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 2007-2022 The OpenSSL Project Authors. All Rights Reserved.
    33 * Copyright Nokia 2007-2019
    44 * Copyright Siemens AG 2015-2019
     
    102102                    /* no real problem if OPENSSL_strndup() returns NULL */
    103103                    *line = (int)line_number;
    104                     msg = strchr(p_level, ':') + 1;
    105                     if (*msg == ' ')
     104                    msg = strchr(p_level, ':');
     105                    if (msg != NULL && *++msg == ' ')
    106106                        msg++;
    107107                }
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