summaryrefslogtreecommitdiffstats
path: root/src/krb524/k524init.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove krb524, lib/des425, lib/krb4, and include/kerberosIV.Greg Hudson2008-12-181-183/+0
| | | | | | | | | | Remove krb4 build system references and conditionals. Move des425 header stuff referenced by des_int.h into des_int.h. Remove krb4 test cases. ticket: 6303 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21544 dc483132-0cff-0310-8789-dd5450dbe970
* Define and use some inline helper functions for comparing data and authdata ↵Ken Raeburn2007-05-101-2/+2
| | | | | | | | structures, instead of open-coding checks of multiple fields everywhere. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19544 dc483132-0cff-0310-8789-dd5450dbe970
* * k524init.c: Include autoconf.hKen Raeburn2006-03-301-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17801 dc483132-0cff-0310-8789-dd5450dbe970
* remove debugging printf accidentally left in krb524initKen Raeburn2003-06-051-1/+0
| | | | | | | | | | * k524init.c (main): Remove debugging printf. ticket: new target_version: 1.3 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15575 dc483132-0cff-0310-8789-dd5450dbe970
* Rename interface to krb5_524_convert_creds, export it from krb5 library.Ken Raeburn2003-05-281-1/+2
| | | | | | | | | | | | Provide old names as functions for UNIX/MacOS binary compatibility, and deprecated macros for source code compatibility. (For Windows, we'll still need a krb524.dll, and it can worry about providing the old names.) Enable support on Windows always. ticket: 1491 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15513 dc483132-0cff-0310-8789-dd5450dbe970
* Big step towards integrating libkrb524 into libkrb5:Ken Raeburn2003-05-241-3/+0
| | | | | | | | | | | | | | | | | | | | | | | Move libkrb524 code, including error table, into libkrb5. Now libkrb5 initialization pulls in the krb524 error table, so krb524_init_ets is gone; all calls deleted. Move krb4 life/time conversion functions into libkrb5 under new names, using accessor hooks to get at them from libkrb4. Move declarations from krb524.h into krb5.h, k5-int.h, or krb524d.h; the last doesn't get copied into the include directory. Changed inclusions of krb524.h to the appropriate files, if any were needed. Rebuilt dependencies in Makefiles. These changes are likely to break the Windows build; I'll look into that soon. ticket: 1491 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15491 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for unistd.h.Ken Raeburn2001-06-051-0/+2
| | | | | | * k524init.c: Only include unistd.h if it's available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13275 dc483132-0cff-0310-8789-dd5450dbe970
* * k524init.c: Inculde unistd.h for getopt() prototypeEzra Peisach2001-06-041-0/+1
| | | | | | | | * test.c (do_remote): Comment out unused variables. * sendmsg.c (krb524_sendto_kdc): Cleanup assignment in conditional. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13266 dc483132-0cff-0310-8789-dd5450dbe970
* Allow des-mdX keys as well as des-crc (patch from assar).Ken Raeburn2001-04-141-17/+48
| | | | | | | Deal better with conversion of inter-realm tickets. Misc cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13177 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Make krb524 library and k524init program build onDanilo Almeida2000-07-201-20/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* POSIX states that getopt returns -1 when it is done parsing options,Theodore Tso1998-05-061-1/+1
| | | | | | not EOF. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10550 dc483132-0cff-0310-8789-dd5450dbe970
* * cnv_tkt_skey.c:Tom Yu1997-12-121-1/+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
* * k524init.c, test.c, cnv_tkt_skey.c: Remove include of krb4-proto.hEzra Peisach1997-02-181-1/+0
| | | | | | krb4-proto.h has been merged with krb.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9898 dc483132-0cff-0310-8789-dd5450dbe970
* Check the error return from krb5_init_context(), and print an errorTheodore Tso1996-11-081-1/+6
| | | | | | | | message if necessary. Clean up gcc -Wall warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9344 dc483132-0cff-0310-8789-dd5450dbe970
* * cnv_tkt_skey.c (krb524_convert_tkt_skey): Take both a v5 and v4Sam Hartman1996-01-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* * cnv_tkt_skey.c, conv_creds.c, get_cred.c k524init.c krb524d.c,Chris Provenzano1995-09-061-1/+1
| | | | | | * 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
* * cnv_tkt_skey.c, getcred.c, k524init.c, krb524d.c, test.c :Chris Provenzano1995-09-061-1/+1
| | | | | | | 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
* * test.c, k524init.c, getcred.c: rewrote for old style definitiions.Mark Eichin1995-06-281-1/+3
| | | | | | * encode.c: use PROTOTYPE instead of KRB5_PROTOTYPE. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6193 dc483132-0cff-0310-8789-dd5450dbe970
* Inline code from krb_save_credentials since there is none in some K4Paul Park1995-06-161-0/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6085 dc483132-0cff-0310-8789-dd5450dbe970
* Updated to use autoconf, and to use the new Kerberos library APITheodore Tso1995-06-061-26/+42
| | | | 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-1/+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-8/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4190 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 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
* Initial revisionTheodore Tso1993-06-031-0/+131
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2611 dc483132-0cff-0310-8789-dd5450dbe970