Bug 118832: with the removal of the crmfi.h inclusion, CRMFEncryptedKey

becomes an incomplete type, and aCC on HP-UX does not allow using
static_cast to cast a pointer to an incomplete type to void *.  Use
implicit conversion of a data pointer to void * instead. r=kaie. sr=dbaron.
This commit is contained in:
wtc%netscape.com 2003-03-06 15:04:46 +00:00
parent 8c29d3f5cf
commit 4df4c061fc

View File

@ -880,8 +880,7 @@ nsSetEscrowAuthority(CRMFCertRequest *certReq, nsKeyPairInfo *keyInfo,
return NS_ERROR_FAILURE;
CRMFPKIArchiveOptions *archOpt =
CRMF_CreatePKIArchiveOptions(crmfEncryptedPrivateKey,
NS_STATIC_CAST(void*,encrKey));
CRMF_CreatePKIArchiveOptions(crmfEncryptedPrivateKey, encrKey);
if (!archOpt) {
CRMF_DestroyEncryptedKey(encrKey);
return NS_ERROR_FAILURE;