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:
2 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_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)
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