summaryrefslogtreecommitdiffstats
path: root/src/lib/krb4
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2006-11-02 03:10:35 +0000
committerKen Raeburn <raeburn@mit.edu>2006-11-02 03:10:35 +0000
commit50fadd6f1344aabe0b130d9b8574d964ccabc550 (patch)
treeb431be39ad3d397eb0c63fae4f7ff62cff59a267 /src/lib/krb4
parent2c756f185cf1d51f4c465fc51d91e07f99c459be (diff)
downloadkrb5-50fadd6f1344aabe0b130d9b8574d964ccabc550.tar.gz
krb5-50fadd6f1344aabe0b130d9b8574d964ccabc550.tar.xz
krb5-50fadd6f1344aabe0b130d9b8574d964ccabc550.zip
* g_pw_in_tkt.c (passwd_to_key): Unused function deleted
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18757 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb4')
-rw-r--r--src/lib/krb4/g_pw_in_tkt.c54
1 files changed, 6 insertions, 48 deletions
diff --git a/src/lib/krb4/g_pw_in_tkt.c b/src/lib/krb4/g_pw_in_tkt.c
index db2bb8730..4382161e0 100644
--- a/src/lib/krb4/g_pw_in_tkt.c
+++ b/src/lib/krb4/g_pw_in_tkt.c
@@ -40,53 +40,11 @@
#endif
/*
- * This file contains two routines: passwd_to_key() converts
- * a password into a DES key (prompting for the password if
- * not supplied), and krb_get_pw_in_tkt() gets an initial ticket for
+ * This file contains one routine: krb_get_pw_in_tkt() gets an initial ticket for
* a user.
*/
/*
- * passwd_to_key(): given a password, return a DES key.
- * There are extra arguments here which (used to be?)
- * used by srvtab_to_key().
- *
- * If the "passwd" argument is not null, generate a DES
- * key from it, using string_to_key().
- *
- * If the "passwd" argument is null, then on a Unix system we call
- * des_read_password() to prompt for a password and then convert it
- * into a DES key. But "prompting" the user is harder in a Windows or
- * Macintosh environment, so we rely on our caller to explicitly do
- * that now.
- *
- * In either case, the resulting key is put in the "key" argument,
- * and 0 is returned.
- */
-/*ARGSUSED */
-static int
-passwd_to_key(user,instance,realm,passwd,key)
- char *user, *instance, *realm, *passwd;
- C_Block key;
-{
-#if defined(_WIN32)
- string_to_key(passwd, key);
-#else /* unix */
-#ifdef NOENCRYPTION
- if (!passwd)
- placebo_read_password(key, "Password: ", 0);
-#else /* Do encyryption */
- if (passwd)
- string_to_key(passwd, key);
- else {
- des_read_password((des_cblock *)key, "Password", 0);
- }
-#endif /* NOENCRYPTION */
-#endif /* unix */
- return (0);
-}
-
-/*
* krb_get_pw_in_tkt() takes the name of the server for which the initial
* ticket is to be obtained, the name of the principal the ticket is
* for, the desired lifetime of the ticket, and the user's password.
@@ -101,11 +59,11 @@ passwd_to_key(user,instance,realm,passwd,key)
* non-terminal-oriented environment like the Macintosh (running in a
* driver) or MS-Windows (in a DLL).
*
- * krb_get_pw_in_tkt() passes two additional arguments to krb_get_in_tkt():
- * the name of a routine (passwd_to_key()) to be used to get the
- * password in case the "password" argument is null and NULL for the
- * decryption procedure indicating that krb_get_in_tkt should use the
- * default method of decrypting the response from the KDC.
+ * krb_get_pw_in_tkt() passes two additional arguments to
+ * krb_get_in_tkt(): a routine to be used to get the password in case
+ * the "password" argument is null and NULL for the decryption
+ * procedure indicating that krb_get_in_tkt should use the default
+ * method of decrypting the response from the KDC.
*
* The result of the call to krb_get_in_tkt() is returned.
*/