summaryrefslogtreecommitdiffstats
path: root/src/krb524
Commit message (Collapse)AuthorAgeFilesLines
...
* Add hooks to optionally report local address used when contacting a KDC-likeKen Raeburn2002-07-082-1/+6
| | | | | | | 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
* update dependenciesKen Raeburn2002-06-211-6/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14553 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2002-06-151-21/+21
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14522 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524.h: Change multiple-inclusion test macro to not stomp onTom Yu2002-06-152-4/+9
| | | | | | implementation namespace. Fix up BEGIN_DECLS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14509 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524.h: Back out erroneous merge of post-1.2.5 changeTom Yu2002-06-152-2/+5
| | | | | | temporarily. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14508 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524.h: Updated C++ protection to not interfere with emacsTom Yu2002-06-157-7/+94
| | | | | | | | | | | | | | | | | | | | | 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
* Use ws2_32.lib instead of wsock32.libKen Raeburn2002-06-142-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14505 dc483132-0cff-0310-8789-dd5450dbe970
* Separate send-to-kdc UDP code, export it via accessor interface, and call in toKen Raeburn2002-06-052-155/+10
| | | | | | | 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-042-5/+11
| | | | | | | | 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
* Need port-sockets.h for Win32 (now that using WIN32_LEAN_AND_MEAN)Danilo Almeida2002-04-113-2/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14374 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c (lookup_service_key): Copy key block and free up keytab entry dataKen Raeburn2002-03-072-1/+17
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14237 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c (cleanup_and_exit): Call krb5_klog_close()Ezra Peisach2001-12-053-4/+12
| | | | | | | * encode.c (encode_bytes, decode_bytes): Make length field unsigned to clean up unsigned/signed warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14043 dc483132-0cff-0310-8789-dd5450dbe970
* In directories building libraries, generate dependencies for .so/.po files tooKen Raeburn2001-10-201-8/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13828 dc483132-0cff-0310-8789-dd5450dbe970
* Update automatic dependencies to work on Windows by using $(OUTPRE) andKen Raeburn2001-10-112-23/+43
| | | | | | | $(OBJEXT). Change a couple of UNIX rules to not trigger incorrectly on Windows. Rebuild dependencies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13801 dc483132-0cff-0310-8789-dd5450dbe970
* add ##WIN32## prefix to last change, so unix build worksKen Raeburn2001-09-282-9/+15
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13761 dc483132-0cff-0310-8789-dd5450dbe970
* Add KRB524_STATIC_HACK for Windows build so that we can generate aDanilo Almeida2001-09-282-5/+26
| | | | | | | | k524init binary that has an static copy of the krb5 library and does not depend on krb5 nor krb524 DLLs. This is so that we can distribute a standalone k524init binary before 1.3 goes out. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13760 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (../include/krb524_err.h): Force build of "includes"Ken Raeburn2001-09-022-0/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13727 dc483132-0cff-0310-8789-dd5450dbe970
* dependenciesKen Raeburn2001-09-012-9/+49
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13725 dc483132-0cff-0310-8789-dd5450dbe970
* * cnv_tkt_skey.c (HOST_BYTE_ORDER): When casting const int * toEzra Peisach2001-08-082-1/+6
| | | | | | const char * instead of simply char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13678 dc483132-0cff-0310-8789-dd5450dbe970
* * conv_creds.c: Nuke prototype in fileEzra Peisach2001-06-263-7/+10
| | | | | | | * krb524.h: Replace profile for krb524_send_message() with krb524_sendto_kdc(). (krb524_send_message no longer exists). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13511 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Test need for daemon prototypeEzra Peisach2001-06-213-0/+13
| | | | | | * 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-202-1/+3
| | | | | | | | 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-202-0/+6
| | | | | | 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-202-7/+12
| | | | | | | | 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
* Use a "struct addrlist" instead of separate count and pointer-to-pointer valuesKen Raeburn2001-06-202-21/+26
| | | | | | | 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
* * test.c (print_key): Pass in des_cblock* instead of char *.Ezra Peisach2001-06-062-5/+14
| | | | | | | | (krb5_print_keyblock): Cast argument to C_Block_print to des_cblock *. (krb4_print_ticket): For printf formats expecting a long, cast arguments as such. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13278 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for unistd.h.Ken Raeburn2001-06-053-1/+6
| | | | | | * 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
* * krb524d.c: Include stdarg.h.Ken Raeburn2001-06-052-24/+49
| | | | | | | | | | (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
* * k524init.c: Inculde unistd.h for getopt() prototypeEzra Peisach2001-06-044-5/+14
| | | | | | | | * 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-082-1/+6
| | | | | | 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
* back out accidental check-inKen Raeburn2001-04-263-28/+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-265-60/+31
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13208 dc483132-0cff-0310-8789-dd5450dbe970
* use new internal interface for locating serversKen Raeburn2001-04-262-15/+31
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13205 dc483132-0cff-0310-8789-dd5450dbe970
* Allow des-mdX keys as well as des-crc (patch from assar).Ken Raeburn2001-04-146-31/+100
| | | | | | | 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
* make prototypes unconditionalKen Raeburn2001-04-105-30/+35
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13162 dc483132-0cff-0310-8789-dd5450dbe970
* * krb524d.c: Provide prototypes for local functionsEzra Peisach2001-03-123-5/+28
| | | | | | * test.c: Declare local functions static. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13076 dc483132-0cff-0310-8789-dd5450dbe970
* * cnv_tkt_skey.c (krb524_convert_tkt_skey): Avoid double-free;Tom Yu2001-02-052-1/+5
| | | | | | caller should free v5tkt. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12995 dc483132-0cff-0310-8789-dd5450dbe970
* * encode.c, krb524.h: encode_v4tkt() and decode_v4tkt() now takeEzra Peisach2000-10-175-10/+21
| | | | | | | | | | | | 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
* * conv_creds.c (krb524_convert_creds_plain): Use time_to_life()Tom Yu2000-10-073-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
* * krb524d.c (do_connection): Do not assume that sizeof(int) == 4Ezra Peisach2000-10-066-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
* * Makefile.in: Install krb524.h and krb524_err.h header file soEzra Peisach2000-10-032-2/+30
| | | | | | applications can include for prototypes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12712 dc483132-0cff-0310-8789-dd5450dbe970
* * cnv_tkt_skey.c: Fix up static prototypes forTom Yu2000-08-092-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
* * Makefile.in: Fix build so we don't try to build an extra lib.Danilo Almeida2000-07-202-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
* * Makefile.in: Make krb524 library and k524init program build onDanilo Almeida2000-07-2012-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
* * getcred.c (main): Use correct parameters for krb5_cc_default()Danilo Almeida2000-07-192-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
* Change wsanchez@apple -> tritan@mitWilfredo Sanchez2000-06-011-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12331 dc483132-0cff-0310-8789-dd5450dbe970
* log tritan's changesTom Yu1999-10-261-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11877 dc483132-0cff-0310-8789-dd5450dbe970
* Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, LOCAL_INCLUDES suchWilfredo Sanchez1999-10-261-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
* 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