summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix recursion-forcing rules to be more friendly to parallel buildsTom Yu2003-02-114-2/+24
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15179 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Another attempt... turns our that the "copy"Tom Yu2003-02-112-8/+15
| | | | | | | | command on Windows preserves modtimes, so spurious rebuilds were happening even with the stamp file, since the target in $(EHDRDIR) is always out of date with respect to the stamp file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15178 dc483132-0cff-0310-8789-dd5450dbe970
* Fix some things to avoid spurious rebuilds of header filesTom Yu2003-02-114-13/+28
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15177 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (K4LIBS): Revert previousTom Yu2003-02-113-1/+7
| | | | | | | * krb5_32.def: Add afs_string_to_key, which is now needed by the krb4 library. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15176 dc483132-0cff-0310-8789-dd5450dbe970
* * password_to_key.c (krb5_passwd_to_key): Replace snprintf() callTom Yu2003-02-113-7/+39
| | | | | | | | | | | with explicit length checking. * memcache.c (krb4int_save_credentials_addr): Renamed from krb_save_credentials(). (krb_save_credentials): Implement in terms of krb4int_save_credentials_addr(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15175 dc483132-0cff-0310-8789-dd5450dbe970
* Various fixes to Windows build of krb4 library. Fix up KRB5_CALLCONVTom Yu2003-02-115-13/+38
| | | | | | | on some new krb4 library functions. Fix up library generation to refer to des425. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15174 dc483132-0cff-0310-8789-dd5450dbe970
* Fix lots of things to compile on Unix. Fix some typosTom Yu2003-02-1111-56/+150
| | | | | | | | | | By means of carrying through local addresses in many places, eliminate or reduce sections of code depending on TARGET_OS_MAC conditionals. Conditionalize some prototypes in krb.h with KRB_PRIVATE, to avoid leakage on Mac. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15173 dc483132-0cff-0310-8789-dd5450dbe970
* Note: these checkins are partial progress for Tom Yu. They probably don't ↵Alexandra Ellwood2003-02-109-142/+186
| | | | | | build; Tom is expecting that. *** CCache-glue.c: Removed copying of the string_to_key type in krb_save_credentials. Saving the string_to_key type is unnecessary and was just for display purposes. Will be removed for KfM 5.0. Updated to use KRB5_CALLCONV instead of INTERFACE and include the krb5's krb4 headers instead of the KfM ones. *** change-password.c: Removed include of CredentialsCache.h and code that switches between string to key types. This doesn't make sense for password changing because the krb4 protocol for password changing implemented here only supports mit's string to key. Bug was in KfM and got ported forward. Should the code call mit_password_to_key for all platforms? *** FSp-glue.c: Removed dependency on MoreFiles and replaced it with code to use FSRefs now that we are Carbon-only. *** g_in_tkt.c: Added loop which calls password to key functions trying each one. This technique was imported from KTH-KRB into KfM. This code still needs to have the TARGET_OS_MAC code made more Unix friendly for Darwin builds. The behavior differences (store the address or not) should be deferred until the very last moment to avoid excessive #ifdefs. *** g_pw_in_tkt.c: Added loop which calls password to key functions trying each one. This technique was imported from KTH-KRB into KfM. *** krb4int.h: Added password-to-key.c functions so they can be used by g_in_tkt.c and g_pw_in_tkt.c. *** password-to-key.c: Removed dependence on the CCAPI so this code can be used on all platforms to implement looping over the password to key functions. *** RealmsConfig-glue.c: Changed to use #ifdef USE_CCAPI like is used elsewhere in the krb5 sources. This is just for consistency in krb5 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15172 dc483132-0cff-0310-8789-dd5450dbe970
* Have g_token_size return unsigned int for signed/unsigned cleanupEzra Peisach2003-02-095-4/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15171 dc483132-0cff-0310-8789-dd5450dbe970
* * prompter.c (krb5_prompter_posix): Kill echo before printingTom Yu2003-02-082-6/+10
| | | | | | prompt to avoid possible race conditions in test suite. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15170 dc483132-0cff-0310-8789-dd5450dbe970
* Change comments to remove the note that we're going to redesign keyTom Yu2003-02-084-5/+12
| | | | | | | | storage architecture for 1.3. ticket: 1193 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15168 dc483132-0cff-0310-8789-dd5450dbe970
* Fix ABI divergence between Unix and Mac krb4 libraries in declarationTom Yu2003-02-074-5/+92
| | | | | | of krb_err_txt by means of a gross hack. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15165 dc483132-0cff-0310-8789-dd5450dbe970
* * prompter.c (krb5_prompter_posix, setup_tty, restore_tty): Fix toTom Yu2003-02-072-12/+22
| | | | | | | | use the actual file descriptor we dup()'ed to in case tcsetattr() doesn't actually change the underlying device modes and instead only affects the specific file descriptor. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15164 dc483132-0cff-0310-8789-dd5450dbe970
* * locate_kdc.c (translate_ai_error): Handle EAI_ADDRFAMILY like EAI_NONAME.Ken Raeburn2003-02-062-7/+11
| | | | | | | | | | (krb5int_add_host_to_list): Translate errors returned from the second getaddrinfo call. ticket: 1339 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15160 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (run-aes-test): Add $(RUN_SETUP) so that ifEzra Peisach2003-02-052-2/+7
| | | | | | compiling only shared libraries, LD_LIBRARY_PATH is set for test. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15155 dc483132-0cff-0310-8789-dd5450dbe970
* commentTom Yu2003-02-052-2/+11
| | | | | | | | | * decomp_tkt.c (dcmp_tkt_int): Patch from Booker Bense to use krb_get_lrealm() instead of copying KRB_REALM into prealm. ticket: 710 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15153 dc483132-0cff-0310-8789-dd5450dbe970
* * prompter.c (krb5_prompter_posix): Rewrite to no longer useTom Yu2003-02-054-87/+173
| | | | | | | | | | | | | longjmp(), as well as to get a non-buffered stdio stream on stdin to avoid passwords staying around in stdio buffers. This does have the side effect of possibly losing pre-buffered input from an application that reads from stdin using stdio functions prior to calling the prompter, but hopefully those are rare. ticket: 673 ticket: 680 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15151 dc483132-0cff-0310-8789-dd5450dbe970
* Get addressless tickets by defaultSam Hartman2003-02-042-2/+6
| | | | | | | | | By default Kerberos obtains addressless tickets. ticket: new Tags: enhancement git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15150 dc483132-0cff-0310-8789-dd5450dbe970
* update dependenciesKen Raeburn2003-02-032-8/+17
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15147 dc483132-0cff-0310-8789-dd5450dbe970
* *** empty log message ***Ken Raeburn2003-02-031-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15146 dc483132-0cff-0310-8789-dd5450dbe970
* Remove placeholder file that shouldn't have been checked inKen Raeburn2003-02-032-9/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15145 dc483132-0cff-0310-8789-dd5450dbe970
* Build and link in AES crypto code (but don't define the enctype yet).Ken Raeburn2003-02-036-171/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build and link in PBKDF2 function. Add ciphertext stealing tests. Update various tests to correspond with IETF crypto draft. * aes: New directory, containing AES implementation from Brian Gladstone, tweaked a little for the krb5 build system. * configure.in: Build its makefile. * Makefile.in (LOCAL_SUBDIRS, LOCALINCLUDES, STOBJLISTS, SUBDIROBJLISTS): Add aes entries. * t_cts.c: New test file. * Makefile.in (EXTRADEPSRCS): Add t_cts. (t_cts$(EXEEXT)): New rule. * Makefile.in (SRCS, OBJS, STLIBOBJS): Add pbkdf2. (EXTRADEPSRCS): Remove pbkdf2.c. (t_pkcs5$(EXEEXT)): Don't list pbkdf2.$(OBJEXT). * t_nfold.c (fold_kerberos): New function. (main): Call it with different lengths. * vectors.c: Include ctype.h and hash_provider.h. (test_nfold, test_mit_des_s2k, test_s2k, test_dr_dk): Test case data now static and const. (test_nfold): Add "Q" and "ba" tests from Simon Josefsson. (GCLEF): New macro. (test_mit_des_s2k): Add GCLEF test case. Fill in "key" at run time, not as initialization. (test_s2k): Added GCLEF test case. (krb5int_enc_aes128, krb5int_enc_aes256): Declare. (combine_keys, test_des3_combine, k5_des3_make_key): Functions deleted. (whoami): New variable. (printd, printk): New functions. (test_pbkdf2): New function. (main): Initialize whoami. Test nfold only for now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15144 dc483132-0cff-0310-8789-dd5450dbe970
* * aes.c: New file.Ken Raeburn2003-02-033-2/+206
| | | | | | | * Makefile.in (STLIBOBJS, OBJS, SRCS): Include it. (LOCALINCLUDE): Add aes source dir. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15143 dc483132-0cff-0310-8789-dd5450dbe970
* Make l40 staticSam Hartman2003-02-032-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15142 dc483132-0cff-0310-8789-dd5450dbe970
* AES implementation by Briad Gladman; tweaked for krb5 treeKen Raeburn2003-02-0331-0/+39436
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15141 dc483132-0cff-0310-8789-dd5450dbe970
* * RealmsConfig-glue.c (get_krbhst_default, krb_get_krbhst, krb_realmofhost):Ken Raeburn2003-01-282-3/+8
| | | | | | | | | Use strcpy instead of strncpy. ticket: 1339 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15135 dc483132-0cff-0310-8789-dd5450dbe970
* krb4 library breaks old krb_get_admhst APIKen Raeburn2003-01-272-2/+7
| | | | | | | | | * RealmsConfig-glue.c (krb_get_admhst): Use strcpy instead of strncpy, and max length of MAX_HSTNM. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15134 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_32.def: Export krb5_rc_close, krb5_free_enc_tkt_part, andKen Raeburn2003-01-172-0/+8
| | | | | | krb5_decrypt_tkt_part, for GSSAPI. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15129 dc483132-0cff-0310-8789-dd5450dbe970
* Use new target create-ehdrdir, defined differently for UNIX and WIN32, toKen Raeburn2003-01-172-6/+11
| | | | | | | conditionally create the target directory $(EHDRDIR) if needed, before copying files into it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15128 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in ($(EHDRDIR)$(S)gssapi.h): Depend on includes-unix, to make sureKen Raeburn2003-01-172-2/+9
| | | | | | | the directory is created before installation of the file. ($(EHDRDIR)$(S)gssapi_generic.h): Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15125 dc483132-0cff-0310-8789-dd5450dbe970
* * sendauth.c (krb_net_rd_sendauth): Arg raw_len now points to KRB4_32; don'tKen Raeburn2003-01-153-5/+11
| | | | | | | | cast it to pointer to unsigned long. Change ld.so warning message check to be byte-order independent. * krb4int.h (krb_net_rd_sendauth): Decl updated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15124 dc483132-0cff-0310-8789-dd5450dbe970
* This is the last piece of the KfM mergeTom Yu2003-01-152-0/+764
| | | | | | | | * CCache-glue.c: New file from KfM. ticket: 1189 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15123 dc483132-0cff-0310-8789-dd5450dbe970
* This should be all that remains of the 1-2-2-branch merge; someTom Yu2003-01-132-191/+180
| | | | | | | | | | | additional sanity-checking of merge needed though. * krb5_32.def: Merge from 1-2-2-branch. ticket: 1177 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15117 dc483132-0cff-0310-8789-dd5450dbe970
* kadm5_get_either leaks memoryEzra Peisach2003-01-122-0/+8
| | | | | | | | | * svr_iters.c (kadm5_get_either): For POSIX_REGEXPS (i.e. regcomp), call regfree() to cleanup memory. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15116 dc483132-0cff-0310-8789-dd5450dbe970
* Memory leak in krb5_send_tgs()Ezra Peisach2003-01-122-0/+6
| | | | | | | | * send_tgs.c (krb5_send_tgs): Free memory leak of TGS_REQ. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15115 dc483132-0cff-0310-8789-dd5450dbe970
* * svc_auth_gssapi.c (_svcauth_gssapi_unset_names): If invoked moreEzra Peisach2003-01-123-1/+13
| | | | | | | | | than once, do not double free memory. * clnt_perror.c (clnt_sperror): Do not write past end of allocated buffer. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15114 dc483132-0cff-0310-8789-dd5450dbe970
* Search for ar, ranlib, install in KRB5_BUILD_LIBRARY* macros rather thanKen Raeburn2003-01-1016-41/+23
| | | | | | explicitly in directories using those macros. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15111 dc483132-0cff-0310-8789-dd5450dbe970
* Use markers in Makefile.in rather than rules in configure.in to indicate whenKen Raeburn2003-01-1071-37/+258
| | | | | | | | to use the lib.in and libobj.in makefile fragments. Pushing this per-directory info into Makefile.in will make it a little easier to work on combining configure scripts for multiple directories. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15107 dc483132-0cff-0310-8789-dd5450dbe970
* Patch to get new service tickets in preference to using expiredSam Hartman2003-01-102-1/+15
| | | | | | | | service tickets in krb5_get_credentials. Ticket: 1260 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15106 dc483132-0cff-0310-8789-dd5450dbe970
* Previously fwd_tgt_creds required either that the hostname be passedSam Hartman2003-01-082-14/+25
| | | | | | | | | | | in or that the principal be a host-based service. This means you cannot for example forward tickets to a GSSAPI user-based service. The requirement to get the hostname is only needed in cases where addressless tickets are not used. So when addressless tickets are used, do not require the hostname. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15099 dc483132-0cff-0310-8789-dd5450dbe970
* More const for ops tablesKen Raeburn2003-01-085-6/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15096 dc483132-0cff-0310-8789-dd5450dbe970
* * sendto_kdc.c (state_strings): Now constKen Raeburn2003-01-082-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15095 dc483132-0cff-0310-8789-dd5450dbe970
* More const for ops tablesKen Raeburn2003-01-085-6/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15094 dc483132-0cff-0310-8789-dd5450dbe970
* * appdefault.c (conf_yes, conf_no): Now constKen Raeburn2003-01-082-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15093 dc483132-0cff-0310-8789-dd5450dbe970
* Make ccache and rcache ops tables constKen Raeburn2003-01-086-7/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15092 dc483132-0cff-0310-8789-dd5450dbe970
* For new encryption types and for RC4, encrypt the krb_cred message inSam Hartman2003-01-084-60/+103
| | | | | | | | | | the initial gssapi token if credentials are being delegated. For consistency with Microsoft, we encrypt the credentials using the session key not the subsession key. Ticket: 1054 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15091 dc483132-0cff-0310-8789-dd5450dbe970
* Log entries for Makefile.ov deletionKen Raeburn2003-01-084-0/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15090 dc483132-0cff-0310-8789-dd5450dbe970
* Nuke some old .orig filesKen Raeburn2003-01-086-197/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15089 dc483132-0cff-0310-8789-dd5450dbe970
* nuke old OV makefile stuffKen Raeburn2003-01-074-368/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15088 dc483132-0cff-0310-8789-dd5450dbe970
* Fix logic error in previous patch that broke gss_init_sec_contextSam Hartman2003-01-072-9/+14
| | | | | | | ticket: 1054 Status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15087 dc483132-0cff-0310-8789-dd5450dbe970