#include <stdlib.h>
#include "write_bytes.h"
-char *this_realm;
+extern char *this_realm;
extern gss_cred_id_t gssd_creds;
void pgsserr(char *msg, u_int32_t maj_stat, u_int32_t min_stat,
extern char gethostname_ex[PATH_MAX];
extern int use_memcache;
-TAILQ_HEAD(clnt_list_head, clnt_info) clnt_list;
-
struct clnt_info {
TAILQ_ENTRY(clnt_info) list;
char *dirname;
int update_client_list(void);
void handle_krb5_upcall(struct clnt_info *clp);
void lgssd_run(void);
-
+struct clnt_info *clnt_list_first_entry(void);
extern int lgssd_mutex_downcall;
int i;
struct clnt_info *clp;
- for (clp = clnt_list.tqh_first; clp != NULL; clp = clp->list.tqe_next)
+ for (clp = clnt_list_first_entry(); clp != NULL; clp = clp->list.tqe_next)
{
i = clp->krb5_poll_index;
if (i >= 0 && pollarray[i].revents) {
* and rescan the whole {pipefs_nfsdir} when this happens.
*/
+TAILQ_HEAD(clnt_list_head, clnt_info) clnt_list;
+
struct pollfd * pollarray;
int pollsize; /* the size of pollaray (in pollfd's) */
pollarray = calloc(pollsize, sizeof(struct pollfd));
}
+struct clnt_info *clnt_list_first_entry(void)
+{
+ return clnt_list.tqh_first;
+}
+
/*
* This is run after a DNOTIFY signal, and should clear up any
* directories that are no longer around, and re-scan any existing
#include <sys/queue.h>
#include <gssapi/gssapi.h>
-int krb_enabled;
-
int handle_channel_request(FILE *f);
void svcgssd_run(void);
int gssd_prepare_creds(int must_srv_mgs, int must_srv_mds, int must_srv_oss);