summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* all des enctypes are equivalent (interim checkin until I create a functionRichard Basch1996-03-222-2/+27
| | | | | | to check the key equivalency of two enctypes). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7701 dc483132-0cff-0310-8789-dd5450dbe970
* bullet-proofing the code -- if the data contents are NULL, it would coredumpRichard Basch1996-03-222-12/+19
| | | | | | (I discovered this one because of another bug) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7700 dc483132-0cff-0310-8789-dd5450dbe970
* g_imp_sec_context.c (gss_import_sec_context):Theodore Tso1996-03-218-5/+23
| | | | | | | | | | | | g_exp_sec_context.c (gss_export_sec_context): Fix 16bit vs 32bit lint flame. g_glue.c, g_initialize.c: Add include of string.h, as it is needed. g_acquire_cred.c, g_inq_cred.c: Add include of time.h g_rel_oid_set.c (gss_release_oid_set): Removed unused variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7695 dc483132-0cff-0310-8789-dd5450dbe970
* Don't compile this procedure, since it's not used. The mechanism glueTheodore Tso1996-03-212-0/+10
| | | | | | layer uses the krb5_gss_internal_relase_oid() function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7694 dc483132-0cff-0310-8789-dd5450dbe970
* walk_rtree.c (krb5_walk_realm_tree): Fix 16bit vs. 32bit error.Theodore Tso1996-03-214-7/+18
| | | | | | | | | | | (cap_code should been a krb5_error_code, not an int!) mk_cred.c (krb5_mk_ncred_basic): Fix windows lint flame. get_in_tkt.c (krb5_get_in_tkt): Fix 16bit vs. 32bit error. (do_more should not have been an int!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7693 dc483132-0cff-0310-8789-dd5450dbe970
* Decode pa_type in the krb5_pa_data structure as a krb5_int32, since itTheodore Tso1996-03-212-2/+7
| | | | | | | | is now type krb5_preauthtype. Decode etype in the krb5_etype_info_entry as krb5_enctype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7691 dc483132-0cff-0310-8789-dd5450dbe970
* Added prototype of krb5_scc_skip_header to fix Windows lint flamesTheodore Tso1996-03-212-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7690 dc483132-0cff-0310-8789-dd5450dbe970
* Added prototype of krb5_fcc_skip_header to fix Windows lint flamesTheodore Tso1996-03-212-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7689 dc483132-0cff-0310-8789-dd5450dbe970
* Fix 16 bit vs. 32bit error in the encoded timestamp structureTheodore Tso1996-03-212-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7688 dc483132-0cff-0310-8789-dd5450dbe970
* Fix Windows lint flames. (16bit vs. 32bit issues)Theodore Tso1996-03-213-8/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7687 dc483132-0cff-0310-8789-dd5450dbe970
* Comment out #ident line. This causes the Macintosh C compilerTheodore Tso1996-03-212-2/+9
| | | | | | | indigestion. Remove #include of gssapi/gssapi.h, since that gets included by gssapiP_generic.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7686 dc483132-0cff-0310-8789-dd5450dbe970
* mechglue.h: Don't include <sys/types.h>; it's included if necessary inTheodore Tso1996-03-2130-35/+50
| | | | | | | | | | | | | | | | | gssapi/gssapi.h. On a Macintosh, #include gssapi.h instead of gssapi/gssapi.h. g_accept_sec_context.c, g_acquire_cred.c, g_compare_name.c, g_context_time.c, g_delete_sec_context.c, g_dsp_name.c, g_dsp_status.c, g_exp_sec_context.c, g_glue.c, g_imp_name.c, g_imp_sec_context.c, g_indicate_mechs.c, g_init_sec_context.c, g_initialize.c, g_inq_context.c, g_inq_cred.c, g_inq_names.c, g_process_context.c, g_rel_buffer.c, g_rel_cred.c, g_rel_name.c, g_rel_oid_set.c, g_seal.c, g_sign.c, g_unseal.c, g_verify.c, gssd_pname_to_uid.c, mechglue.h, mglueP.h: Comment out #ident line. This causes the Macintosh C compiler indigestion. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7685 dc483132-0cff-0310-8789-dd5450dbe970
* * des_crc.c (mit_des_crc_decrypt_func): Add const to pointerEzra Peisach1996-03-203-1/+9
| | | | | | | | | cast for suncc warning. Update .Saintize as well to reflect reality git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7678 dc483132-0cff-0310-8789-dd5450dbe970
* * new_rn_key.c (mit_des_generate_random_block): Add const keywrodEzra Peisach1996-03-203-2/+15
| | | | | | to cast for suncc warning. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7677 dc483132-0cff-0310-8789-dd5450dbe970
* ustime.c was renamed to c_ustime.cEzra Peisach1996-03-201-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7676 dc483132-0cff-0310-8789-dd5450dbe970
* Add keytab.cEzra Peisach1996-03-201-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7675 dc483132-0cff-0310-8789-dd5450dbe970
* Add new .Sanitize fileEzra Peisach1996-03-201-0/+71
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7674 dc483132-0cff-0310-8789-dd5450dbe970
* Synchronize .Sanitize with current realityEzra Peisach1996-03-203-5/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7673 dc483132-0cff-0310-8789-dd5450dbe970
* * tf_util.c (tf_get_cred): Issue date is written out as a long,Ezra Peisach1996-03-192-1/+8
| | | | | | | | | | | | read back in as same. I have kept the size as a long to be compatible with the Cygnus V4 distribution. The problem was introduced when we changed the include/kerberosIV structures to use 32 bit ints for timestamps. So, under OSF/1, tf_util would write out a 64 bit issue date, and then try reading back in a 32 bit one. Since Cygnus uses sizeof(long) we will too. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7667 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add KRB5_RUN_FLAGSEzra Peisach1996-03-199-10/+33
| | | | | | * Makefile.in: Use the run flags. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7665 dc483132-0cff-0310-8789-dd5450dbe970
* Back out last change and use a cast to avoid warnings.Ezra Peisach1996-03-192-4/+6
| | | | | | | Richard has indicated that come compilers get upset if you try to reassign a const char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7659 dc483132-0cff-0310-8789-dd5450dbe970
* * sn2princ.c (krb5_sname_to_principal): Do not assign a const char *Ezra Peisach1996-03-182-2/+7
| | | | | | to a non-const char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7658 dc483132-0cff-0310-8789-dd5450dbe970
* Do not try to reassign "const" variablesRichard Basch1996-03-182-11/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7657 dc483132-0cff-0310-8789-dd5450dbe970
* malloc the new length, not the old, esp. since we just check that theMark Eichin1996-03-181-1/+1
| | | | | | old length was zero git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7654 dc483132-0cff-0310-8789-dd5450dbe970
* fixes ticket-forwarding crashes on linux..Mark Eichin1996-03-183-3/+13
| | | | | | | | | * copy_addrs.c (krb5_copy_addr): make non-static so we can use it in mk_cred. * mk_cred.c (krb5_mk_ncred_basic): copy local_addr and remote_addr instead of just aliasing them, so we can safely free them ourselves. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7653 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Change WITH_KDB_DB to USE_KDB5_LIBRARIES and addEzra Peisach1996-03-183-11/+14
| | | | | | | | | KRB5_LIBRARIES. * Makefile.in: Use libraries as specified by configure. Set LD_LIBRARY_PATH for tests. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7652 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Add USE_ANAME and KRB5_LIBRARIESEzra Peisach1996-03-183-11/+14
| | | | | | Makefile.in: Change to properly use the libraries as specified by configure git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7651 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Add USE_ANAME and add proper aclocal.m4 functions to properlyEzra Peisach1996-03-183-12/+20
| | | | | | | | | | tell the makefile which libraries to link to. Makefile.in: Get the list of libraries to link from configure. Removes a dependency on layout of build tree and allows for configure to specify other libraries (as in aname conversion databases..) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7650 dc483132-0cff-0310-8789-dd5450dbe970
* CLEANLIBS - cleanup libkrb5util.a and libgssapi.aEzra Peisach1996-03-152-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7646 dc483132-0cff-0310-8789-dd5450dbe970
* Close the keytab if we opened it, not if the caller opened itRichard Basch1996-03-152-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7643 dc483132-0cff-0310-8789-dd5450dbe970
* nuke RCS cruftMark Eichin1996-03-141-3/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7635 dc483132-0cff-0310-8789-dd5450dbe970
* use AC_HEADER_STDARGKen Raeburn1996-03-134-1/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7628 dc483132-0cff-0310-8789-dd5450dbe970
* use PROTOTYPE macro in mechglue.hKen Raeburn1996-03-132-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7626 dc483132-0cff-0310-8789-dd5450dbe970
* Include string.hEzra Peisach1996-03-132-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7621 dc483132-0cff-0310-8789-dd5450dbe970
* * str_conv.c (krb5_timestamp_to_string): Handle statement notEzra Peisach1996-03-133-1/+10
| | | | | | | | reached warning. * ser_addr.c (krb5_address_internalize): Add magic numbers git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7620 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5_decode.c (decode_krb5_ticket, decode_krb5_enc_tkt_part,Ezra Peisach1996-03-133-1/+31
| | | | | | | | | | | | | | | | | | decode_krb5_authenticator, decode_krb5_error, decode_krb5_ap_req, decode_krb5_ap_rep, decode_krb5_ap_rep_enc_part, decode_krb5_safe, decode_krb5_priv, decode_krb5_enc_priv_part, decode_krb5_cred, decode_krb5_enc_part): Add magic values. * asn1_k_decode.c (asn1_decode_passwdsequence): Set magic values in structures. (asn1_decode_kdc_req_body): Set magic in authorization_data if not sent OTW. I believe all magic number fields now being properly initialized in the asn.1 layer. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7619 dc483132-0cff-0310-8789-dd5450dbe970
* * kv5m_err.et: Add KV5M_PASSWD_PHRASE_ELEMENTEzra Peisach1996-03-132-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7618 dc483132-0cff-0310-8789-dd5450dbe970
* use KRB5_PROTOTYPEMark Eichin1996-03-121-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7607 dc483132-0cff-0310-8789-dd5450dbe970
* convert __gss_get_mechanism to k&r style definitionMark Eichin1996-03-121-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7606 dc483132-0cff-0310-8789-dd5450dbe970
* use PROTOTYPE and K&R style definitions, per krb5 styleMark Eichin1996-03-122-9/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7605 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed mispelling of Doug Engert's nameTheodore Tso1996-03-111-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7604 dc483132-0cff-0310-8789-dd5450dbe970
* Change sizeof(long) to sizeof(krb5_int32)Ezra Peisach1996-03-092-1/+6
| | | | | | Yet another piece of code that was assuming that longs are 32 bits... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7602 dc483132-0cff-0310-8789-dd5450dbe970
* * g_imp_sec_context.c, g_exp_sec_context.c: Include string.hEzra Peisach1996-03-033-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7586 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Change WITH_DB to WITH_KDB_DBEzra Peisach1996-03-032-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7584 dc483132-0cff-0310-8789-dd5450dbe970
* k5mech.c (krb5_gss_get_context): Initialize the serializers here,Theodore Tso1996-03-024-125/+119
| | | | | | | | | | | | | | instead of in export and import security context. This will speed things up a little. export_sec_context.c (krb5_gss_export_sec_context): import_sec_context.c (krb5_gss_import_sec_context): Don't create a serialization context just for importing/exporting credentials. Use the passed-in gssapi context. This speeds things up significantly. Assume the serializers are initialized in krb5_gss_get_context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7582 dc483132-0cff-0310-8789-dd5450dbe970
* g_glue.c (__gss_get_mech_type): Fix code to properly parse tokenTheodore Tso1996-03-014-42/+72
| | | | | | | | | | headers. It was working only by serendipity.... g_accept_sec_context.c (gss_accept_sec_context): Add error checking and memory cleanup. Make gss_accept_sec_context work for mechanisms that use multiple token roundtrips. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7581 dc483132-0cff-0310-8789-dd5450dbe970
* Use NEED_SOCKETS instead of #including <netdb.h>Theodore Tso1996-03-012-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7580 dc483132-0cff-0310-8789-dd5450dbe970
* Added note: Note that calls to WSAStartup and WSACleanup must be inTheodore Tso1996-03-012-1/+12
| | | | | | | matched pairs. If there is a missing WSACleanup call when a program exits, under Lan Workplace, the name resolver will stop working. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7578 dc483132-0cff-0310-8789-dd5450dbe970
* Take out calls to SOCKET_INITIALIZE and SOCKET_CLEANUP. This getsTheodore Tso1996-03-012-1/+18
| | | | | | | done in win_glue.c, and we only need to do this once. (XXX What about Macintosh?) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7577 dc483132-0cff-0310-8789-dd5450dbe970
* Fix to work on 16-bit platforms (we don't allow greater than 64kTheodore Tso1996-03-012-0/+15
| | | | | | tokens on these platforms). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7576 dc483132-0cff-0310-8789-dd5450dbe970