* Copyright (c) 1986, 1987 Xerox Corporation.
/* $Log: Authlookup.c,v $
* Revision 1.2 87/03/23 10:25:34 ed
* Revision 1.1 87/01/05 11:50:16 ed
#include <xnscourier/courier.h>
#include <xnscourier/courierconnection.h>
#include <xnscourier/except.h>
#define BFS "/usr/new/xnsbfs -a"
extern struct ns_addr
*getXNSaddr();
CourierConnection
*result
;
result
= (CourierConnection
*) NULL
;
/* broadcast for Authentication server */
/* -- this could be more efficient! */
if ((chfile
= popen(BFS
,"r")) != NULL
) {
while (fgets(buf
, BUFSIZ
, chfile
) != NULL
)
(chaddr
= getXNSaddr(buf
)) &&
(result
= CourierOpen(chaddr
))) {