AnsweredAssumed Answered

Error using CA Access Control C API

Question asked by IdentityMinder on Jan 16, 2010
Latest reply on Mar 21, 2010 by IdentityMinder
Hi All,     I am using CA Access Control C APIs to create user in CA Access Control. For that, I am following CA Access Control API Guide. In this guide, they have given few sample code having functions like SEOSROUTE_RequestAuth, SEOSROUTE_VerifyCreate(). I was trying to run their sample code but I got header related issues which are as follows:     C:\api\include\seostype.h(603) : error C2061: syntax error : identifier 'mode_t'
C:\api\include\seostype.h(623) : error C2059: syntax error : '}'
C:\api\include\api_auth.h(199) : error C2061: syntax error : identifier 'gid_t'
C:\api\include\api_auth.h(201) : error C2059: syntax error : '}'
C:\api\include\api_auth.h(207) : error C2061: syntax error : identifier 'uid_t'
C:\api\include\api_auth.h(208) : error C2061: syntax error : identifier 'Groups'
C:\api\include\api_auth.h(208) : error C2059: syntax error : ';'
C:\api\include\api_auth.h(208) : error C3409: empty attribute block is not allowed
C:\api\include\api_auth.h(208) : error C2143: syntax error : missing ']' before 'constant'
C:\api\include\api_auth.h(211) : error C2059: syntax error : '}'
C:\api\include\api_auth.h(419) : error C2061: syntax error : identifier 'hKey_t'
C:\api\include\api_auth.h(419) : error C2059: syntax error : ';'
C:\api\include\api_auth.h(442) : error C2061: syntax error : identifier 'hKey_t'
C:\api\include\api_auth.h(446) : error C2059: syntax error : '}'
C:\api\include\api_auth.h(479) : error C2143: syntax error : missing ')' before '*'
C:\api\include\api_auth.h(479) : error C2081: 'API_L_REQUEST' : name in formal parameter list illegal
C:\api\include\api_auth.h(479) : error C2143: syntax error : missing '{' before '*'
C:\api\include\api_auth.h(479) : error C2059: syntax error : ','
C:\api\include\api_auth.h(479) : error C2059: syntax error : ')'
C:\api\include\api_auth.h(480) : error C2143: syntax error : missing ')' before '*'
C:\api\include\api_auth.h(480) : error C2081: 'API_L_REQUEST' : name in formal parameter list illegal
C:\api\include\api_auth.h(480) : error C2143: syntax error : missing '{' before '*'
C:\api\include\api_auth.h(480) : error C2059: syntax error : ','
C:\api\include\api_auth.h(480) : error C2059: syntax error : ')'
C:\api\include\api_auth.h(481) : error C2143: syntax error : missing ')' before '*'
C:\api\include\api_auth.h(481) : error C2081: 'API_L_REQUEST' : name in formal parameter list illegal
C:\api\include\api_auth.h(481) : error C2143: syntax error : missing '{' before '*'
C:\api\include\api_auth.h(481) : error C2059: syntax error : ','
C:\api\include\api_auth.h(481) : error C2059: syntax error : ')'
C:\api\include\api_auth.h(482) : error C2143: syntax error : missing ')' before '*'
C:\api\include\api_auth.h(482) : error C2081: 'API_L_REQUEST' : name in formal parameter list illegal
C:\api\include\api_auth.h(482) : error C2143: syntax error : missing '{' before '*'
C:\api\include\api_auth.h(482) : error C2059: syntax error : ','
C:\api\include\api_auth.h(482) : error C2059: syntax error : ')'     I am not able to make anything out of these errors. I am using CA Access Control   r12.5 and following CA Access Control API Guide 5.1. I am running the code thorugh nmake.exe (Visual Studio 2005). I am attaching my code,makefile and screenshot of error  for your reference. If anyone has worked on CA Access Control C API, then kindly reply.     Thanks   

Attachments

Outcomes