Symantec Privileged Access Management

  • 1.  Error using CA Access Control C API

    Posted Jan 15, 2010 11:51 PM
      |   view attached
    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   

    Attachment(s)

    zip
    Auth.zip   125 KB 1 version


  • 2.  Re: Error using CA Access Control C API

    Posted Jan 25, 2010 06:27 AM
    Hello,  I suggest you see the following link that contains the AC 8.0SP1 SDK guide:  https://support.ca.com/cadocs/0/g014023e.zip
     
    The guide is 'AC_SDK_ENU.pdf' and is included in the R12 SP1documentation. The guide you are using from 5.1 is a bit dated and the product has changed with many new features and improvements.thanks.


  • 3.  Re: Error using CA Access Control C API
    Best Answer

    Posted Mar 21, 2010 02:56 AM
    Hi All,    This issue is resolved :smileyhappy:.    I would be glad to help  if someone is facing any issue while using CA Access Control C API.  Cheers