Re: 10.5sdk compile problems (cssmtype.h)
Re: 10.5sdk compile problems (cssmtype.h)
- Subject: Re: 10.5sdk compile problems (cssmtype.h)
- From: Greg Guerin <email@hidden>
- Date: Sun, 11 Nov 2007 12:02:15 -0700
Nick Briggs wrote:
>// error
>invalid conversion from 'void* (*)(uint32, void*)' to 'void* (*)
>(CSSM_SIZE, void*)'
>initializing argument 6 of 'CSSM_RETURN CSSM_EncryptData (CSSM_CC_HANDLE,
>const CSSM_DATA*, uint32, cssm_data*, uint32,
>CSSM_SIZE*, cssm_data*)'
>//
>
>// our code
>uint32 bytesEncrypted;
>crtn = CSSM_EncryptDataUpdate(ccHandle, plainText,1,cipherText,
>1,&bytesEncrypted);
Maybe I'm missing something subtle, but the error is for this function:
CSSM_EncryptData()
and your source extract calls this function:
CSSM_EncryptDataUpdate()
Looking in the header file cssmapi.h, these are listed as separate
functions with different parameter types, and AFAICT one is not a macro
expansion of the other.
Or is your question "How is it that our code is calling one function,
CSSM_EncryptDataUpdate(), but the error is about an entirely different
function, CSSM_EncryptData()?"
If that's the question, my only suggestion is "Make sure you don't have any
private macros for CSSM_EncryptDataUpdate()".
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden