summaryrefslogtreecommitdiffstats
path: root/src/lib/krb4
Commit message (Collapse)AuthorAgeFilesLines
...
* * g_cnffile.c (krb__get_srvtabname): Fix to actually extractTom Yu1999-04-162-10/+16
| | | | | | krb5_srvtab value from profile, instead of always ignoring it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11363 dc483132-0cff-0310-8789-dd5450dbe970
* typo in a commentDan Winship1999-04-031-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11340 dc483132-0cff-0310-8789-dd5450dbe970
* Commit updated changelogTheodore Tso1999-03-141-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11284 dc483132-0cff-0310-8789-dd5450dbe970
* rd_req.c (krb_rd_req): Add appropriate #ifdef so that this codeTheodore Tso1999-02-091-0/+2
| | | | | | compiles cleanly when KRB4_USE_KEYTAB is not defined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11158 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
* 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
* 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
* pull up 3des implementation from the marc-3des branchMarc Horowitz1998-10-306-16/+243
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
* Mon Aug 10 17:51:59 1998 Matthew D Hancher <mdh@mit.edu>Matthew Hancher1998-08-102-2/+9
| | | | | | | | * rd_svc_key.c (read_service_key): Don't call krb5_kt_close() if krb5_kt_resolve() fails, so we don't segfault if the keytab name is invalid. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10800 dc483132-0cff-0310-8789-dd5450dbe970
* * rd_safe.c (krb_rd_safe): Fix up call to quad_cksum()Tom Yu1998-08-074-2/+12
| | | | | | | | * mk_safe.c (krb_mk_safe): Fix up call to quad_cksum(). * tf_util.c (tf_init): Add call to getuid() to initialize me. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10787 dc483132-0cff-0310-8789-dd5450dbe970
* Thu Jul 9 19:35:01 1998 Matthew D Hancher <mdh@mit.edu>Matthew Hancher1998-07-092-20/+113
| | | | | | | | | | | * tf_util.c (tf_init): Fixed a potential race condition in the opening of v4 ticket files. tf_init() was calling lstat() followed by fopen(). Now it calls fopen() and then calls lstat() and fstat() to check file ownership and to check that it opened the file it thought it did. I patched the shared memory code similarly, but since nothing uses it I don't have a good way to test it properly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10629 dc483132-0cff-0310-8789-dd5450dbe970
* * mk_priv.c (krb_mk_priv): Fix up call to pcbc_encrypt(). ByTom Yu1998-06-242-1/+18
| | | | | | | | | | | | | | | | | | taking the address of key, the 5th arg to pcbc_encrypt() was actually a (char **) cast to a (C_Block *). The reason for this is that a C_Block (actually a des_cblock) is typedef'ed from a char[8], which by being in the parameters of the definition of krb_mk_priv() becomes of type (char *). This means that using the address operator on key resulted in a pointer to a pointer to a char rather than a pointer to a des_cblock, which would have been innocuous in this case because pcbc_encrypt() actually takes a (des_cblock *) as the 5th (ivec) argument. The moral is to never pass around naked arrays as function arguments; instead, pass around pointers to arrays to avoid spontaneous conversions to pointers sneaking up. Note that CNS actually uses a (C_Block *) everywhere, and maybe we should as well. *whew* git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10603 dc483132-0cff-0310-8789-dd5450dbe970
* stime.c (krb_stime):Theodore Tso1998-05-094-8/+14
| | | | | | | log.c (krb_new_log, krb_log): klog.c (klog): Print the year using 4 digits to avoid Y2K issues. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10558 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SHLIB_EXPDEPS):Tom Yu1998-04-152-16/+15
| | | | | | (SHLIB_EXPLIBS): Rename libcrypto -> libk5crypto. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10532 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (includes): The header is krb_err.h, notTom Yu1998-04-092-1/+6
| | | | | | /krb_err.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10525 dc483132-0cff-0310-8789-dd5450dbe970
* * g_cnffile.c (krb__get_srvtabname): Fix up to not free contextTom Yu1998-04-052-1/+7
| | | | | | unless it is valid. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10514 dc483132-0cff-0310-8789-dd5450dbe970
* Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu1998-02-182-2/+7
| | | | | | used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
* Mass makefile/configure.in build system revampTheodore Tso1998-02-123-1/+21
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10424 dc483132-0cff-0310-8789-dd5450dbe970
* * in_tkt.c: Conditionalize use of macro do_seteuid, rather thanTom Yu1998-01-062-9/+21
| | | | | | redefining setreuid. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10349 dc483132-0cff-0310-8789-dd5450dbe970
* Include <string.h>Ezra Peisach1997-12-072-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10325 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (clean-unix): krb_err.h resides in the kerberosIVEzra Peisach1997-11-212-1/+6
| | | | | | subdir for make clean. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10305 dc483132-0cff-0310-8789-dd5450dbe970
* * rd_safe.c (krb_rd_safe): Fix up call to quad_cksumTom Yu1997-11-196-5/+20
| | | | | | | | | | | | * mk_priv.c (krb_mk_priv): Fix up call to pcbc_encrypt. * mk_safe.c (krb_mk_safe): Fix up call to quad_cksum. * mk_req.c (krb_mk_req): Fix up call to pcbc_encrypt. * rd_req.c (krb_rd_req): Fix up call to pcbc_encrypt. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10295 dc483132-0cff-0310-8789-dd5450dbe970
* * mac_time.c: Don't use the type KRB_INT32; it was leaked fromTom Yu1997-10-272-2/+10
| | | | | | | | des.h and was just the wrong answer. Use long instead. While we're at it, declare gettimeofdaynet_no_offset() as static because we have no real need to export it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10250 dc483132-0cff-0310-8789-dd5450dbe970
* Include stdlib.h if available for malloc prototypeEzra Peisach1997-10-212-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10238 dc483132-0cff-0310-8789-dd5450dbe970
* Punt HAS_STDLIB_H, NO_STDLIB_H, POSIX_TYPES; see individual ChangeLogsTom Yu1997-10-028-7/+23
| | | | | | for details git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10204 dc483132-0cff-0310-8789-dd5450dbe970
* Remove KRB5_USE_INET, HAS_UNISTD_H, HAS_SETVBUF, and replaceTom Yu1997-09-264-4/+11
| | | | | | | with appropriate autoconf-style symbols. See individual ChangeLogs for details. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10202 dc483132-0cff-0310-8789-dd5450dbe970
* * decomp_tkt.c (decomp_ticket): Fix swapped args to memsetTom Yu1997-09-022-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10187 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (OSSRCS): Add $(srcdir)/ to source locationEzra Peisach1997-08-122-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10171 dc483132-0cff-0310-8789-dd5450dbe970
* * g_cnffile.c: Check to see if context is NULL prior to callingTom Yu1997-08-072-12/+20
| | | | | | profile_get_values. Fixes krb5-libs/317. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10164 dc483132-0cff-0310-8789-dd5450dbe970
* * realmofhost.c (krb_realmofhost): Add bounds checking to variousTom Yu1997-04-104-9/+30
| | | | | | | | | | things. * g_krbhst.c (krb_get_krbhst): Fix to bound fscanf and sscanf. * g_krbrlm.c (krb_get_lrealm): Fix to bound fscanf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10066 dc483132-0cff-0310-8789-dd5450dbe970
* Moved some of the library list file build logic from the individual MakefilesRichard Basch1997-02-232-6/+6
| | | | | | to config/win-post.in git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9964 dc483132-0cff-0310-8789-dd5450dbe970
* * Make shared libs work on AIXSam Hartman1997-02-222-2/+9
| | | | | | * Fix dependencies for library git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9952 dc483132-0cff-0310-8789-dd5450dbe970
* Use malloc/realloc/free instead of the "near" counterparts. TheRichard Basch1997-02-212-21/+13
| | | | | | | | functions _nmalloc, _nrealloc, and _nfree don't seem to exist under win32 and the pointer manipulation is more complex than if we simply just use the "normal" counterparts with a large-memory model build. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9940 dc483132-0cff-0310-8789-dd5450dbe970
* Removed unneeded call to krb5_init_etsRichard Basch1997-02-201-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9927 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed declaration (FAR keyword added)Richard Basch1997-02-181-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9891 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed arg list to match prototype (error in last checkin)Richard Basch1997-02-181-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9889 dc483132-0cff-0310-8789-dd5450dbe970
* Build krb4 compatibility library for win16/win32Richard Basch1997-02-1848-498/+325
| | | | | | (including application server routines, such as krb_rd_req) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9883 dc483132-0cff-0310-8789-dd5450dbe970
* Merge of libhack_branchTom Yu1997-02-093-39/+40
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9831 dc483132-0cff-0310-8789-dd5450dbe970
* Merge V1_0_FREEZE_3 into the mainline. (Note this merge does *not*Theodore Tso1996-12-132-1/+5
| | | | | | include the doc subtree!!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9632 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed mangled copyright noticeTheodore Tso1996-11-073-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9324 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: remove ref to ET_RULESTom Yu1996-06-142-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8360 dc483132-0cff-0310-8789-dd5450dbe970
* Remove unnecessary include config/windows.in. wconfig takes care ofTheodore Tso1996-06-122-1/+5
| | | | | | this automatically. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8311 dc483132-0cff-0310-8789-dd5450dbe970
* cvsignore hackeryTom Yu1996-06-101-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8288 dc483132-0cff-0310-8789-dd5450dbe970
* Use KRB5_RUN_FLAGSSam Hartman1996-05-232-5/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8121 dc483132-0cff-0310-8789-dd5450dbe970
* Removed duplicate #include <fcntl.h>Richard Basch1996-04-301-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7878 dc483132-0cff-0310-8789-dd5450dbe970
* clean up configure output styleKen Raeburn1996-04-302-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7877 dc483132-0cff-0310-8789-dd5450dbe970
* Don't declare open()Sam Hartman1996-04-152-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7814 dc483132-0cff-0310-8789-dd5450dbe970
* Small fix in case anyone tries compiling without the keytab fallbackRichard Basch1996-04-111-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7786 dc483132-0cff-0310-8789-dd5450dbe970
* * rd_svc_key.c (read_service_key): First try to read the V4Richard Basch1996-04-113-1/+78
| | | | | | | | service key from the V4 srvtab, and if it fails, try the keytab. A * instance will be translated into the default instance component (usually the FQDN of the local hostname). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7785 dc483132-0cff-0310-8789-dd5450dbe970