270 DCE Replacement Strategies
dce_authz.o :
$(CC) -c dce_authz.c
clean :
rm -f *.o
clobber :
rm -f server_s1 *.o
DCE dependent application client
Description: Application client with DCE dependencies
File name: client_s1.c
#include <dce/sec_login.h>
#include <dce/gssapi.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include "utils_s1.h"
#undef write
#define write(fd, bufptr, buflen) send(fd, bufptr, buflen, 0)
#undef read
#define read(fd, bufptr, buflen) recv(fd, bufptr, buflen, 0)
#undef close
#define close(fd) closesocket(fd)
#define SERVICE_SECURE 2
#define value(x) (((x>='0') && (x<='9'))?x-'0':-1)
#define MAX_HOST_LENGTH 64
char * port_param = NULL;
char * host_param = NULL;
int port;
char port_name[512];
unsigned host_addr;
struct hostent * ...