VirtualBox

Changeset 45570 in vbox for trunk/src


Ignore:
Timestamp:
Apr 16, 2013 12:53:47 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Fixing compile warning in r85060.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkReply.cpp

    r45569 r45570  
    382382{
    383383    /* PCA 3G5 secure hash algorithm 1: */
    384     const char baSha1PCA3G5[] =
     384    const unsigned char baSha1PCA3G5[] =
    385385    {
    386386        0x4e, 0xb6, 0xd5, 0x78, 0x49, 0x9b, 0x1c, 0xcf, 0x5f, 0x58,
     
    388388    };
    389389    /* PCA 3G5 secure hash algorithm 512: */
    390     const char baSha512PCA3G5[] =
     390    const unsigned char baSha512PCA3G5[] =
    391391    {
    392392        0xd4, 0xf8, 0x10, 0x54, 0x72, 0x77, 0x0a, 0x2d,
     
    399399        0xd2, 0x6b, 0xa8, 0x9a, 0xf0, 0xb3, 0x6a, 0x01
    400400    };
    401     QByteArray pca3G5sha1 = QByteArray::fromRawData(baSha1PCA3G5, sizeof(baSha1PCA3G5));
    402     QByteArray pca3G5sha512 = QByteArray::fromRawData(baSha512PCA3G5, sizeof(baSha512PCA3G5));
     401    QByteArray pca3G5sha1 = QByteArray::fromRawData((const char *)baSha1PCA3G5, sizeof(baSha1PCA3G5));
     402    QByteArray pca3G5sha512 = QByteArray::fromRawData((const char *)baSha512PCA3G5, sizeof(baSha512PCA3G5));
    403403
    404404    /* Verify certificate: */
     
    410410{
    411411    /* PCA 3 secure hash algorithm 1: */
    412     const char baSha1PCA3[] =
     412    const unsigned char baSha1PCA3[] =
    413413    {
    414414        0xa1, 0xdb, 0x63, 0x93, 0x91, 0x6f, 0x17, 0xe4, 0x18, 0x55,
     
    416416    };
    417417    /* PCA 3 secure hash algorithm 512: */
    418     const char baSha512PCA3[] =
     418    const unsigned char baSha512PCA3[] =
    419419    {
    420420        0xbb, 0xf7, 0x8a, 0x19, 0x9f, 0x37, 0xee, 0xa2,
     
    427427        0x0a, 0x67, 0x83, 0x87, 0xc5, 0x45, 0xc4, 0x99
    428428    };
    429     QByteArray pca3sha1 = QByteArray::fromRawData(baSha1PCA3, sizeof(baSha1PCA3));
    430     QByteArray pca3sha512 = QByteArray::fromRawData(baSha512PCA3, sizeof(baSha512PCA3));
     429    QByteArray pca3sha1 = QByteArray::fromRawData((const char *)baSha1PCA3, sizeof(baSha1PCA3));
     430    QByteArray pca3sha512 = QByteArray::fromRawData((const char *)baSha512PCA3, sizeof(baSha512PCA3));
    431431
    432432    /* Verify certificate: */
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