* Call once at startup. The resulting comcryptObj can be reused multiple
* times.
*/
-comcryptObj comcryptAlloc()
+comcryptObj comcryptAlloc(void)
{
comcryptPriv *cpriv = (comcryptPriv *) ascMalloc(sizeof(comcryptPriv));
* We already wrote tokens and longcode to cipherText; verify we
* didn't overrun
*/
- totalCipherTextLen = (longCodePtr - startCtextPtr);
+ totalCipherTextLen = (unsigned)(longCodePtr - startCtextPtr);
if(*cipherTextLen < totalCipherTextLen) {
ddprintf(("comcryptBlock: short block (2)\n"));
return CCR_OUTBUFFER_TOO_SMALL;
numByteCodes = *byteCodePtr++;
level2 = 1;
}
- *blockSize = (byteCodePtr - cipherText) + numByteCodes;
+ *blockSize = (unsigned)(byteCodePtr - cipherText) + numByteCodes;
if(*blockSize > cipherTextLen) {
return DCB_SHORT;
}
}
} /* main loop */
- *plainTextLen = plainText - outorigin;
+ *plainTextLen = (unsigned)(plainText - outorigin);
return CCR_SUCCESS;
}