summaryrefslogtreecommitdiffstats
path: root/src/krb524/sendmsg.c
Commit message (Collapse)AuthorAgeFilesLines
* Big step towards integrating libkrb524 into libkrb5:Ken Raeburn2003-05-241-114/+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
* * cnv_tkt_skey.c, conv_creds.c, conv_princ.c, encode.c, sendmsg.c: Removed ↵Alexandra Ellwood2003-03-061-5/+0
| | | | | | Mac-specific includes. * conv_creds.c: If we are on the Mac and using the CCAPI, set the string_to_key type to MIT. * krb524.h: Removed enumsalwaysint because there are no enums in this header. Also include krb524_err with <> because on Mac OS X both are public headers and should not be included with "". * Makefile.in: set KRB524_PRIVATE while building so that Darwin builds see these prototypes. Otherwise the Darwin build will fail git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15244 dc483132-0cff-0310-8789-dd5450dbe970
* * sendmsg.c (krb524_sendto_kdc): Update calls to locate_server()Tom Yu2002-12-071-2/+4
| | | | | | | | | and locate_kdc() to restrict protocol family to IPv4. ticket: 1189 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15039 dc483132-0cff-0310-8789-dd5450dbe970
* reimplement macosx v4-local-addr changes; untestedKen Raeburn2002-07-221-2/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14665 dc483132-0cff-0310-8789-dd5450dbe970
* Add hooks to optionally report local address used when contacting a KDC-likeKen Raeburn2002-07-081-1/+1
| | | | | | | service via UDP. Currently unused, this will eventually be used for MacOS support for krb524. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14615 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524.h: Updated C++ protection to not interfere with emacsTom Yu2002-06-151-0/+5
| | | | | | | | | | | | | | | | | | | | | auto indentation and added KRB524_PRIVATE macro for Mac OS X to control visibility of function prototypes * krb524.h: Added C++ protection and Mac pragmas * krb524.h, cnv_tkt_skey.c, conv_creds.c, conv_princ.c, encode.c, misc.c, sendmsg.c: Updated header paths on Mac OS X so that we correctly include the autogenerated krb524.h * conv_creds.c, cnv_tkt_skey.c: added cast to remove warning. * krb524.h: Updated to new Mac OS header layout. * sendmsg.c: k5-int.h should be included as a local header [pullups from 1-2-2-branch] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14507 dc483132-0cff-0310-8789-dd5450dbe970
* Separate send-to-kdc UDP code, export it via accessor interface, and call in toKen Raeburn2002-06-051-153/+5
| | | | | | | it from krb524_sendto_kdc. Supply a socket type to krb5_locate_server and krb5_locate_kdc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14473 dc483132-0cff-0310-8789-dd5450dbe970
* Add capability of looking up TCP addresses for KDC in DNS; not enabled yet.Ken Raeburn2002-06-041-5/+6
| | | | | | | | Internal "addrlist" structure now includes socket type, by way of using struct addrinfo where struct sockaddr was used before; updated uses. No support for noting TCP/UDP vs UDP-only addresses in config files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14465 dc483132-0cff-0310-8789-dd5450dbe970
* Use a "struct addrlist" instead of separate count and pointer-to-pointer valuesKen Raeburn2001-06-201-21/+22
| | | | | | | for internal interfaces for looking up servers. Add a new routine to free the addrlist contents, so that memory management can be changed in one place. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13390 dc483132-0cff-0310-8789-dd5450dbe970
* * k524init.c: Inculde unistd.h for getopt() prototypeEzra Peisach2001-06-041-5/+3
| | | | | | | | * 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
* * sendmsg.c (krb524_sendto_kdc): Do fallback if KRB5_REALM_UNKNOWN is returned,Ken Raeburn2001-05-081-1/+1
| | | | | | as might happen if the DNS support is not enabled. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13233 dc483132-0cff-0310-8789-dd5450dbe970
* use new internal interface for locating serversKen Raeburn2001-04-261-15/+26
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13205 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
* * Makefile.in: Make krb524 library and k524init program build onDanilo Almeida2000-07-201-15/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* copyright notice updates from 1.1 branchKen Raeburn1999-09-241-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
* * sendmsg.c: Explicitly include k5-int.h in order to get properTom Yu1998-02-131-5/+3
| | | | | | prototype of krb5_locate_kdc(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10429 dc483132-0cff-0310-8789-dd5450dbe970
* * convt_tkt.c: Delete; it's not needed anymoreTom Yu1997-08-121-87/+178
| | | | | | | | | | | | | | | | | | * 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
* * Better support for Athena Kerberos if installedSam Hartman1996-08-051-1/+1
| | | | | | * Linux shared lib fix git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8903 dc483132-0cff-0310-8789-dd5450dbe970
* Compiler warning cleanupPaul Park1995-06-271-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6171 dc483132-0cff-0310-8789-dd5450dbe970
* Updated to use autoconf, and to use the new Kerberos library APITheodore Tso1995-06-061-6/+14
| | | | 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-4/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5032 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
* 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/+156
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2611 dc483132-0cff-0310-8789-dd5450dbe970