VirtualBox

Changeset 57574 in vbox


Ignore:
Timestamp:
Aug 28, 2015 2:29:51 AM (9 years ago)
Author:
vboxsync
Message:

rtCrx509TbsCertificate_AddKeyUsageFlags: Fix assertion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/x509-core.cpp

    r57358 r57574  
    12511251{
    12521252    AssertReturnVoid(pExtension->enmValue == RTCRX509EXTENSIONVALUE_BIT_STRING);
    1253     AssertReturnVoid(pExtension->ExtnValue.pEncapsulated->cb <= 2);
     1253    /* 3 = 1 byte for unused bit count, followed by one or two bytes containing actual bits. RFC-5280 defines bits 0 thru 8. */
     1254    AssertReturnVoid(pExtension->ExtnValue.pEncapsulated->cb <= 3);
    12541255    pThis->T3.fKeyUsage |= (uint32_t)RTAsn1BitString_GetAsUInt64((PCRTASN1BITSTRING)pExtension->ExtnValue.pEncapsulated);
    12551256}
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