On line 3126 in modules/system/nt.c (Pike 7.4.44 source tarball) I found the following:
typedef SECURITY_STATUS (WINAPI *querysecuritypackageinfotype)(SEC_CHAR*,PSecPkgInfo*); typedef SECURITY_STATUS (WINAPI *acquirecredentialshandletype)(SEC_CHAR*,SEC_CHAR*,ULONG,PLUID,PVOID,SEC_GET_KEY_FN,PVOID,PCredHandle,PTimeStamp); typedef SECURITY_STATUS (WINAPI *freecredentialshandletype)(PCredHandle); typedef SECURITY_STATUS (WINAPI *acceptsecuritycontexttype)(PCredHandle,PCtxtHandle,PSecBufferDesc,ULONG,ULONG,PCtxtHandle,PSecBufferDesc,PULONG,PTimeStamp); typedef SECURITY_STATUS (WINAPI *completeauthtokentype)(PCtxtHandle,PSecBufferDesc); typedef SECURITY_STATUS (WINAPI *deletesecuritycontexttype)(PCtxtHandle); typedef SECURITY_STATUS (WINAPI *freecontextbuffertype)(PVOID); typedef SECURITY_STATUS (WINAPI *querycontextattributestype)(PCtxtHandle,ULONG,PVOID);
I do not understand what these lines should accomplish. I only know that my compiler tells me
C:/msys/1.0/home/SSS668/Pike-v7.4.44/src/modules/system/nt.c: At top level: C:/msys/1.0/home/SSS668/Pike-v7.4.44/src/modules/system/nt.c:3126: parse error before '*' token C:/msys/1.0/home/SSS668/Pike-v7.4.44/src/modules/system/nt.c:3126: parse error before '*' token C:/msys/1.0/home/SSS668/Pike-v7.4.44/src/modules/system/nt.c:3126: warning: type defaults to `int' in declaration of `SECURITY_STATUS' C:/msys/1.0/home/SSS668/Pike-v7.4.44/src/modules/system/nt.c:3126: `SECURITY_STATUS' declared as function returning a function
and so on.
Can someone explain what the code is supposed to do or even better, tell me how to fix the problem..