summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* oid_ops.c (generic_gss_release_oid): Recognize our own (new) "self"Theodore Tso1998-07-022-1/+9
| | | | | | | oids so that we don't free static oid's. (exported_name and nt_service_name_v2). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10616 dc483132-0cff-0310-8789-dd5450dbe970
* Update Macintosh changes to ChangeLog which Marshall made on 1/13/98Theodore Tso1998-07-021-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10613 dc483132-0cff-0310-8789-dd5450dbe970
* chk_trans.c (krb5_check_transited_list): Fix use of an uninitalizedTheodore Tso1998-07-012-2/+7
| | | | | | | variable; apparently the code was depending on the stack garbage being non-zero(!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10607 dc483132-0cff-0310-8789-dd5450dbe970
* Fix obvious bug where we were returning a pointer to an automaticTheodore Tso1998-07-012-1/+8
| | | | | | | variable which should have been a static. Fortunately nothing in the Mac tree was using inet_ntoa().... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10606 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
* Makefile.in: Add ccache/memory as a directory to be recursively builtTheodore Tso1998-05-272-3/+17
| | | | | | by this makefile under Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10597 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Update Makefile so that it can be built under WindowsTheodore Tso1998-05-272-2/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10596 dc483132-0cff-0310-8789-dd5450dbe970
* srv_rcache.c (krb5_get_server_rcache):Theodore Tso1998-05-273-2/+8
| | | | | | auth_con.c (krb5_auth_con_setrcache): Export this function in Windows DLL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10590 dc483132-0cff-0310-8789-dd5450dbe970
* krb5_32.def: Change the DLL export list to includeTheodore Tso1998-05-272-5/+31
| | | | | | | | | krb5_auth_con_setrcache, krb5_get_server_rcache, krb5_cc_default_name, krb5_change_password, krb5_mcc_ops, and all of the Cygnus krb5_get_init_creds functions. Remove the old libkadm functions, as they are no longer available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10585 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in (CLEANLIBS): Remove lib/kadm from the list of directoriesTheodore Tso1998-05-252-9/+7
| | | | | | built in the windows build. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10583 dc483132-0cff-0310-8789-dd5450dbe970
* util_buffer.c (g_make_string_buffer): Don't include the trailingTheodore Tso1998-05-252-2/+7
| | | | | | NULL of the string in the gss buffer's length. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10580 dc483132-0cff-0310-8789-dd5450dbe970
* Fix typo which caused import_name to incorrectly import names producedTheodore Tso1998-05-252-1/+7
| | | | | | by gss_export_name(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10579 dc483132-0cff-0310-8789-dd5450dbe970
* copy_ccache.c (gss_krb5_copy_ccache): Fix bugs in copy_ccache.c, whichTheodore Tso1998-05-254-10/+19
| | | | | | | | | never compiled cleanly (since it wasn't added to the Makefile correctly originally). k5seal.c (make_seal_token): Clean up -Wall flames git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10578 dc483132-0cff-0310-8789-dd5450dbe970
* inq_cred.c (krb5_gss_inquire_cred):Theodore Tso1998-05-2510-37/+58
| | | | | | | | | | | | | inq_context.c (krb5_gss_inquire_context): import_name.c (krb5_gss_import_name): export_name.c (krb5_gss_export_name): disp_name.c (krb5_gss_display_name): context_time.c (krb5_gss_context_time): acquire_cred.c (krb5_gss_acquire_cred): Clean up -Wall flames. indicate_mechs.c (krb5_gss_indicate_mechs): Return a dynamic OID set. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10577 dc483132-0cff-0310-8789-dd5450dbe970
* util_ordering.c (g_order_free):Theodore Tso1998-05-255-14/+44
| | | | | | | | | | rel_oid_set.c (generic_gss_release_oid_set): disp_major_status.c: General lint cleanup. util_oid.c (g_copy_OID_set): Copy the OID set with entirely dynamic memory (don't alias the contents of the OID set). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10576 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_err.et: Clarify error for REALM_CANT_RESOLVETom Yu1998-05-192-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10574 dc483132-0cff-0310-8789-dd5450dbe970
* Make sure the date string printed uses 4 digit yearsTheodore Tso1998-05-142-5/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10568 dc483132-0cff-0310-8789-dd5450dbe970
* This is now obsolete; superceded by src/lib/kadm5Tom Yu1998-05-1117-6565/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10567 dc483132-0cff-0310-8789-dd5450dbe970
* str_conv.c (krb5_string_to_timestamp, strptime): Fix routines to beTheodore Tso1998-05-094-22/+98
| | | | | | | | able to properly parse Y2K dates. t_kerb.c: Add ability to test krb5_string_to_timestamp git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10559 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
* POSIX states that getopt returns -1 when it is done parsing options,Theodore Tso1998-05-067-4/+20
| | | | | | not EOF. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10550 dc483132-0cff-0310-8789-dd5450dbe970
* t_ser.c (main): POSIX states that getopt returns -1 when it is doneTheodore Tso1998-05-063-5/+24
| | | | | | | | | | parsing options, not EOF. get_in_tkt.c (krb5_get_init_creds): If libdefaults/{REALM}/noaddresses is true, then don't put any addresses in the ticket request. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10549 dc483132-0cff-0310-8789-dd5450dbe970
* * get_in_tkt.c: Add prototype for make_preauth_listTom Yu1998-05-042-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10545 dc483132-0cff-0310-8789-dd5450dbe970
* * get_in_tkt.c (krb5_get_in_tkt): Add missing argument to call toTom Yu1998-05-032-1/+6
| | | | | | make_preauth_list to avoid stack smashing. Pointed out by lxs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10544 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_encode.c (asn1_encode_generaltime): Sanity check the returnTom Yu1998-04-172-1/+16
| | | | | | from gmtime() to avoid overruns. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10534 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_err.et (ASN1_BAD_GMTIME): Add code for case where badTom Yu1998-04-172-0/+6
| | | | | | values are returned from gmtime(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10533 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SHLIB_EXPDEPS):Tom Yu1998-04-1516-32/+66
| | | | | | (SHLIB_EXPLIBS): Rename libcrypto -> libk5crypto. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10532 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LIB): Rename to k5cryptoTom Yu1998-04-152-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10531 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
* * Makefile.in (includes): Don't mkdir unless the directory doesn'tTom Yu1998-04-062-1/+6
| | | | | | exist yet. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10522 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (includes): Don't call mkdir unless the directoryTom Yu1998-04-062-1/+6
| | | | | | exists. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10521 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
* * disp_major_status.c (g_display_major_status): Fix a typo inTom Yu1998-04-012-1/+6
| | | | | | previous. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10513 dc483132-0cff-0310-8789-dd5450dbe970
* Change to not return GSS_S_CONTINUE_NEEDED, per the standard CTheodore Tso1998-03-312-3/+9
| | | | | | bindings specification. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10512 dc483132-0cff-0310-8789-dd5450dbe970
* * seteuid.c (krb5_setegid): Fix typo: seteuid -> setegidTom Yu1998-03-232-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10503 dc483132-0cff-0310-8789-dd5450dbe970
* * chk_trans.c (krb5_check_transited_list): Check lengths whenTom Yu1998-03-172-4/+25
| | | | | | appending to next and prev. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10501 dc483132-0cff-0310-8789-dd5450dbe970
* * alt_prof.c (krb5_free_realm_params): Free realm_acl_file portionEzra Peisach1998-03-052-0/+7
| | | | | | of structure. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10497 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add KRB5_BUILD_PROGRAMEzra Peisach1998-03-033-6/+14
| | | | | | | * Makefile.in (verify): Use CC_LINK and proper Makefile variables for library dependencies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10494 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (t_cksum): Do not depend on libkrb5.a, useEzra Peisach1998-03-034-4/+20
| | | | | | | | KRB5_BASE_DEPLIBS. This allows configuration --enable-shared --disable-static to work. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10493 dc483132-0cff-0310-8789-dd5450dbe970
* Remove check for the regular expression functions, since they aren'tTheodore Tso1998-03-022-1/+5
| | | | | | used in lib/kdb. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10486 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SHLIB_EXPLIBS): Replace @SHLIB_GEN@ with @GEN_LIB@Tom Yu1998-02-282-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10480 dc483132-0cff-0310-8789-dd5450dbe970
* Collapse all of lib/kadm5's configure scripts into a single top-levelTheodore Tso1998-02-2812-61/+69
| | | | | | configure script. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10479 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Move the regular expression function tests intoTheodore Tso1998-02-282-24/+6
| | | | | | | aclocal.m4, since they also need to be shared by lib/kadm5's configure script. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10478 dc483132-0cff-0310-8789-dd5450dbe970
* Collapse lib/krb5's configure.in files into a single top-levelTheodore Tso1998-02-2840-117/+170
| | | | | | configure.in file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10476 dc483132-0cff-0310-8789-dd5450dbe970
* export_name.c (krb5_gss_export_name): Fix bug in gss_export_name. TheTheodore Tso1998-02-282-1/+7
| | | | | | | 2nd length field in the ASN.1 was 2 bytes bigger than it should have been. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10475 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add checks for set{re,e,res}gid()Tom Yu1998-02-233-6/+34
| | | | | | | * seteuid.c: Include k5-util.h rather than k5-int.h. Add krb5_setegid(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10468 dc483132-0cff-0310-8789-dd5450dbe970
* * recvauth.c (krb5_recvauth): Add some bookkeeping flags so weTom Yu1998-02-202-3/+16
| | | | | | | know how much stuff to free upon cleanup. Fix the up cleanup code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10465 dc483132-0cff-0310-8789-dd5450dbe970
* Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu1998-02-1873-74/+253
| | | | | | used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Remove USE_ANAME, and the defines for ANAME_DBDEP andEzra Peisach1998-02-143-10/+8
| | | | | | | | ANAME_DBLIB as they are no longer used. * Makefile.in: Remove unused ANAME_DBDEP and ANAME_DBLIB definitions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10461 dc483132-0cff-0310-8789-dd5450dbe970
* asn1buf.h (asn1buf_insert_octet): Use static inline function to defineTheodore Tso1998-02-143-53/+77
| | | | | | | | | | | asn1_insert_octet, since the GCC specific hack we're using doesn't work on GCC compilers that also have Objective C enabled. asn1buf.c: define ASN1BUF_OMIT_INLINE_FUNCS before including asn1buf.h, since we don't want inline functions declared when we're defining the linkable version of the functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10457 dc483132-0cff-0310-8789-dd5450dbe970