Files
heimdal/appl/rsh/rsh_locl.h
Assar Westerlund f10956f859 conditional paths.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2055 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-08 23:20:08 +00:00

60 lines
1.0 KiB
C

/* $Id$ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <pwd.h>
#include <netdb.h>
#include <errno.h>
#include <syslog.h>
#ifdef HAVE_PATHS_H
#include <paths.h>
#endif
#include <krb.h>
#include <prot.h>
#include <krb5.h>
#include <roken.h>
#ifndef _PATH_NOLOGIN
#define _PATH_NOLOGIN "/etc/nologin"
#endif
#ifndef _PATH_BSHELL
#define _PATH_BSHELL "/bin/sh"
#endif
#ifndef _PATH_DEFPATH
#define _PATH_DEFPATH "/usr/bin:/bin"
#endif
/*
*
*/
enum auth_method { AUTH_KRB4, AUTH_KRB5 };
extern enum auth_method auth_method;
extern int do_encrypt;
extern krb5_context context;
extern krb5_keyblock *keyblock;
extern des_key_schedule schedule;
extern des_cblock iv;
#define KCMD_VERSION "KCMDV0.1"
#define USERNAME_SZ 16
#define COMMAND_SZ 1024
#define RSH_BUFSIZ 10240
ssize_t do_read (int fd, void *buf, size_t sz);
ssize_t do_write (int fd, void *buf, size_t sz);