- Timestamp:
- Dec 31, 2021 7:53:03 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/crypto/x509-core.cpp
r86610 r93112 496 496 break; 497 497 } 498 *pcch -= pszPrev - pszStart;498 *pcch -= (size_t)(pszPrev - pszStart); 499 499 return pszPrev; 500 500 } … … 532 532 533 533 *ppsz = pszPrev; 534 *pcch -= pszPrev - pszStart;534 *pcch -= (size_t)(pszPrev - pszStart); 535 535 return uc; 536 536 } … … 542 542 { 543 543 const char *psz = *ppsz; 544 RTUNICP uc =*psz;544 RTUNICP uc = (RTUNICP)*psz; 545 545 if (uc < 0x80) 546 546 { … … 552 552 int rc = RTStrGetCpEx(ppsz, &uc); 553 553 AssertRCReturn(rc, uc); 554 size_t cchCp = *ppsz - psz;554 size_t cchCp = (size_t)(*ppsz - psz); 555 555 AssertReturn(cchCp <= *pcch, 0); 556 556 *pcch -= cchCp; … … 766 766 } const g_aRdnMap[] = 767 767 { 768 { "0.9.2342.19200300.100.1.1", RT_STR_TUPLE("uid"), "userid" }, 768 769 { "0.9.2342.19200300.100.1.3", RT_STR_TUPLE("Mail"), "Rfc822Mailbox" }, 769 770 { "0.9.2342.19200300.100.1.25", RT_STR_TUPLE("DC"), "DomainComponent" }, … … 1134 1135 if (!pszEnd) 1135 1136 pszEnd = strchr(pszStart, '\0'); 1136 if (memchr(pszStart, ':', pszEnd - pszStart))1137 if (memchr(pszStart, ':', (size_t)(pszEnd - pszStart))) 1137 1138 do 1138 1139 pszEnd--; … … 1143 1144 * Drop access credentials at the front of the string if present. 1144 1145 */ 1145 const char *pszAt = (const char *)memchr(pszStart, '@', pszEnd - pszStart);1146 const char *pszAt = (const char *)memchr(pszStart, '@', (size_t)(pszEnd - pszStart)); 1146 1147 if (pszAt) 1147 1148 pszStart = pszAt + 1; … … 1152 1153 if (pszEnd != pszStart) 1153 1154 { 1154 *pcchHostName = pszEnd - pszStart;1155 *pcchHostName = (size_t)(pszEnd - pszStart); 1155 1156 *pchHostName = pszStart; 1156 1157 return true;
Note:
See TracChangeset
for help on using the changeset viewer.