#ifndef __KEY_COMMON_H__
#define __KEY_COMMON_H__

extern int getnetnameof (char *netname, uid_t uid, char *domain);
extern int sanity_checks (char *cname, char *netname, char *domain);
extern char *get_nisplus_principal (char *directory, uid_t uid);
extern int nisplus_update (char *netname, const char *auth_type,
			   char *public, char *secret, char *cname);
extern int mapupdate (char *, char *, u_int, char *);
extern int localupdate (char *name, char *filename, u_int op, char *data);
extern void genkeys (char *public, char *secret, char *pass);
extern char *get_nisplus_principal (char *directory, uid_t uid);
extern int get_pk_source (char *pk_service);


#endif
