VirtualBox

Ignore:
Timestamp:
Nov 2, 2022 7:40:16 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154372
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/providers/common/der/der_rsa_key.c

    r94320 r97372  
    11/*
    2  * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    44 * Licensed under the Apache License 2.0 (the "License").  You may not use
     
    305305    saltlen = ossl_rsa_pss_params_30_saltlen(pss);
    306306    trailerfield = ossl_rsa_pss_params_30_trailerfield(pss);
     307
     308    if (saltlen < 0) {
     309        ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_SALT_LENGTH);
     310        return 0;
     311    }
     312    if (trailerfield != 1) {
     313        ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_TRAILER);
     314        return 0;
     315    }
    307316
    308317    /* Getting default values */
     
    339348    return ossl_DER_w_begin_sequence(pkt, tag)
    340349        && (trailerfield == default_trailerfield
    341             || ossl_DER_w_ulong(pkt, 3, trailerfield))
    342         && (saltlen == default_saltlen || ossl_DER_w_ulong(pkt, 2, saltlen))
     350            || ossl_DER_w_uint32(pkt, 3, (uint32_t)trailerfield))
     351        && (saltlen == default_saltlen || ossl_DER_w_uint32(pkt, 2, (uint32_t)saltlen))
    343352        && DER_w_MaskGenAlgorithm(pkt, 1, pss)
    344353        && (hashalg_nid == default_hashalg_nid
Note: See TracChangeset for help on using the changeset viewer.

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