summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Makefile.in: Add ccapi to the include path so we can find stdcc.hTheodore Tso1999-01-272-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11128 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed typo in SRCSMiro Jurisic1999-01-221-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11122 dc483132-0cff-0310-8789-dd5450dbe970
* Resource chain mangling fixMiro Jurisic1999-01-221-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11120 dc483132-0cff-0310-8789-dd5450dbe970
* _MACINTOSH -> macintoshMiro Jurisic1999-01-221-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11119 dc483132-0cff-0310-8789-dd5450dbe970
* Remove inappropriate cc_shutdown() call from krb5_cc_destroy()Scott McGuire1999-01-061-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11104 dc483132-0cff-0310-8789-dd5450dbe970
* sn2princ.c (krb5_sname_to_principal): Windows NT5's broken resolverTheodore Tso1999-01-052-0/+19
| | | | | | | gratuitously tacks on a trailing period to the hostname (at least it does in Beta2). Deal with this brain-damage. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11102 dc483132-0cff-0310-8789-dd5450dbe970
* changepw.c: Add a test for _WIN16 as well as _WIN32 for socketsTheodore Tso1999-01-052-1/+7
| | | | | | | workaround (in case we do want to build the 16 bit library again someday) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11101 dc483132-0cff-0310-8789-dd5450dbe970
* * make_checksum.c (krb5_c_make_checksum): Note the fact that we'reTom Yu1999-01-054-1/+38
| | | | | | | | | | | | | | | | punting on dealing with backwards compat with length-included checksums. * etypes.c: Add ENCTYPE_LOCAL_DES3_HMAC_SHA1 as a temporary kludge. Note that this is added to the end of the array so other code can lop off the last member of the array and the right thing will happen so that it is possible to disable des3-marc-hmac-sha1 from the KDC command line, for instance. * configure.in: Conditionalize ATHENA_DES3_KLUDGE on --enable-athena. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11099 dc483132-0cff-0310-8789-dd5450dbe970
* * dk.h: Add prototypes for krb5_marc_dk_*Tom Yu1999-01-055-0/+389
| | | | | | | | | | | | | | * dk_encrypt.c (krb5_marc_dk_encrypt): Add compat for 32-bit length coded ciphertext. * dk_decrypt.c (krb5_marc_dk_decrypt): Add compat for 32-bit length coded ciphertext. * checksum.c: Add compat for 32-bit length included checksum. Note that nothing uses this at the moment, and probably shouldn't. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11098 dc483132-0cff-0310-8789-dd5450dbe970
* accept_sec_context.c (krb5_gss_accept_sec_context): Eliminate doubleTheodore Tso1998-12-223-232/+219
| | | | | | | | | | | | | | | free of ap_req.data, and initialize ctypes to be NULL to avoid freeing a pointer to stack garbage when doing a V1 mechanism accept_sec_contxt. init_sec_context.c: Re-arrange program logic to simplify and factor out code; fix gss_init_sec_context() so that if the default OID is passed to the init_sec_context, it will use the V1 mechanism if a single DES enctype is used. Error handling was revamped to make it simpler and cleaner, and to assure that we don't have memory leaks on error returns. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11093 dc483132-0cff-0310-8789-dd5450dbe970
* * old_decrypt.c (krb5_old_decrypt): Initialize the ivec to the keyTom Yu1998-12-162-1/+17
| | | | | | | | | | if we're using DES_CBC_CRC, for backwards compatibility. We weren't noticing this before because it only trashes the first block, which is the confounder, which we weren't actually verifying because checksum was unconditionally succeeding prior to the other patch. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11092 dc483132-0cff-0310-8789-dd5450dbe970
* * old_decrypt.c (krb5_old_decrypt): Actually compare theTom Yu1998-12-112-1/+6
| | | | | | calculated checksum against the provided checksum. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11091 dc483132-0cff-0310-8789-dd5450dbe970
* * svr_principal.c (kadm5_randkey_principal_3): Fix typo inEzra Peisach1998-12-072-2/+7
| | | | | | | | | arguments to krb5_dbe_crk(). Prototypes are your friends. Essentially, the number of tuples was passed as tuples and visa-versa. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11090 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-12-0540-1/+143
| | | | | | to buildtop and thisconfigdir, respectively.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11087 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-12-052-0/+7
| | | | | | | | to buildtop and thisconfigdir, respectively.) configure.in: Use K5_AC_OUTPUT isntead of K5_OUTPUT_FILES git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11086 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-12-053-2/+10
| | | | | | | | to buildtop and thisconfigdir, respectively.) configure.in: Use K5_AC_OUTPUT instead of K5_OUTPUT_FILES. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11085 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-12-056-0/+21
| | | | | | to buildtop and thisconfigdir, respectively.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11084 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-12-0524-0/+85
| | | | | | to buildtop and thisconfigdir, respectively.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11083 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in, ccdefops.c: Temporarily back out the ccapi ccache underTheodore Tso1998-12-053-9/+23
| | | | | | | | | Windows so we can make sure the rest of the krb5 tree builds correctly under Windows. (Note: I didn't revert lib/krb5/os/ccdefname.c, so setting KRB5_CC_NAME to FILE:C:\tmp\tkt is required to make things work.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11080 dc483132-0cff-0310-8789-dd5450dbe970
* Added missing krb4__krb5_context variable declarationTheodore Tso1998-12-051-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11078 dc483132-0cff-0310-8789-dd5450dbe970
* localaddr.c: Added missing KRB5_DLLIMP and KRB5_CALLCONF macros fromTheodore Tso1998-12-052-1/+6
| | | | | | the function definition. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11077 dc483132-0cff-0310-8789-dd5450dbe970
* krb5_32.def: Fixed exports file to reflect new crypto library andTheodore Tso1998-12-052-1/+19
| | | | | | related changes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11076 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Added missing "cd .." necessary for making this compileTheodore Tso1998-12-052-2/+11
| | | | | | under Windows. Also added missing *.lst files to OBJFILELIST. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11071 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed busted Makefile so that it compiles under WindowsTheodore Tso1998-12-052-3/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11070 dc483132-0cff-0310-8789-dd5450dbe970
* Added KRB5_DLLIMP and KRB5_CALLCONV so that these files buildTheodore Tso1998-12-0511-27/+46
| | | | | | under Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11069 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-12-053-156/+29
| | | | | | | | | | to buildtop and thisconfigdir, respectively.) fcc_maybe.c (fcc_lock_file): Removed all of the filesystem-dependent mess for file locking, which has been now properly moved to krb5_lock_file(), where it belongs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11068 dc483132-0cff-0310-8789-dd5450dbe970
* rd_svc_key.c (krb54_get_service_keyblock): New function which searchesTheodore Tso1998-12-0510-81/+165
| | | | | | | | | | | | | | | | | | | | | | the appropaite krb5 keytab file for the key to be used by the krb4 library. rd_req.c (krb_rd_req): If the appropriate key cannot be found in the krb4 srvtab file, try calling krb54_get_service_keyblock. decomp_tkt.c (dcmp_tkt_int): g_in_tkt.c (krb_mk_in_tkt_preauth): g_ad_tkt.c (get_ad_tkt): pkt_clen.c (pkt_clen): rd_err.c (krb_rd_err): rd_priv.c (krb_rd_priv): rd_req.c (krb_rd_req): rd_safe.c (krb_rd_safe): Use krb4_swab32 and krb4_swab16 instead of swap_u_long and swap_u_short. The new byte swapping routines are faster and cleaner. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11067 dc483132-0cff-0310-8789-dd5450dbe970
* Forgot to check this in earlierTheodore Tso1998-12-051-0/+17
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11066 dc483132-0cff-0310-8789-dd5450dbe970
* * admin.h: Add prototypes for create_principal_3,Tom Yu1998-12-052-0/+24
| | | | | | chpass_principal_3, and randkey_principal_3. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11064 dc483132-0cff-0310-8789-dd5450dbe970
* * svr_principal.c (kadm5_create_principal): Modify to callTom Yu1998-12-052-8/+57
| | | | | | | | | | | | | | create_principal_3. (kadm5_create_principal_3): New function including flag to keep old keys and optional explicit keysalt_tuples. (kadm5_chpass_principal): Modify to call chpass_principal_3. (kadm5_chpass_principal_3): New function including flag to keep old keys and optional explicit keysalt_tuples. (kadm5_randkey_principal): Modify to call randkey_principal_3. (kadm5_randkey_principal_3): New function including flag to keep old keys and optional explicit keysalt_tuples. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11063 dc483132-0cff-0310-8789-dd5450dbe970
* realm_iter.c: New function which iterators over the realms in theTheodore Tso1998-12-044-0/+125
| | | | | | krb5.conf file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11061 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_k_decode.c (asn1_decode_krb5_flags): Fix previous toTom Yu1998-12-042-1/+8
| | | | | | properly left-justify bit strings less than 32 bits. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11057 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_k_decode.c (asn1_decode_krb5_flags): Modify to deal withTom Yu1998-12-042-7/+22
| | | | | | | | BIT STRING values that are not exactly 32 bits. Throw away bits beyond number 31 in a bit string for now. Deal with masking out unused bits. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11055 dc483132-0cff-0310-8789-dd5450dbe970
* Use $() instead of ${}, which doesn't work for MakefilesTheodore Tso1998-12-021-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11053 dc483132-0cff-0310-8789-dd5450dbe970
* More Windows compatibility fixesScott McGuire1998-11-253-28/+76
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11047 dc483132-0cff-0310-8789-dd5450dbe970
* * svr_principal.c (kadm5_create_principal):Tom Yu1998-11-172-3/+12
| | | | | | | | (kadm5_chpass_principal): (kadm5_randkey_principal): Fix up for new calling conventions of dbe_crk and dbe_cpw. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11046 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_cpw.c (krb5_dbe_crk):Tom Yu1998-11-172-8/+38
| | | | | | | (krb5_dbe_cpw): Add "keepold" boolean argument to indicate whether to retain old keys. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11045 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-11-133-1/+10
| | | | | | | | to buildtop and thisconfigdir, respectively.) configure.in: Add test for the fcntl.h header file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11028 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-11-132-1/+9
| | | | | | | | | | | to buildtop and thisconfigdir, respectively.) Also added a note to the ChangeLog indicating that we changed lock_file.c to check for HAVE_FCNTL_H and defined(F_SETLKW) and defined(F_RDLCK) instead of POSIX_FILE_LOCKS (so we can get rid of a non-standard autoconf symbol.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11027 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-11-135-58/+45
| | | | | | | | | | | | | | | | | to buildtop and thisconfigdir, respectively.) configure.in: Remove KRB5_POSIX_LOCKS test. win_store.c (krb__get_srvtabname): g_cnffile.c: Use krb5__krb4_context instead of init'ing and free'ing a krb5_context each time we need to read data from the configuration file. We also define krb5__krb4_context in g_cnnfile.c, since it's a likely that any use of the krb4 library will pull in that file. tf_util.c (tf_init): Use krb5_lock_file instead of trying to roll our own flock emulation. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11026 dc483132-0cff-0310-8789-dd5450dbe970
* Fix bug where if the fcntl-style lock succeeded, we should returnTheodore Tso1998-11-132-2/+13
| | | | | | immediately instead of trying to do flock-style locking. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11024 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (STLIBOBJS, OBJS, SRCS): Restore des.cTom Yu1998-11-123-6/+15
| | | | | | | * des.c: Restore des_ecb_encrypt and make it use the cbc interface. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11022 dc483132-0cff-0310-8789-dd5450dbe970
* Fixes to build out of source treeEzra Peisach1998-11-064-5/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11020 dc483132-0cff-0310-8789-dd5450dbe970
* * k5unseal.c (kg2_unwrap_integ): Handle case of malloc(0)Ezra Peisach1998-11-062-13/+20
| | | | | | returning NULL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11018 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed filename uniqueness problems by renaming all of the *.c filesTheodore Tso1998-11-055-3/+5
| | | | | | to be hash_*.c files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11017 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed places where code didn't follow CCache API. Integrated some stuff ↵Scott McGuire1998-11-053-60/+79
| | | | | | from Windows git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11016 dc483132-0cff-0310-8789-dd5450dbe970
* Make sure filenames are unique across all of the krb5 directories. RenamedTheodore Tso1998-11-059-12/+13
| | | | | | all of the */encrypt.c and */decrypt.c files to {dk,raw,old}_{en,de}crypt.c. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11014 dc483132-0cff-0310-8789-dd5450dbe970
* lock_file.c (krb5_lock_file): Move the flock() fallback code fromTheodore Tso1998-11-032-23/+49
| | | | | | | | | fcc_maybe.c into krb5_lock_file(). This works around the bug that certain lossy operating systems (mainly from our good friends at SunSoft) do not support POSIX_FILE_LOCKS on all filesystems (namely tmpfs) but do support flock on those filesystems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11009 dc483132-0cff-0310-8789-dd5450dbe970
* * str_conv.c: Remove krb5_cksumtype_to_string after mergeTom Yu1998-11-032-27/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11008 dc483132-0cff-0310-8789-dd5450dbe970
* resurrectTom Yu1998-11-021-0/+203
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11007 dc483132-0cff-0310-8789-dd5450dbe970