summaryrefslogtreecommitdiffstats
path: root/src/appl/telnet/libtelnet/forward.c
Commit message (Collapse)AuthorAgeFilesLines
* Unbundle applications into separate repositoryGreg Hudson2009-11-221-78/+0
| | | | | | | | | | | | | | | Remove libpty, gssftp, telnet, and the bsd applications from the source tree, build system, and tests. Docs still need to be updated to remove mentions of the applications. The build system should be simplified now that we're down to one configure script and don't need some of the functionality currently in aclocal.m4. ticket: 6583 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23305 dc483132-0cff-0310-8789-dd5450dbe970
* make mark-cstyleTom Yu2009-10-311-5/+5
| | | | | | make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
* Convert many uses of sprintf to snprintf or asprintfGreg Hudson2008-12-011-1/+1
| | | | | | | ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21258 dc483132-0cff-0310-8789-dd5450dbe970
* * enc-proto.h, enc_des.c, encrypt.c: Unsigned/signed cleanupsEzra Peisach2002-11-151-0/+3
| | | | | | | | | | | | | | | | | | | * forward.c: Include unistd.h if present on machine. * misc-proto.h misc.c (auth_encrypt_user): Declare argument as const. * auth.c: Cast argument auth_encrypt_user. auth_gen_printsub() and auth_printsub() take unsigned int as buffer length. * auth.h, auth-proto.h, kerberos.c, kerberos5.c, spx.c: auth_gen_printsub(), auth_printsub(), kerberos4_printsub(), kerberos5_printsub(), spx_printsub() take unsigned int as length argument. * configure.in: Check for unistd.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15010 dc483132-0cff-0310-8789-dd5450dbe970
* Build without k5-int.hSam Hartman2002-04-121-2/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14394 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for need to provide setenv prototype ifEzra Peisach2001-07-061-1/+1
| | | | | | | | | | | setenv is in the C library. * forward.c: Provide setenv prototype if needed. * auth.c (auth_name): Cast result of sizeof() to int to match printf format specification. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13580 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5forw.h: File with prototype for rd_and_store_for_creds()Ezra Peisach2001-07-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* * forward.c: If NEED_SETENV defined, provide prototype for setenvEzra Peisach2001-06-211-0/+4
| | | | | | * configure.in: If compiling setenv.c, define NEED_SETENV. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13464 dc483132-0cff-0310-8789-dd5450dbe970
* * auth-proto.h: Add prototypes for getauthmask(), auth_enable,Ezra Peisach2001-06-061-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | auth_disable(), auth_onoff(), auth_togdebug(), auth_status(), auth_name(), auth_sendname(), auth_debug(), and auth_printsub(). * auth.c: Include unistd.h and cleanup some assignments in conditionals. * auth.h: Explicitly declare auth_debug mode as an int. * enc-proto.h: Add prototypes for EncryptDisable(), EncryptType(), EncryptStart(), EncryptStartInput(), EncryptStartOutput(), EncryptStop(), EncryptStopInput(), EncryptStopOutput(), EncryptStatus(), encrypt_gen_printsub(), printsub(). * enc_des.c: Declare encrypt_debug_mode as int. Cleanup unused variables and assignments in conditionals. * encrypt.c: Include stdio.h for sprintf prototype. Cleanup assignments in conditionals. * getent.c: Conditionalize definition of some variables. * kerberos5.c: Explicitly declare auth_debug_mode an int. * misc-proto.h: Add prototype for auth_encrypt_user(). * misc.c: Include auth.h and encrypt.h for prototypes. * misc.h: Add prototypes for isprfix(), genget(), Ambiguous(). * parsetos.c: Include stdlib.h for strtol() prototype. * forward.c, kerberos.c, setenv.c: Assignment in conditional cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13280 dc483132-0cff-0310-8789-dd5450dbe970
* * forward.c (rd_and_store_for_creds): Fix up to no longer do theTom Yu1997-11-201-10/+1
| | | | | | | | | chown [krb5-appl/502] * kerberos5.c (kerberos5_is): Fix up call to rd_and_store_for_creds. [krb5-appl/502] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10302 dc483132-0cff-0310-8789-dd5450dbe970
* Store the forwarded credentials in /tmp/krb5cc_p<pid> (like krlogind)Richard Basch1996-04-131-11/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7811 dc483132-0cff-0310-8789-dd5450dbe970
* forward.c: Use a saner naming convention for the credentials cache.Richard Basch1996-04-121-7/+12
| | | | | | kerberos5.c: Add a cleanup function to destroy the credentials cache. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7799 dc483132-0cff-0310-8789-dd5450dbe970
* forward.c (get_for_creds): Removed no longer used functionTheodore Tso1996-01-101-144/+0
| | | | | | | | kerberos5.c (kerberos5_forward): Convert from using get_for_creds() from forward.c to using the official library routine, krb5_fwd_tgt_creds(). Misc. lint cleanups. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7285 dc483132-0cff-0310-8789-dd5450dbe970
* * forward.c: set KRB5_DEFAULT_LIFE to 10 hours, not 8.Mark Eichin1995-11-131-2/+11
| | | | | | | | | | * forward.c (rd_and_store_for_creds): construct correct cache name for forwarded tickets (based on tty name if available) and drop it into the environment so login notices it. also, fix typo in comment in kerberos5.c git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7090 dc483132-0cff-0310-8789-dd5450dbe970
* changes to accomodate redefinition of krb5_auth_contextTom Yu1995-06-111-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6035 dc483132-0cff-0310-8789-dd5450dbe970
* * forward.c (rd_and_store_for_creds()) : Rewritten to useChris Provenzano1995-04-261-26/+165
| | | | | | | | | | | | | auth_context and the new krb5_rd_creds(). * forward.c (get_for_creds()) : New function replacing krb5_get_for_creds() and uses auth_context and new krb5_mk_creds() routine. * kerberos5.c (kerberos5_send()): Set initial flags on auth_context to KRB5_AUTH_CONTEXT_RET_TIME, and use new rd_and_store_for_creds() routine. * kerberos5.c (kerberos5_forward()): Use the new get_for_creds(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5485 dc483132-0cff-0310-8789-dd5450dbe970
* Avoid <krb5/...> includesJohn Gilmore1995-02-281-4/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5021 dc483132-0cff-0310-8789-dd5450dbe970
* * forward.c: Remove unused #include <krb5/crc-32.h>.John Gilmore1995-02-021-1/+0
| | | | | | | | | | | | | | | | * kerberos5.c (kerberos5_send): Remove code for sending a checksum of a zero-byte string; we can just send no checksum at all. This eliminates dependency on <krb5/crc-32.h>. (kerberos5_forward): Remove extra parameter to krb5_get_for_creds, probably accidentally inserted during context changes -- which don't seem to be here in the ChangeLog. * kerberos.c: Remove prototypes for krb4 functions, since some of them are wrong with CNS (u_long vs. KRB_INT32 conflicts). These changes BUILD but have not been RUN yet. But at least they build. My apologies. -- John git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4878 dc483132-0cff-0310-8789-dd5450dbe970
* Removed all references to DECLARG and OLDDECLARG.Chris Provenzano1995-01-131-5/+6
| | | | | | Added krb5_context to all krb5_*() routines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4815 dc483132-0cff-0310-8789-dd5450dbe970
* Move get_for_creds to krb5_get_for_creds in the Kerberos libraryTheodore Tso1994-11-301-195/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4718 dc483132-0cff-0310-8789-dd5450dbe970
* kerberos.c: Initialize random number generator on the server side soTheodore Tso1994-11-141-332/+0
| | | | | | | | | | | | that the encryption routines later on can use it. Fix bug in how we pick the challenge for the challenge/response mutual authentication. forward.c: Move rd_cred and mk_cred to libkrb.a. (Although we still need to fix the API!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4658 dc483132-0cff-0310-8789-dd5450dbe970
* stamp out rcs keywordsMark Eichin1994-08-181-8/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4188 dc483132-0cff-0310-8789-dd5450dbe970
* punt unused varsMark Eichin1994-08-141-2/+0
| | | | | | | use stdio.h commands.c: use stdio, string, unistd; fix return values git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4132 dc483132-0cff-0310-8789-dd5450dbe970
* Updated telnet to be the 94.02.07 version, with some bugfixesTheodore Tso1994-06-101-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3704 dc483132-0cff-0310-8789-dd5450dbe970
* Changes to support new CRED-ENC structureTheodore Tso1993-11-201-34/+38
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3008 dc483132-0cff-0310-8789-dd5450dbe970
* Change use of xfree to krb5_xfree to prevent namespace pollutionTheodore Tso1993-10-151-7/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2670 dc483132-0cff-0310-8789-dd5450dbe970
* Cleaned up TGTNAME define; now KRB5_TGS_NAMETheodore Tso1993-08-171-3/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2632 dc483132-0cff-0310-8789-dd5450dbe970
* Initial VersionTheodore Tso1993-03-091-0/+613
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2524 dc483132-0cff-0310-8789-dd5450dbe970