+2000-02-25 Ezra Peisach <epeisach@mit.edu>
+
+ * sclient.c (main): Return type of main should by int, not void.
+
1999-10-26 Tom Yu <tlyu@mit.edu>
* Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES,
+2000-02-25 Ezra Peisach <epeisach@mit.edu>
+
+ * sserver.c (main): Return type should be int, not void. Clenup
+ unused variables.
+
1999-10-26 Tom Yu <tlyu@mit.edu>
* Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES,
name);
}
-void
+int
main(argc, argv)
int argc;
char *argv[];
krb5_context context;
krb5_auth_context auth_context = NULL;
krb5_ticket * ticket;
- krb5_address peeraddr;
struct sockaddr_in peername;
int namelen = sizeof(peername);
int sock = -1; /* incoming connection fd */
krb5_data recv_data;
short xmitlen;
krb5_error_code retval;
- krb5_principal server, client;
+ krb5_principal server;
char repbuf[BUFSIZ];
char *cname;
char *service = SAMPLE_SERVICE;
sock = 0;
}
- peeraddr.addrtype = peername.sin_family;
- peeraddr.length = sizeof(peername.sin_addr);
- peeraddr.contents = (krb5_octet *)&peername.sin_addr;
-
if (retval = krb5_recvauth(context, &auth_context, (krb5_pointer)&sock,
SAMPLE_VERSION, server,
0, /* no flags */