* kerberos5.c: Include krb5forw.h for rd_and_store_for_creds()
prototype which is removed from this file.
* forward.c: Include krb5forw.h for prototype.
* setenv.c: Include misc-proto.h for setenv/unsetenv prototypes.
* parsetos.c: Include misc-proto.h for parsetos prototype.
* misc-proto.h: Add prototype for parsetos(), setenv(), unsetenv()
as needed.
* kerberos5.c: Declare kerberos5_forward() static and flush out
prototype.
* gettytab.h: Flush out prototypes for getent() and getstr().
* getent.c: Include gettytab.h for prototypes.
* genget.c: Include misc.h for prototypes.
* enc_des.c: Add prototype for fb64_printsub.
* enc-proto.h: Add prototypes for encrypt_debug(),
finddecryption(), EncryptAuthEnc(), EncryptAutoDec(),
EncryptDebug(), EncryptVerbose().
* encrypt.c: Declare encrypt_list_types() and encrypt_keyid() static.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13543
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-07-02 Ezra Peisach <epeisach@mit.edu>
+
+ * krb5forw.h: File with prototype for rd_and_store_for_creds().
+
+ * kerberos5.c: Include krb5forw.h for rd_and_store_for_creds()
+ prototype which is removed from this file.
+
+ * forward.c: Include krb5forw.h for prototype.
+
+ * setenv.c: Include misc-proto.h for setenv/unsetenv prototypes.
+
+ * parsetos.c: Include misc-proto.h for parsetos prototype.
+
+ * misc-proto.h: Add prototype for parsetos(), setenv(), unsetenv()
+ as needed.
+
+ * kerberos5.c: Declare kerberos5_forward() static and flush out
+ prototype.
+
+ * gettytab.h: Flush out prototypes for getent() and getstr().
+
+ * getent.c: Include gettytab.h for prototypes.
+
+ * genget.c: Include misc.h for prototypes.
+
+ * enc_des.c: Add prototype for fb64_printsub.
+
+ * enc-proto.h: Add prototypes for encrypt_debug(),
+ finddecryption(), EncryptAuthEnc(), EncryptAutoDec(),
+ EncryptDebug(), EncryptVerbose().
+
+ * encrypt.c: Declare encrypt_list_types() and encrypt_keyid() static.
+
2001-06-22 Ezra Peisach <epeisach@mit.edu>
* enc_des.c: Change local variable index to idx to not shadown
#ifdef ENCRYPTION
void encrypt_init P((char *, int));
Encryptions *findencryption P((int));
+Encryptions *finddecryption P((int));
void encrypt_send_supprt P((void));
void encrypt_auto P((int));
void decrypt_auto P((int));
+void encrypt_debug P((int));
void encrypt_is P((unsigned char *, int));
void encrypt_reply P((unsigned char *, int));
void encrypt_start_input P((int));
void encrypt_send_end P((void));
void encrypt_wait P((void));
int encrypt_is_encrypting P((void));
+int EncryptAutoEnc P((int));
+int EncryptAutoDec P((int));
int EncryptEnable P((char *, char *));
int EncryptDisable P((char *, char *));
+int EncryptDebug P((int));
int EncryptType P((char *, char *));
int EncryptStart P((char *));
int EncryptStartInput P((void));
int EncryptStopInput P((void));
int EncryptStopOutput P((void));
int EncryptStatus P((void));
+int EncryptVerbose P((int));
void encrypt_send_support P((void));
void encrypt_send_keyid P((int, unsigned char *, int, int));
int net_write P((unsigned char *, int));
static void fb64_session P((Session_Key *, int, struct fb *));
void fb64_stream_key P((Block, struct stinfo *));
int fb64_keyid P((int, unsigned char *, int *, struct fb *));
+void fb64_printsub P((unsigned char *, int, unsigned char *, int,
+ unsigned char *));
static void ecb_encrypt(stp, in, out)
struct stinfo *stp;
str_send[str_suplen++] = SE;
}
- void
+static void
encrypt_list_types()
{
Encryptions *ep = encryptions;
static unsigned char str_keyid[(MAXKEYLEN*2)+5] = { IAC, SB, TELOPT_ENCRYPT };
-void encrypt_keyid();
+static void encrypt_keyid P((struct key_info *kp, unsigned char *, int));
void encrypt_enc_keyid(keyid, len)
unsigned char *keyid;
encrypt_keyid(&ki[0], keyid, len);
}
-void encrypt_keyid(kp, keyid, len)
+static void encrypt_keyid(kp, keyid, len)
struct key_info *kp;
unsigned char *keyid;
int len;
#include <netdb.h>
#include "k5-int.h"
+#include "krb5forw.h"
#ifdef NEED_SETENV
extern int setenv(char *, char *, int);
/* based on @(#)genget.c 8.1 (Berkeley) 6/4/93 */
#include <ctype.h>
+#include "misc.h"
#define LOWER(x) (isupper((int) x) ? tolower((int) x) : (x))
/*
*/
int
Ambiguous(s)
- char *s;
+ void *s;
{
return((char **)s == &ambiguous);
}
/* based on @(#)getent.c 8.1 (Berkeley) 6/4/93 */
+#include "gettytab.h"
+
#ifdef HAVE_CGETENT
static char *area;
#endif
#define DX gettyflags[20].value
#define RM gettyflags[21].value
-int getent();
+int getent (char *, char *);
long getnum();
int getflag();
-char *getstr();
+#ifndef SOLARIS
+char *getstr(char *, char **);
+#endif
extern struct gettyflags gettyflags[];
extern struct gettynums gettynums[];
#ifdef FORWARD
int forward_flags = 0; /* Flags get set in telnet/main.c on -f and -F */
-void kerberos5_forward();
+static void kerberos5_forward(Authenticator *);
-extern krb5_error_code
-rd_and_store_for_creds(krb5_context, krb5_auth_context, krb5_data *,
- krb5_ticket *);
+#include "krb5forw.h"
#endif /* FORWARD */
#ifdef FORWARD
-void
+static void
kerberos5_forward(ap)
Authenticator *ap;
{
--- /dev/null
+extern krb5_error_code
+rd_and_store_for_creds(krb5_context, krb5_auth_context, krb5_data *,
+ krb5_ticket *);
+
int telnet_spin P((void));
char *telnet_getenv P((char *));
char *telnet_gets P((char *, char *, int, int));
+
+
+#ifdef NEED_PARSETOS
+int parsetos(char *, char *);
+#endif
+
+#ifdef NEED_SETENV
+int setenv(const char *, const char *, int);
+#ifndef HAVE_UNSETENV
+void unsetenv(const char *);
+#endif
+#endif
+
#endif
#include <sys/types.h>
#include <netdb.h>
#include <errno.h>
-
+#define NEED_PARSETOS
+#include "misc-proto.h"
#define MIN_TOS 0
#define MAX_TOS 255
#include <stdlib.h>
#include <string.h>
-#ifndef __P
-#define __P(x) ()
-#endif
-static char *__findenv __P((const char *, int *));
+#include "misc-proto.h"
+
+static char *__findenv P((const char *, int *));
/*
* setenv --