fprintf(stdout, "Accepted connection from host %d.%d.%d.%d\n",
((unsigned char *)&cli_addr.sin_addr.s_addr)[0],
((unsigned char *)&cli_addr.sin_addr.s_addr)[1],
((unsigned char *)&cli_addr.sin_addr.s_addr)[2],
((unsigned char *)&cli_addr.sin_addr.s_addr)[3]);
/* call str_s1 to exchange protected application data with client */
str_s1(newsockfd, security_context);
exit(0);
}
close(newsockfd);
}
} /* end main */
Authorization module using aznAPI
Description: Revised authorization module without DCE dependencies
File name:azn_authz.c
#include <stdlib.h>
#include <stdio.h>
#include <strings.h>
#include <ctype.h>
#include <ogauthzn.h>
#include <aznutils.h>
#include <pdbacl ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.