VirtualBox

Ignore:
Timestamp:
Sep 4, 2024 11:32:47 AM (5 months ago)
Author:
vboxsync
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:
3 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/engine/eng_pkey.c

    r104078 r105945  
    11/*
    2  * Copyright 2001-2023 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 2001-2024 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    44 * Licensed under the Apache License 2.0 (the "License").  You may not use
     
    8181        return NULL;
    8282    }
    83     /* We enforce check for legacy key */
    84     switch (EVP_PKEY_get_id(pkey)) {
    85     case EVP_PKEY_RSA:
    86         {
    87         RSA *rsa = EVP_PKEY_get1_RSA(pkey);
    88         EVP_PKEY_set1_RSA(pkey, rsa);
    89         RSA_free(rsa);
    90         }
    91         break;
    92 #  ifndef OPENSSL_NO_EC
    93     case EVP_PKEY_SM2:
    94     case EVP_PKEY_EC:
    95         {
    96         EC_KEY *ec = EVP_PKEY_get1_EC_KEY(pkey);
    97         EVP_PKEY_set1_EC_KEY(pkey, ec);
    98         EC_KEY_free(ec);
    99         }
    100         break;
    101 #  endif
    102 #  ifndef OPENSSL_NO_DSA
    103     case EVP_PKEY_DSA:
    104         {
    105         DSA *dsa = EVP_PKEY_get1_DSA(pkey);
    106         EVP_PKEY_set1_DSA(pkey, dsa);
    107         DSA_free(dsa);
    108         }
    109         break;
    110 #endif
    111 #  ifndef OPENSSL_NO_DH
    112     case EVP_PKEY_DH:
    113         {
    114         DH *dh = EVP_PKEY_get1_DH(pkey);
    115         EVP_PKEY_set1_DH(pkey, dh);
    116         DH_free(dh);
    117         }
    118         break;
    119 #endif
    120     default:
    121         /*Do nothing */
    122         break;
    123     }
    124 
    12583    return pkey;
    12684}
  • trunk/src/libs/openssl-3.1.7/crypto/engine/eng_table.c

    r104078 r105945  
    11/*
    2  * Copyright 2001-2023 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 2001-2024 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    44 * Licensed under the Apache License 2.0 (the "License").  You may not use
     
    216216        return NULL;
    217217    }
     218
     219    if (!CRYPTO_THREAD_write_lock(global_engine_lock))
     220        return NULL;
     221
    218222    ERR_set_mark();
    219     if (!CRYPTO_THREAD_write_lock(global_engine_lock))
    220         goto end;
    221223    /*
    222224     * Check again inside the lock otherwise we could race against cleanup
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