Completed the Authtoken Validate Service changes.

This commit is contained in:
Juan Carlos Luciani
2006-09-14 15:54:27 +00:00
parent b25b691642
commit e9680fbfa1
22 changed files with 340 additions and 801 deletions

View File

@@ -19,7 +19,7 @@ Execute script: make.sh.
RUNNING APPLICATION
Execute the following command: ./pamTest -s testService
Execute the following command: ./pamTest -s testservice

View File

@@ -1,2 +1,2 @@
#!/bin/bash
gcc -o pamTest test.c -g -I"../../.." -I"../../../../include" -DN_PLAT_UNIX -L"../../../lib/Release" -lpam
gcc -o pamTest test.c -g -DN_PLAT_UNIX -L"../../../lib/Release" -lpam

View File

@@ -251,7 +251,7 @@ ProcessConnection(int connSock)
//=======================================================================--
{
char userName[] = "CasaPrincipal";
char token[4096] = {0};
char token[8192] = {0};
char helloString[100] = {0};
AppUserData appUserData = {userName, token};
struct pam_conv conv = {Converse, &appUserData};
@@ -389,7 +389,7 @@ ExecuteTests(void)
(struct sockaddr*) &boundAddr,
&addrLen) != SOCKET_ERROR)
{
printf("Listen port = %d\n", boundAddr.sin_port);
printf("Listen port = %d\n", htons(boundAddr.sin_port));
// Now start linstening for connections
if (listen(listenSock, SOMAXCONN) != SOCKET_ERROR)