VirtualBox

Changeset 33229 in vbox for trunk/src


Ignore:
Timestamp:
Oct 19, 2010 1:23:02 PM (14 years ago)
Author:
vboxsync
Message:

DIGEST_LEN, not STRING_LEN as the terminator is not included

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp

    r33228 r33229  
    20232023    uint8_t abDigest[RTSHA256_HASH_SIZE];
    20242024    RTSha256(argv[0], strlen(argv[0]), abDigest);
    2025     char pszDigest[RTSHA256_STRING_LEN + 1];
     2025    char pszDigest[RTSHA256_DIGEST_LEN + 1];
    20262026    RTSha256ToString(abDigest, pszDigest, sizeof(pszDigest));
    20272027    RTPrintf("Password hash: %s\n", pszDigest);
  • trunk/src/VBox/HostServices/auth/simple/VBoxAuthSimple.cpp

    r33228 r33229  
    113113            uint8_t abDigest[RTSHA256_HASH_SIZE];
    114114            RTSha256(szPassword, strlen(szPassword), abDigest);
    115             char pszDigest[RTSHA256_STRING_LEN + 1];
     115            char pszDigest[RTSHA256_DIGEST_LEN + 1];
    116116            RTSha256ToString(abDigest, pszDigest, sizeof(pszDigest));
    117117                       
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