summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Update dependenciesKen Raeburn2005-06-2132-921/+1354
| | | | | | | | | N.B.: The version of gcc used this time ("gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)") seems to emit some duplicate dependencies -- some header files get listed twice. This is annoying but shouldn't cause any harm.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17256 dc483132-0cff-0310-8789-dd5450dbe970
* ksu keeps old ccache lockedKen Raeburn2005-06-152-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | ksu can keep the user's ccache (the old one, not the newly created one) locked while the new shell is running. It's a read lock, which prevents other processes from modifying the file (e.g., adding newly acquired tickets); they just hang until ksu exits. The problem is really a bug down in the ccache code, where the wrong data pointer is pulled out of a linked list, and used. But ksu is one of the few programs that manipulates multiple ccaches; most other programs wouldn't show the problem, and it only shows up with ksu if some other program is also being run that has to fetch new tickets. Any other programs maintaining multiple file ccaches may be affected as well. * cc_file.c (dereference): Fix test is list-walking loop. ticket: new target_version: 1.4.2 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17243 dc483132-0cff-0310-8789-dd5450dbe970
* * destest.c (main): Force testing of unaligned access to input, output, and keyKen Raeburn2005-06-102-3/+17
| | | | | | blocks. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17237 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_dbm.c: Unused file deletedKen Raeburn2005-06-102-1409/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17235 dc483132-0cff-0310-8789-dd5450dbe970
* * sendto_kdc.c (service_fds): Don't create a select_state on the stack; take anKen Raeburn2005-06-102-23/+40
| | | | | | | | | | | additional argument pointing to it. (krb5int_sendto): Don't create a select_state on the stack; instead, allocate two on the heap, passing the second as the new argument to service_fds. ticket: 3060 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17234 dc483132-0cff-0310-8789-dd5450dbe970
* * f_tables.h: Include k5-platform.h.Ken Raeburn2005-06-092-11/+9
| | | | | | | (GET_HALF_BLOCK): Use load_32_be. (PUT_HALF_BLOCK): Use store_32_be. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17231 dc483132-0cff-0310-8789-dd5450dbe970
* Make "make check" able to link things again..Ken Raeburn2005-05-242-1/+7
| | | | | | | * keyblocks.c (krb5int_c_free_keyblock): Call krb5int_c_free_keyblock_contents instead of krb5_free_keyblock_contents. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17220 dc483132-0cff-0310-8789-dd5450dbe970
* Implement RFC 3961 PRFSam Hartman2005-05-2016-67/+491
| | | | | | | | | | | | | | Add krb5_c_prf, a function that implements the RFC 3961 PRF. As part of this change, the krb5_init_keyblock and krb5 free routines move to libk5crypto. Public stubs remain in libkrb5, but the actual implementation is an internal interface in libk5crypto ticket: new Tags: enhancement git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17219 dc483132-0cff-0310-8789-dd5450dbe970
* * err_txt.c: Don't include krb_err.c if DEPEND is definedKen Raeburn2005-05-132-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17215 dc483132-0cff-0310-8789-dd5450dbe970
* build failure on sparc64-solarisKen Raeburn2005-05-042-1/+5
| | | | | | | | | | | | Mike Friedman at Berkeley reports (on kerberos@mit) that the build fails linking the aes-gen program if the tree is configured with CC=gcc and CFLAGS=-m64. * Makefile.in (aes-gen): Use CC_LINK. Reported by Mike Friedman. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17212 dc483132-0cff-0310-8789-dd5450dbe970
* typo fixKen Raeburn2005-05-011-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17211 dc483132-0cff-0310-8789-dd5450dbe970
* * ytypes.h: Include autoconf.h. Include sys/types.h only if it existsKen Raeburn2005-05-012-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17210 dc483132-0cff-0310-8789-dd5450dbe970
* * shs.c (SHSTransform) [CONFIG_SMALL]: Roll loops for each roundKen Raeburn2005-05-012-0/+32
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17209 dc483132-0cff-0310-8789-dd5450dbe970
* * md5.c (Transform) [CONFIG_SMALL]: Roll loops for each roundKen Raeburn2005-05-012-0/+60
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17208 dc483132-0cff-0310-8789-dd5450dbe970
* * md4.c (Transform) [CONFIG_SMALL]: Roll loops for each roundKen Raeburn2005-05-012-0/+27
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17207 dc483132-0cff-0310-8789-dd5450dbe970
* * t_crc.c (main): Don't run timing test for nowKen Raeburn2005-05-012-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17206 dc483132-0cff-0310-8789-dd5450dbe970
* updated dependencies for socket-utils.h changeKen Raeburn2005-04-282-9/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17205 dc483132-0cff-0310-8789-dd5450dbe970
* * yarrow.c: Delete old macintosh support.Ken Raeburn2005-04-282-13/+21
| | | | | | | | | (yarrow_input_maybe_locking): Do the optional locking, and verify that the mutex is locked, before doing anything else. (yarrow_reseed_locked): Verify that the global mutex is locked before doing anything else. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17204 dc483132-0cff-0310-8789-dd5450dbe970
* the purpose of the krb5_get_credentials call is toJeffrey Altman2005-04-252-2/+19
| | | | | | | | | | | obtain a set of credentials for the caller. the krb5_cc_store_cred() call is to optimize performance for future calls. Ignore any errors, since the credentials are still valid even if we fail to store them in the cache. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17201 dc483132-0cff-0310-8789-dd5450dbe970
* Move WSAStartup/WSACleanup from DllMain to krb5_init_ctx/krb5_free_ctxJeffrey Altman2005-04-234-47/+34
| | | | | | | | | WSAStartup/WSACleanup cannot be called from DllMain without risking a deadlock when FreeLibrary(). ticket:2980 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17200 dc483132-0cff-0310-8789-dd5450dbe970
* * lib/kadm5/configure.in, kadmin/configure.in: Don't invoke AC_CANONICAL_HOSTKen Raeburn2005-04-202-1/+5
| | | | | | explicitly, CONFIG_RULES already does it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17185 dc483132-0cff-0310-8789-dd5450dbe970
* Allow compile-time specification that small code space is desiredKen Raeburn2005-04-135-15/+61
| | | | | | | | | | | | | | | | | | | | | * d3_cbc.c (krb5int_des3_cbc_encrypt, krb5int_des3_cbc_decrypt): Don't declare left and right variables as registers. * f_cksum.c (mit_des_cbc_cksum): Likewise. * f_cbc.c (krb5int_des_cbc_encrypt, krb5int_des_cbc_decrypt): Likewise. (krb5int_des_cbc_encrypt): For full blocks, use GET_HALF_BLOCK to read and then xor, instead of processing each byte individually. (krb5int_des_do_encrypt_2, krb5int_des_do_decrypt_2) [CONFIG_SMALL]: New functions, wrapping large macros with the DES inner loops. * f_tables.h (DES_DO_ENCRYPT_1, DES_DO_DECRYPT_1): Renamed from non-_1 names. (krb5int_des_do_encrypt_2, krb5int_des_do_decrypt_2): Declare if CONFIG_SMALL is defined. (DES_DO_ENCRYPT, DES_DO_DECRYPT): Expand to _1 macros or _2 function calls depending on whether CONFIG_SMALL is defined. With CONFIG_SMALL defined, on x86/gcc/glibc, this drops about 5K (25%) of the code/table space. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17183 dc483132-0cff-0310-8789-dd5450dbe970
* * aesopt.h: On PalmOS, include FloatMgr.h to get endianness flag.Ken Raeburn2005-04-132-7/+14
| | | | | | | | | | | (ENC_UNROLL, DEC_UNROLL, ENC_ROUND, LAST_ENC_ROUND, DEC_ROUND, LAST_DEC_ROUND, KEY_SCHED): If CONFIG_SMALL is defined, set to NONE or NO_TABLES as appropriate. (Latter change drops about 40K -- over 85% -- from AES code/table size in shared libraries on x86/glibc/gcc.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17182 dc483132-0cff-0310-8789-dd5450dbe970
* * aes_s2k.c (krb5int_aes_string_to_key): Widen bytes of iteration count ↵Ken Raeburn2005-04-132-1/+8
| | | | | | before shifting git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17181 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (all-unix): Don't build aes-gen by default, leave it for 'make ↵Ken Raeburn2005-04-132-1/+6
| | | | | | check' git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17180 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (BISONFLAGS): Drop -v.Ken Raeburn2005-04-133-23/+27
| | | | | | | | | ($(srcdir)/deltat.c): Change to source directory before rebuilding, so path to source tree doesn't get inserted. (deltat.c rebuilt) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17178 dc483132-0cff-0310-8789-dd5450dbe970
* Delete definitions of unused macros NEED_SOCKETS and NEED_LOWLEVEL_IOKen Raeburn2005-04-1335-35/+47
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17177 dc483132-0cff-0310-8789-dd5450dbe970
* Work around Makefile quoting problemsTom Yu2005-04-076-5/+20
| | | | | | | ticket: 2992 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17170 dc483132-0cff-0310-8789-dd5450dbe970
* * import_name.c (krb5_gss_import_name): Use k5_getpwuid_rKen Raeburn2005-03-262-14/+6
| | | | | | | ticket: 2982 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17159 dc483132-0cff-0310-8789-dd5450dbe970
* * kuserok.c (krb5_kuserok): Use k5_getpwnam_rKen Raeburn2005-03-262-13/+5
| | | | | | | ticket: 2982 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17157 dc483132-0cff-0310-8789-dd5450dbe970
* * dnsglue.h: Define ns_rr_class to ns_rr_cl if ns_rr_class doesn'tTom Yu2005-03-232-0/+14
| | | | | | | | | exist. ticket: 2906 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17145 dc483132-0cff-0310-8789-dd5450dbe970
* * x-deltat.y (wsnum): Add missing semicolon following YYERROR,Tom Yu2005-03-232-1/+5
| | | | | | | | | | | | which was preventing bison-1.75 from producing compilable C output. ticket: new version_reported: 1.4 target_version: 1.4.1 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17140 dc483132-0cff-0310-8789-dd5450dbe970
* * gic_keytab.c (krb5_get_init_creds_keytab): When callingTom Yu2005-03-222-1/+11
| | | | | | | | | | | | krb5_get_init_creds() for the second time (with use_master=1), also accept KRB5_REALM_UNKNOWN as a soft error, and use the result from the first call to krb5_get_init_creds(). This can happen when no master KDC is configured. ticket: 2974 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17132 dc483132-0cff-0310-8789-dd5450dbe970
* The current wconfig.c does not treat @MAINT@ as a comment. Until weJeffrey Altman2005-03-152-1/+9
| | | | | | | | have one that does, override the use of @MAINT@ on Windows. ticket: 2962 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17128 dc483132-0cff-0310-8789-dd5450dbe970
* krb5_c_is_keyed_cksum() is a boolean function. It cannot safely returnJeffrey Altman2005-03-152-1/+10
| | | | | | | | | an error value. Change the error condition to return False (0) instead of 0xFFFFFFFF. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17127 dc483132-0cff-0310-8789-dd5450dbe970
* * sn2princ.c (krb5_sname_to_principal):Jeffrey Altman2005-03-062-20/+55
| | | | | | | | | | | conditionalize the use of reverse dns lookups. The default is to use the existing behavior. rdns can be disabled by specifying [libdefaults] rdns=false ticket: new tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17120 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_encode.c (asn1_encode_generaltime): If gmtime_r returns int instead ofKen Raeburn2005-03-042-0/+10
| | | | | | | | | | pointer, do the appropriate error checking. ticket: 2953 target_version: 1.4.1 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17118 dc483132-0cff-0310-8789-dd5450dbe970
* time-delta parser doesn't work on HP-UX 10Ken Raeburn2005-03-034-703/+1035
| | | | | | | | | | | | | | | | | | | | A build on Lenny's machine (built with gcc 2.7, thread support disabled, static libraries only) is failing tests because the HP header files define "WS" as a macro that expands to 2, while the delta-t grammar uses "WS" as the name of a terminal symbol (which under bison turns into a C macro). Renaming the terminal in the grammar (and custom lexer) fixes the problem. * x-deltat.y (tok_WS): Renamed terminal from "WS", which conflicts with HP-UX 10 header files. Updated all productions. (mylex): Updated. * Makefile.in ($(srcdir)/deltat.c): Enable dependencies in maintainer mode. * deltat.c: Updated. ticket: new target_version: 1.4.1 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17110 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_libinit.c (krb5int_lib_fini): Only show "skipping" message ifKen Raeburn2005-02-172-0/+7
| | | | | | SHOW_INITFINI_FUNCS is defined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17105 dc483132-0cff-0310-8789-dd5450dbe970
* Export missing DATA symbols on WindowsJeffrey Altman2005-02-162-9/+21
| | | | | | | ticket: 2924 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17104 dc483132-0cff-0310-8789-dd5450dbe970
* * init_ctx.c (init_common): Delete redundant library initialization call thatKen Raeburn2005-02-162-4/+22
| | | | | | | was run only on UNIX. Test assertion that krb5_ui_8 really did get a proper 64-bit type. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17103 dc483132-0cff-0310-8789-dd5450dbe970
* missed one file on previous commitTom Yu2005-02-111-2/+2
| | | | | | | ticket: 2913 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17100 dc483132-0cff-0310-8789-dd5450dbe970
* Implement principal name and auth flavor fallback for kadm5 clientTom Yu2005-02-114-257/+368
| | | | | | | | | library. Adjust test suites to compensate. ticket: 2913 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17099 dc483132-0cff-0310-8789-dd5450dbe970
* * gic_pwd.c (krb5_get_init_creds_password): Fix so empty passwordTom Yu2005-02-102-1/+7
| | | | | | | | | | | string causes prompting and doesn't cause truncation of password to zero characters. ticket: 2918 target_version: 1.4.1 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17098 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_libinit.c (krb5int_lib_init, krb5int_lib_fini): If SHOW_INITFINI_FUNCSKen Raeburn2005-02-092-1/+14
| | | | | | is defined, print tracing messages. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17095 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LIBINITFUNC, LIBFINIFUNC): DefineKen Raeburn2005-02-094-0/+10
| | | | | | | ticket: 2916 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17091 dc483132-0cff-0310-8789-dd5450dbe970
* * gss_libinit.c (gssint_lib_init, gssint_lib_fini) [SHOW_INITFINI_FUNCS]: ↵Ken Raeburn2005-02-092-1/+18
| | | | | | Print tracing messages git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17090 dc483132-0cff-0310-8789-dd5450dbe970
* * gssapi.hin: (GSS_SIZEOF_INT, GSS_SIZEOF_LONG, GSS_SIZEOF_SHORT): Don'tKen Raeburn2005-02-032-1/+4
| | | | | | | | | define except on Windows. ticket: 2910 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17085 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: fix macro syntax in last changeKen Raeburn2005-02-031-1/+1
| | | | | | | ticket: 2910 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17084 dc483132-0cff-0310-8789-dd5450dbe970
* * gssapi.hin: Don't conditionally include xom.h hereKen Raeburn2005-02-032-8/+2
| | | | | | | ticket: 2910 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17078 dc483132-0cff-0310-8789-dd5450dbe970