Small and Fast (was: Re: Add InitializeSecurityContext for
schannel)
Marcus Meissner
marcus at jet.franken.de
Tue Feb 14 16:40:32 CST 2006
On Tue, Feb 14, 2006 at 11:22:09PM +0100, Detlef Riekenberg wrote:
> Am Dienstag, den 14.02.2006, 17:34 +0530 schrieb Vijay Kiran Kamuju:
>
> > Add InitializeSecurityContext for schannel in secur32.dll
>
> +static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextW(
> + PCredHandle phCredential, PCtxtHandle phContext, SEC_WCHAR
> *pszTargetName,
> + ULONG fContextReq, ULONG Reserved1, ULONG TargetDataRep,
> + PSecBufferDesc pInput,ULONG Reserved2, PCtxtHandle phNewContext,
> + PSecBufferDesc pOutput, ULONG *pfContextAttr, PTimeStamp ptsExpiry)
> +{
>
> I Remembered a statement from fefe (diet-libc => www.fefe.de) about
> "Writing Small and Fast Software":
>
> It is still clear, what each Argument does, when you remove the
> Variable-Names from the Declaration?
> - Yes: Efficient Design.
> - No: Your Interface is to generic == bloated
>
> static SECURITY_STATUS SEC_ENTRY schan_InitializeSecurityContextW(
> PCredHandle, PCtxtHandle, SEC_WCHAR *, ULONG, ULONG, ULONG,
> PSecBufferDesc, ULONG, PCtxtHandle, PSecBufferDesc, ULONG, PTimeStamp)
> {
>
> We all should thank the People who did such a Design :-)
However, this only works in newer C compilers as far as I know... ;)
Ciao, Marcus
More information about the wine-devel
mailing list