aboutsummaryrefslogtreecommitdiff
path: root/src/krb524
AgeCommit message (Collapse)AuthorFilesLines
2000-10-07 * conv_creds.c (krb524_convert_creds_plain): Use time_to_life()Tom Yu3-41/+33
and life_to_time() to do lifetime calculations, including the adjustment of start time, to match server-side calculations. * cnv_tkt_skey.c (krb524_convert_tkt_skey): Use time_to_life() and life_to_time() to do lifetime calculations. Adjust start time backwards to deal with roundup so ticket expires at correct time. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12728 dc483132-0cff-0310-8789-dd5450dbe970
2000-10-06 * krb524d.c (do_connection): Do not assume that sizeof(int) == 4Ezra Peisach6-17/+38
* 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
2000-10-03 * Makefile.in: Install krb524.h and krb524_err.h header file soEzra Peisach2-2/+30
applications can include for prototypes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12712 dc483132-0cff-0310-8789-dd5450dbe970
2000-08-09 * cnv_tkt_skey.c: Fix up static prototypes forTom Yu2-22/+28
krb524int_krb_create_ticket(), krb524int_krb_cr_tkt_krb5(), and krb524int_krb_cr_tkt_int(), as well as their definitions, so that there aren't bare identifiers in the prototypes and so that there aren't narrow types in the definitions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12617 dc483132-0cff-0310-8789-dd5450dbe970
2000-07-20* Makefile.in: Fix build so we don't try to build an extra lib.Danilo Almeida2-7/+16
Fix up krb524 build so we default to krb5's krb4 but can use an alternate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12578 dc483132-0cff-0310-8789-dd5450dbe970
2000-07-20* Makefile.in: Make krb524 library and k524init program build onDanilo Almeida12-54/+392
Windows. * krb524.def, libinit.c: Files needed to build on Windows. * k524init.c: Use public krb_in_tkt() with realm paramter instead of potentially private in_tkt() w/o realm parameter (which does not even exist w/o the realm paramter in some krb4 libraries). Use krb_save_credentials() instead of tf_init() then tf_save_credentials() then tf_close(). * cnv_tkt_skey.c: Put copy of krb_cr_tkt_krb5() and krb_create_ticket() as static functions in this file, calling them krb524int_*(). Call these functions instead of the ones in the MIT krb4 library included in the krb5 tree. * conv_princ.c: Remove unused headers. * k524init.c, cnv_tkt_skey.c, conv_creds.c, encode.c, misc.c, sendmsg.c, test.c: Do not include Unix headers on Windows. * sendmsg.c (krb524_sendto_kdc): Fix call to krb5_locate_kdc() to use right number and types of parameters. Use krb5int_accessor() to get at internals: krb5_locate_kdc(), krb5_max_dgram_size, krb5_skdc_timeout_1, and krb5_skdc_timeout_shift. (The latter 3 should probably be #defines...) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12569 dc483132-0cff-0310-8789-dd5450dbe970
2000-07-19* getcred.c (main): Use correct parameters for krb5_cc_default()Danilo Almeida2-1/+6
in case someone actually wants to build this file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12564 dc483132-0cff-0310-8789-dd5450dbe970
2000-06-01Change wsanchez@apple -> tritan@mitWilfredo Sanchez1-2/+2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12331 dc483132-0cff-0310-8789-dd5450dbe970
1999-10-26log tritan's changesTom Yu1-0/+7
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11877 dc483132-0cff-0310-8789-dd5450dbe970
1999-10-26Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, LOCAL_INCLUDES suchWilfredo Sanchez1-2/+2
that one can override CFLAGS from the command line without losing CPP search patchs and defines. Some associated Makefile cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11876 dc483132-0cff-0310-8789-dd5450dbe970
1999-09-24copyright notice updates from 1.1 branchKen Raeburn1-1/+4
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
1999-08-19 * krb524d.c (do_connection): Convert to using new symbol forTom Yu3-2/+10
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
1998-12-05Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso2-0/+7
to buildtop and thisconfigdir, respectively.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11087 dc483132-0cff-0310-8789-dd5450dbe970
1998-10-30pull up 3des implementation from the marc-3des branchMarc Horowitz3-27/+88
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
1998-07-24Fork into the background by default, also add a -nofork command line optionGeoffrey King2-3/+14
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10736 dc483132-0cff-0310-8789-dd5450dbe970
1998-07-19Remove the variable use_other_realm, is not actually necessary for theGeoffrey King2-5/+8
new -r realm code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10709 dc483132-0cff-0310-8789-dd5450dbe970
1998-07-17 * krb524d.c (main): Accept a -r command line option to specifyGeoffrey King2-6/+22
a realm other than the default one. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10651 dc483132-0cff-0310-8789-dd5450dbe970
1998-06-17 * cnv_tkt_skey.c (krb524_convert_tkt_skey): Handle null addressTom Yu3-23/+26
fields; actually use saddr (the address from the UDP header) to generate the ticket address rather than just checking against it. * conv_creds.c (krb524_convert_creds_plain): Punt address checks. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10601 dc483132-0cff-0310-8789-dd5450dbe970
1998-05-06POSIX states that getopt returns -1 when it is done parsing options,Theodore Tso2-1/+6
not EOF. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10550 dc483132-0cff-0310-8789-dd5450dbe970
1998-02-18Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu2-2/+6
used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
1998-02-13 * sendmsg.c: Explicitly include k5-int.h in order to get properTom Yu2-5/+8
prototype of krb5_locate_kdc(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10429 dc483132-0cff-0310-8789-dd5450dbe970
1998-02-12Mass makefile/configure.in build system revampTheodore Tso2-0/+6
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10424 dc483132-0cff-0310-8789-dd5450dbe970
1997-12-12 * cnv_tkt_skey.c:Tom Yu9-10/+13
* 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
1997-08-18 * configure.in: Add AC_PROG_INSTALL as we do install hereEzra Peisach2-0/+5
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10184 dc483132-0cff-0310-8789-dd5450dbe970
1997-08-12 * convt_tkt.c: Delete; it's not needed anymoreTom Yu7-209/+258
* test.c: Remove reference to krb524_convert_creds_addr, as that doesn't exist anymore. * conv_creds.c: Clean up substantially to be less convoluted. * sendmsg.c: Fix to not do a full series of timeouts on each server; loop over the whole list before increasing the timeout. * configure.in: Update to use the new library build system to build libkrb524. * Makefile.in: Update to reflect changes in the library. Also, use the new library build system to build libkrb524. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10167 dc483132-0cff-0310-8789-dd5450dbe970
1997-08-07 * cnv_tkt_skey.c:Tom Yu4-14/+35
* 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
1997-02-20Removed unneeded call to krb5_init_etsRichard Basch1-1/+0
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9927 dc483132-0cff-0310-8789-dd5450dbe970
1997-02-18 * k524init.c, test.c, cnv_tkt_skey.c: Remove include of krb4-proto.hEzra Peisach4-3/+4
krb4-proto.h has been merged with krb.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9898 dc483132-0cff-0310-8789-dd5450dbe970
1997-02-09Merge of libhack_branchTom Yu3-22/+22
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9831 dc483132-0cff-0310-8789-dd5450dbe970
1996-12-13Merge V1_0_FREEZE_3 into the mainline. (Note this merge does *not*Theodore Tso3-2/+13
include the doc subtree!!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9632 dc483132-0cff-0310-8789-dd5450dbe970
1996-11-11 * krb524d.c (do_connection): only free v4/v5 keyblock contents andMark Eichin2-3/+6
v5 ticket *once*, in cleanup branch at the end. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9371 dc483132-0cff-0310-8789-dd5450dbe970
1996-11-08Check the error return from krb5_init_context(), and print an errorTheodore Tso5-11/+38
message if necessary. Clean up gcc -Wall warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9344 dc483132-0cff-0310-8789-dd5450dbe970
1996-08-05* Better support for Athena Kerberos if installedSam Hartman6-22/+33
* Linux shared lib fix git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8903 dc483132-0cff-0310-8789-dd5450dbe970
1996-07-31 * krb524d.c: Revert prior change due to shuffling of netdb.hTom Yu2-0/+5
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8880 dc483132-0cff-0310-8789-dd5450dbe970
1996-07-31 * krb524d.c: Remove #include <netdb.h> (already gotten byTom Yu2-1/+5
kadm5/admin.h) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8869 dc483132-0cff-0310-8789-dd5450dbe970
1996-07-22this commit includes all the changes on the OV_9510_INTEGRATION andMarc Horowitz3-144/+63
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
1996-07-09 * test.c (krb4_print_ticket): Change addr to unsigned KRB4_32 fromEzra Peisach3-2/+10
long. * conv_creds.c (krb524_convert_creds_plain): Change addr to a four byte unsigned integer (from long). k524init now works on the Alpha... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8568 dc483132-0cff-0310-8789-dd5450dbe970
1996-06-14 * configure.in: remove ref to ET_RULESTom Yu2-1/+5
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8360 dc483132-0cff-0310-8789-dd5450dbe970
1996-06-10cvsignore hackeryTom Yu1-1/+0
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8288 dc483132-0cff-0310-8789-dd5450dbe970
1996-05-06The fallback to slave kdc's wasn't working because the code did not handleRichard Basch2-0/+7
the error return "KRB524_NOTRESP". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7906 dc483132-0cff-0310-8789-dd5450dbe970
1996-05-03missing log entriesKen Raeburn1-0/+16
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7888 dc483132-0cff-0310-8789-dd5450dbe970
1996-04-09add transarc-afs cmu-style long-lived ticket timestamp supportMark Eichin1-8/+39
handle clockskew properly git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7767 dc483132-0cff-0310-8789-dd5450dbe970
1996-03-20* conv_creds.c (krb524_convert_creds_plain):Richard Basch2-1/+10
if the v5 lifetime is greater than the max v4 lifetime, use the max v4 lifetime (0xff), rather than masking it with 0xff. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7671 dc483132-0cff-0310-8789-dd5450dbe970
1996-03-14fix some whitespaceMark Eichin1-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
1996-02-24Fri Jan 12 04:37:23 1996 Mark Eichin <eichin@cygnus.com>Mark Eichin2-3/+31
* cnv_tkt_skey.c (krb524_convert_tkt_skey): rather than apply fit an extended v5 lifetime into a v4 range, give out a v4 ticket with as much of the v5 lifetime is available "now" instead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7509 dc483132-0cff-0310-8789-dd5450dbe970
1996-01-27Fix bug in finding the tgs key;Sam Hartman3-2/+10
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
1996-01-25 * cnv_tkt_skey.c (krb524_convert_tkt_skey): Take both a v5 and v4Sam Hartman6-56/+161
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
1996-01-22Simplified to simply require the use of WITH_ANAME or USE_KDB5_LIBRARYRichard Basch1-14/+0
to specify the need for dbm inclusion/testing/compilation flags. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7350 dc483132-0cff-0310-8789-dd5450dbe970
1995-12-12 * krb524d.c: Changed krb5_db_fetch_mkey() such that it will only tryRichard Basch1-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
1995-12-12 * krb524d.c: Rely on stashed master key enctype instead of hardcodingRichard Basch1-2/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7195 dc483132-0cff-0310-8789-dd5450dbe970