VirtualBox

Changeset 60330 in vbox for trunk


Ignore:
Timestamp:
Apr 5, 2016 11:01:53 AM (9 years ago)
Author:
vboxsync
Message:

bugref:8249. Explicit cast uint64_t to CertificateVersion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/CertificateImpl.cpp

    r60328 r60330  
    164164
    165165    Assert(mData->m->fValidX509);
    166     /** @todo make this ULONG, or better, an ENUM. */
    167     //aVersionNumber = Utf8StrFmt("%RU64", mData->m->X509.TbsCertificate.T0.Version.uValue.u + 1);                                */
    168166    /* version 1 has value 0, so +1.*/
    169 
    170     *aVersionNumber = mData->m->X509.TbsCertificate.T0.Version.uValue.u + 1;
     167    *aVersionNumber = (uint32_t)(mData->m->X509.TbsCertificate.T0.Version.uValue.u + 1);
    171168
    172169    return S_OK;
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