VirtualBox

Ignore:
Timestamp:
May 10, 2020 12:54:41 PM (5 years ago)
Author:
vboxsync
Message:

IPRT/pkcs7-sanity.cpp: Accept RTASN1TYPE_NOT_PRESENT in addition to RTASN1TYPE_NULL for digest algorithm parameters. OpenSSL cms_sign produces SignedData structures with them not-present. bugref:9699

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/pkcs7-sanity.cpp

    r82968 r84239  
    7272                                     "%s: SignedData.DigestAlgorithms[%i] is not known: %s",
    7373                                     pszErrorTag, i, pSignedData->DigestAlgorithms.papItems[i]->Algorithm.szObjId);
    74             if (pSignedData->DigestAlgorithms.papItems[i]->Parameters.enmType != RTASN1TYPE_NULL)
     74            if (   pSignedData->DigestAlgorithms.papItems[i]->Parameters.enmType != RTASN1TYPE_NULL
     75                && pSignedData->DigestAlgorithms.papItems[i]->Parameters.enmType != RTASN1TYPE_NOT_PRESENT)
    7576                return RTErrInfoSetF(pErrInfo, VERR_CR_PKCS7_DIGEST_PARAMS_NOT_IMPL,
    7677                                     "%s: SignedData.DigestAlgorithms[%i] has parameters: tag=%u",
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