From 0b207edfa23b0669fae10c39aa36f27d45c7e72a Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 18 Jun 2001 13:58:11 +0000 Subject: [PATCH] * g_pw_in_tkt.c: Include krb5.h so that des_read_password() prototype is present in des.h. Cast argument to des_read_password. * getst.c, put_svc_key.c, rd_svc_key.c, save_creds.c, tf_util.c: Include krb4int.h for prototypes. * krb4int.h: New file containing private prototypes for krb4 functions not used outside the library. Contains getst() and tf_save_cred(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13358 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb4/ChangeLog | 12 ++++++++++++ src/lib/krb4/g_pw_in_tkt.c | 3 ++- src/lib/krb4/getst.c | 1 + src/lib/krb4/krb4int.h | 8 ++++++++ src/lib/krb4/put_svc_key.c | 1 + src/lib/krb4/rd_svc_key.c | 1 + src/lib/krb4/save_creds.c | 1 + src/lib/krb4/tf_util.c | 1 + 8 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 src/lib/krb4/krb4int.h diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index 9b6c2ca76..094e2f841 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,3 +1,15 @@ +2001-06-18 Ezra Peisach + + * g_pw_in_tkt.c: Include krb5.h so that des_read_password() + prototype is present in des.h. Cast argument to des_read_password. + + * getst.c, put_svc_key.c, rd_svc_key.c, save_creds.c, tf_util.c: + Include krb4int.h for prototypes. + + * krb4int.h: New file containing private prototypes for krb4 + functions not used outside the library. Contains getst() and + tf_save_cred(). + 2001-06-11 Ezra Peisach * sendauth.c (krb_sendauth): Add KRB5_DLLIMP/KRB5_CALLCONV definitions diff --git a/src/lib/krb4/g_pw_in_tkt.c b/src/lib/krb4/g_pw_in_tkt.c index 13f762b01..91e24a1c6 100644 --- a/src/lib/krb4/g_pw_in_tkt.c +++ b/src/lib/krb4/g_pw_in_tkt.c @@ -8,6 +8,7 @@ */ #include "mit-copyright.h" +#include #include "krb.h" #include "krb_err.h" #include "prot.h" @@ -61,7 +62,7 @@ passwd_to_key(user,instance,realm,passwd,key) if (passwd) string_to_key(passwd, key); else { - des_read_password(key, "Password: ", 0); + des_read_password((des_cblock *)key, "Password: ", 0); } #endif /* NOENCRYPTION */ #endif /* unix */ diff --git a/src/lib/krb4/getst.c b/src/lib/krb4/getst.c index 763f89f7e..ebcf54a70 100644 --- a/src/lib/krb4/getst.c +++ b/src/lib/krb4/getst.c @@ -9,6 +9,7 @@ #include "mit-copyright.h" #include "krb.h" +#include "krb4int.h" #ifdef HAVE_UNISTD_H #include #endif diff --git a/src/lib/krb4/krb4int.h b/src/lib/krb4/krb4int.h new file mode 100644 index 000000000..bdd3281d3 --- /dev/null +++ b/src/lib/krb4/krb4int.h @@ -0,0 +1,8 @@ +/* A series of private prototypes that we are not exporting but should + * be available for self consistancy in the library. + */ + + +int getst(int, char *, int); + +int tf_save_cred(char *, char *, char *, C_Block, int , int, KTEXT, long); diff --git a/src/lib/krb4/put_svc_key.c b/src/lib/krb4/put_svc_key.c index f520b17dc..e2eb24d84 100644 --- a/src/lib/krb4/put_svc_key.c +++ b/src/lib/krb4/put_svc_key.c @@ -23,6 +23,7 @@ */ #include "krb.h" +#include "krb4int.h" #include #include diff --git a/src/lib/krb4/rd_svc_key.c b/src/lib/krb4/rd_svc_key.c index 9659b7434..15d0f463c 100644 --- a/src/lib/krb4/rd_svc_key.c +++ b/src/lib/krb4/rd_svc_key.c @@ -10,6 +10,7 @@ #include "mit-copyright.h" #include "krb.h" +#include "krb4int.h" #include #include diff --git a/src/lib/krb4/save_creds.c b/src/lib/krb4/save_creds.c index 40f7ca5b4..4f2a0e6cc 100644 --- a/src/lib/krb4/save_creds.c +++ b/src/lib/krb4/save_creds.c @@ -11,6 +11,7 @@ #include "mit-copyright.h" #include #include "krb.h" +#include "krb4int.h" /* * This routine takes a ticket and associated info and calls diff --git a/src/lib/krb4/tf_util.c b/src/lib/krb4/tf_util.c index 71706c0e1..bda4d4142 100644 --- a/src/lib/krb4/tf_util.c +++ b/src/lib/krb4/tf_util.c @@ -26,6 +26,7 @@ #include "krb.h" #include "k5-int.h" +#include "krb4int.h" #include #include -- 2.26.2