summaryrefslogtreecommitdiffstats
path: root/src/krb524/krb524d.c
Commit message (Collapse)AuthorAgeFilesLines
* * configure.in: Test need for daemon prototypeEzra Peisach2001-06-211-0/+4
| | | | | | * krb524d.c: Provide daemon prototype if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13455 dc483132-0cff-0310-8789-dd5450dbe970
* Fix small stylistic typoEzra Peisach2001-06-201-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13416 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c: Include <krb5/adm_proto.h> for krb5_log_init()Ezra Peisach2001-06-201-1/+1
| | | | | | | | prototype. (cleanup_and_exit) Conditionalize krb5_kt_close on keytab being non-null. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13415 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c: Include <krb5/adm_proto.h> for krb5_log_init()Ezra Peisach2001-06-201-0/+1
| | | | | | prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13414 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c: Call krb5_klog_init before the first point where theMitchell Berger2001-06-201-7/+5
| | | | | | | | klog facility may be used, delete ifdef'd out code to make that call from later in the file, conditionalize kadm5_destroy on the handle being non-null, and correct an indentation error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13394 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c: Include stdarg.h.Ken Raeburn2001-06-051-24/+40
| | | | | | | | | | (main): Accept new argument -p to indicate port number to use; fall back to KRB524_SERVICE and then KRB524_PORT. In error messages, use only part of program name following last '/'. (usage): Updated. (krb5_free_keyblock_contents): Delete disabled function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13274 dc483132-0cff-0310-8789-dd5450dbe970
* back out accidental check-inKen Raeburn2001-04-261-19/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13209 dc483132-0cff-0310-8789-dd5450dbe970
* * conv_creds.c (broken, krb524_convert_creds_plain): Unused code deletedKen Raeburn2001-04-261-6/+19
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13208 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c: Provide prototypes for local functionsEzra Peisach2001-03-121-5/+13
| | | | | | * test.c: Declare local functions static. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13076 dc483132-0cff-0310-8789-dd5450dbe970
* * encode.c, krb524.h: encode_v4tkt() and decode_v4tkt() now takeEzra Peisach2000-10-171-2/+2
| | | | | | | | | | | | unsigned int * lengths. * krb524d.c (do_connection): Cast length fields in recvfrom() and sendto() calls to int. * sendmsg.c (krb524_sendto_kdc): Cast length fields in recv() and send() calls to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12788 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c (do_connection): Do not assume that sizeof(int) == 4Ezra Peisach2000-10-061-8/+9
| | | | | | | | | | | | | | | | | | * encode.c (encode_int32, decode_int32): Do not assume sizeof(int) == 4. * conv_creds.c (krb524_convert_creds_kdc): Do not assume sizeof(int) == 4 in network packet. * cnv_tkt_skey.c (krb524int_krb_cr_tkt_int): Ensure that OTW flags is one byte long. An error was introduced when prototypes were widened. * Makefile.in (includes): When testing to see if krb524_err.h exists in the include directory, compare against the build trees version. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12725 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c (do_connection): Convert to using new symbol forTom Yu1999-08-191-1/+1
| | | | | | | | | DES3. * cnv_tkt_skey.c (krb524_convert_tkt_skey): Convert to using new symbol for DES3. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11686 dc483132-0cff-0310-8789-dd5450dbe970
* pull up 3des implementation from the marc-3des branchMarc Horowitz1998-10-301-14/+32
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
* Fork into the background by default, also add a -nofork command line optionGeoffrey King1998-07-241-3/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10736 dc483132-0cff-0310-8789-dd5450dbe970
* Remove the variable use_other_realm, is not actually necessary for theGeoffrey King1998-07-191-5/+3
| | | | | | new -r realm code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10709 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c (main): Accept a -r command line option to specifyGeoffrey King1998-07-171-6/+17
| | | | | | a realm other than the default one. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10651 dc483132-0cff-0310-8789-dd5450dbe970
* * cnv_tkt_skey.c:Tom Yu1997-12-121-2/+0
| | | | | | | | | | | | | | * conv_creds.c: * conv_princ.c: * encode.c: * k524init.c: * krb524d.c: * misc.c: * test.c: Don't include netdb.h or sys/socket.h if krb.h is included; this works around an Ultrix bug where those headers aren't protected against multiple inclusion. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10335 dc483132-0cff-0310-8789-dd5450dbe970
* * cnv_tkt_skey.c:Tom Yu1997-08-071-1/+2
| | | | | | | | * krb524.h: * krb524d.c: Add jik's patches for multihomed hosts. Fixes krb5-misc/275. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10165 dc483132-0cff-0310-8789-dd5450dbe970
* Merge V1_0_FREEZE_3 into the mainline. (Note this merge does *not*Theodore Tso1996-12-131-1/+1
| | | | | | include the doc subtree!!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9632 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c (do_connection): only free v4/v5 keyblock contents andMark Eichin1996-11-111-3/+1
| | | | | | v5 ticket *once*, in cleanup branch at the end. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9371 dc483132-0cff-0310-8789-dd5450dbe970
* Check the error return from krb5_init_context(), and print an errorTheodore Tso1996-11-081-7/+11
| | | | | | | | message if necessary. Clean up gcc -Wall warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9344 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c: Revert prior change due to shuffling of netdb.hTom Yu1996-07-311-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8880 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c: Remove #include <netdb.h> (already gotten byTom Yu1996-07-311-1/+0
| | | | | | kadm5/admin.h) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8869 dc483132-0cff-0310-8789-dd5450dbe970
* this commit includes all the changes on the OV_9510_INTEGRATION andMarc Horowitz1996-07-221-142/+49
| | | | | | | | | OV_MERGE branches. This includes, but is not limited to, the new openvision admin system, and major changes to gssapi to add functionality, and bring the implementation in line with rfc1964. before committing, the code was built and tested for netbsd and solaris. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8774 dc483132-0cff-0310-8789-dd5450dbe970
* fix some whitespaceMark Eichin1996-03-141-10/+16
| | | | | | | clear use_master and use_keytab on failures that don't leave the relevant bits initialized git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7636 dc483132-0cff-0310-8789-dd5450dbe970
* Fix bug in finding the tgs key;Sam Hartman1996-01-271-2/+2
| | | | | | we really really want to avoid encrypting v4 tickets in DES3 keys. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7407 dc483132-0cff-0310-8789-dd5450dbe970
* * cnv_tkt_skey.c (krb524_convert_tkt_skey): Take both a v5 and v4Sam Hartman1996-01-251-50/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | service key. Use the v5 service key to decrypt the v5 ticket, and the v4 service key to encrypt the v4 ticket. * krb524d.c (do_connection): Use a separate v5 and v4 service key so that if the KDC chooses to encrypt the v5 ticket in something besides ENCTYPE_DES_CBC_CRC, we don't lose. Also, make sure we free keyblock contents and tickets on error. (lookup_service_key): Pass enctype to kdc_get_server_key (kdc_get_server_key): Only try for v4 salt if the enctype is DES_CRC. Take enctype as an argument. This creates a problem if the server key has a normal and v4 salt of ENCTYPE_DES_CBC_CRC but I can't think of a good answer to this. * k524init.c (main): Use crc32 not md5. Wed Jan 24 20:05:47 1996 Sam Hartman <hartmans@tertius.mit.edu> * krb524d.c (kdc_get_server_key): Try to find a v4 salt type key, else try any des_crc32 key, else fail. (do_connection): Lookup a crc32 key not an md5 key. (init_master): Handle reading kdc profile. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7386 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c: Changed krb5_db_fetch_mkey() such that it will only tryRichard Basch1995-12-121-1/+3
| | | | | | | to set the enctype of the keyblock if the keyblock had it set to ENCTYPE_UNKNOWN. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7211 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c: Rely on stashed master key enctype instead of hardcodingRichard Basch1995-12-121-2/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7195 dc483132-0cff-0310-8789-dd5450dbe970
* * conv_creds.c (krb524_convert_creds_kdc): loop through all of theMark Eichin1995-11-131-1/+17
| | | | | | | | | addresses returned by krb5_locate_kdc, don't just try the first one. * krb524d.c (do_connection): check for particular failures of decode_krb5_ticket, as well as for messages that are one int long (which will eliminate our own error replies.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7095 dc483132-0cff-0310-8789-dd5450dbe970
* (this may have caused the spin-looping I saw...)Mark Eichin1995-09-251-2/+3
| | | | | | | * krb524d.c (do_connection): if recvfrom failed, just return, don't try to use the (likely invalid) sockaddr in a reply message. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6850 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c (usage): needs to get context to pass toMark Eichin1995-09-141-3/+4
| | | | | | | | cleanup_and_exit so it does get freed, since it is allocated before parsing arguments. (main): change caller as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6789 dc483132-0cff-0310-8789-dd5450dbe970
* Changes to compile under AIX--made a while back but never committedSam Hartman1995-09-081-0/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6742 dc483132-0cff-0310-8789-dd5450dbe970
* * cnv_tkt_skey.c, conv_creds.c, get_cred.c k524init.c krb524d.c,Chris Provenzano1995-09-061-5/+5
| | | | | | * test.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6710 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c (main): set timeout inside while loop to prevent spin.Mark Eichin1995-09-061-2/+8
| | | | | | | | | | | (cleanup_and_exit): free master_princ or close keytab, and free the global context, to eliminate spurious storage use in malloc debugging. (init_master): free realm. (emailed to bjaspan@cam.ov.com seperately.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6692 dc483132-0cff-0310-8789-dd5450dbe970
* * cnv_tkt_skey.c, getcred.c, k524init.c, krb524d.c, test.c :Chris Provenzano1995-09-061-6/+4
| | | | | | | Remove krb5_enctype references, and replace with krb5_keytype where appropriate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6674 dc483132-0cff-0310-8789-dd5450dbe970
* Hacks to get it to compile with new kdb formatChris Provenzano1995-08-071-29/+35
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6430 dc483132-0cff-0310-8789-dd5450dbe970
* Use the etype from krb5_keytype_array[mkey]Paul Park1995-07-271-6/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6338 dc483132-0cff-0310-8789-dd5450dbe970
* Update calling sequence to krb5_db_fetch_mkey()Paul Park1995-07-171-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6305 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c: changed main, krb5_free_keyblock_contents to use oldMark Eichin1995-06-281-2/+6
| | | | | | style definitions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6182 dc483132-0cff-0310-8789-dd5450dbe970
* Compiler warning cleanupPaul Park1995-06-271-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6171 dc483132-0cff-0310-8789-dd5450dbe970
* Remove usage of KDB_CONVERT_KEY_OUTOF_DBPaul Park1995-06-231-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6136 dc483132-0cff-0310-8789-dd5450dbe970
* Updated to use autoconf, and to use the new Kerberos library APITheodore Tso1995-06-061-57/+80
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5952 dc483132-0cff-0310-8789-dd5450dbe970
* * README, *.[ch]: Avoid <...> includes for our include filesJohn Gilmore1995-02-281-8/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5032 dc483132-0cff-0310-8789-dd5450dbe970
* Apply new copyright notice to the krb524 sources. (1993, GZA -> 1994 OV)Theodore Tso1994-09-151-14/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4239 dc483132-0cff-0310-8789-dd5450dbe970
* stamp out rcs keywordsMark Eichin1994-08-181-4/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4190 dc483132-0cff-0310-8789-dd5450dbe970
* step 3: bcopy->memcpy or memmove (chose by hand), twiddle argsMark Eichin1994-06-151-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3819 dc483132-0cff-0310-8789-dd5450dbe970
* step 1: bzero->memset(,0,)Mark Eichin1994-06-151-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3809 dc483132-0cff-0310-8789-dd5450dbe970
* Change use of xfree to krb5_xfree to prevent namespace pollutionTheodore Tso1993-10-151-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2670 dc483132-0cff-0310-8789-dd5450dbe970
* Change export warning notice from "is assumed to require an export license"Theodore Tso1993-09-011-2/+2
| | | | | | to "may require..." git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2638 dc483132-0cff-0310-8789-dd5450dbe970