Authen-ACE4
view release on metacpan or search on metacpan
// Not present on NT in Version 4
RETVAL = AceInitialize();
#endif
OUTPUT:
RETVAL
void
AceStartAuth(userID)
char* userID
PPCODE:
STRLEN userIDLen;
SDI_HANDLE handle;
SD_BOOL moreData;
SD_BOOL echoFlag;
SD_I32 respTimeout;
SD_I32 nextRespLen;
char promptStr[512];
SD_I32 promptStrLen = sizeof(promptStr);
SD_ERROR result;
PUSHs(sv_2mortal(newSViv(respTimeout)));
PUSHs(sv_2mortal(newSViv(nextRespLen)));
PUSHs(sv_2mortal(newSVpv(promptStr, strlen(promptStr))));
void
AceContinueAuth(handle, resp)
int handle
char* resp
PPCODE:
STRLEN respLen;
SD_BOOL moreData;
SD_BOOL echoFlag;
SD_I32 respTimeout;
SD_I32 nextRespLen;
char promptStr[512];
SD_I32 promptStrLen = sizeof(promptStr);
SD_ERROR result;
// Need the real length of the string
PUSHs(sv_2mortal(newSViv(respTimeout)));
PUSHs(sv_2mortal(newSViv(nextRespLen)));
// Sigh: promptStrLen is unreliable with the 6.1 SDK and AM 7.1
PUSHs(sv_2mortal(newSVpv(promptStr, strlen(promptStr))));
int
AceGetAuthenticationStatus(handle)
int handle
PPCODE:
SD_I32 authStatus = ACM_ACCESS_DENIED;
RETVAL = AceGetAuthenticationStatus(handle, &authStatus);
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(RETVAL)));
if (RETVAL == ACE_SUCCESS)
{
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(authStatus)));
}
int
AceGetAlphanumeric(handle)
int handle
PPCODE:
char val;
RETVAL = AceGetAlphanumeric(handle, &val);
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(RETVAL)));
if (RETVAL == ACE_SUCCESS)
{
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(val)));
}
int
AceGetMaxPinLen(handle)
int handle
PPCODE:
char val;
RETVAL = AceGetMaxPinLen(handle, &val);
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(RETVAL)));
if (RETVAL == ACE_SUCCESS)
{
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(val)));
}
int
AceGetMinPinLen(handle)
int handle
PPCODE:
char val;
RETVAL = AceGetMinPinLen(handle, &val);
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(RETVAL)));
if (RETVAL == ACE_SUCCESS)
{
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(val)));
}
int
AceGetShell(handle)
int handle
PPCODE:
char val[512];
RETVAL = AceGetShell(handle, val);
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(RETVAL)));
if (RETVAL == ACE_SUCCESS)
{
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSVpv(val, strlen(val))));
}
int
AceGetSystemPin(handle)
int handle
PPCODE:
char val[512];
RETVAL = AceGetSystemPin(handle, val);
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(RETVAL)));
if (RETVAL == ACE_SUCCESS)
{
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSVpv(val, strlen(val))));
}
int
AceGetTime(handle)
int handle
PPCODE:
INT32BIT val;
RETVAL = AceGetTime(handle, &val);
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(RETVAL)));
if (RETVAL == ACE_SUCCESS)
{
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(val)));
}
int
AceGetUserSelectable(handle)
int handle
PPCODE:
char val;
RETVAL = AceGetUserSelectable(handle, &val);
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(RETVAL)));
if (RETVAL == ACE_SUCCESS)
{
EXTEND(sp, 1);
PUSHs(sv_2mortal(newSViv(val)));
}
( run in 1.282 second using v1.01-cache-2.11-cpan-71847e10f99 )