VirtualBox

Ignore:
Timestamp:
Sep 4, 2024 11:32:47 AM (6 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164679
Message:

openssl-3.1.7: Applied and adjusted our OpenSSL changes to 3.1.7. bugref:10757

Location:
trunk/src/libs/openssl-3.1.7
Files:
2 edited

Legend:

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

    • Property svn:mergeinfo
      •  

        old new  
        2525/vendor/openssl/3.0.3:151497-151729
        2626/vendor/openssl/3.0.7:154371
         27/vendor/openssl/3.1.7:164675-164677
  • trunk/src/libs/openssl-3.1.7/crypto/pkcs12/p12_crt.c

    r104078 r105945  
    11/*
    2  * Copyright 1999-2023 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 1999-2024 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    44 * Licensed under the Apache License 2.0 (the "License").  You may not use
     
    214214        goto err;
    215215    if (nid_key != -1) {
     216        /* This call does not take ownership of p8 */
    216217        bag = PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(nid_key, pass, -1, NULL, 0,
    217218                                                     iter, p8, ctx, propq);
     219    } else {
     220        bag = PKCS12_SAFEBAG_create0_p8inf(p8);
     221        if (bag != NULL)
     222           p8 = NULL; /* bag takes ownership of p8 */
     223    }
     224    /* This does not need to be in the error path */
     225    if (p8 != NULL)
    218226        PKCS8_PRIV_KEY_INFO_free(p8);
    219     } else
    220         bag = PKCS12_SAFEBAG_create0_p8inf(p8);
    221 
    222     if (!bag)
    223         goto err;
    224 
    225     if (!pkcs12_add_bag(pbags, bag))
     227
     228    if (bag == NULL || !pkcs12_add_bag(pbags, bag))
    226229        goto err;
    227230
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