Completed the Authtoken Validate Service changes.
This commit is contained in:
		| @@ -19,7 +19,7 @@ Execute script: make.sh. | ||||
|  | ||||
| RUNNING APPLICATION | ||||
|  | ||||
| Execute the following command: ./pamTest -s testService | ||||
| Execute the following command: ./pamTest -s testservice | ||||
|   | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user