VirtualBox

Changeset 73706 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 16, 2018 9:40:01 AM (6 years ago)
Author:
vboxsync
Message:

IPRT: Better fix for missing md4 failure; adding information status codes for indicating deprecated and compromised digests when used. [build fix,++]

Location:
trunk/src/VBox/Runtime/common/crypto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/pkix-sign.cpp

    r73672 r73706  
    241241     * Check the result.
    242242     */
    243     if (RT_SUCCESS(rcIprt) && RT_SUCCESS(rcOssl))
    244         return VINF_SUCCESS;
    245     if (RT_FAILURE_NP(rcIprt) && RT_FAILURE_NP(rcOssl))
     243    if (   (RT_SUCCESS(rcIprt) && RT_SUCCESS(rcOssl))
     244        || (RT_FAILURE_NP(rcIprt) && RT_FAILURE_NP(rcOssl))
     245        || (RT_SUCCESS(rcIprt) && rcOssl == VERR_CR_PKIX_OSSL_CIPHER_ALGO_NOT_KNOWN_EVP) )
    246246        return rcIprt;
    247247    AssertMsgFailed(("rcIprt=%Rrc rcOssl=%Rrc\n", rcIprt, rcOssl));
  • trunk/src/VBox/Runtime/common/crypto/pkix-verify.cpp

    r73705 r73706  
    152152     * Check the result.
    153153     */
    154     if (   RT_SUCCESS(rcIprt) && RT_SUCCESS(rcOssl)
     154    if (   (RT_SUCCESS(rcIprt) && RT_SUCCESS(rcOssl))
    155155        || (RT_FAILURE_NP(rcIprt) && RT_FAILURE_NP(rcOssl))
    156156        || (RT_SUCCESS(rcIprt) && rcOssl == VERR_CR_PKIX_OSSL_CIPHER_ALGO_NOT_KNOWN_EVP) )
     
    274274     * Check the result.
    275275     */
    276     if (   RT_SUCCESS(rcIprt) && RT_SUCCESS(rcOssl)
     276    if (   (RT_SUCCESS(rcIprt) && RT_SUCCESS(rcOssl))
    277277        || (RT_FAILURE_NP(rcIprt) && RT_FAILURE_NP(rcOssl))
    278278        || (RT_SUCCESS(rcIprt) && rcOssl == VERR_CR_PKIX_OSSL_CIPHER_ALGO_NOT_KNOWN_EVP) )
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