summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * shs.c, sha_glue.c, hmac_sha.c: Fix to deal with LONG wider thanTom Yu1997-10-285-74/+183
| | | | | | | | 32 bits. * t_shs.c: Print out the actual and expected values on error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10258 dc483132-0cff-0310-8789-dd5450dbe970
* * ktf_wreslv.c, ktf_resolv.c:Initialize version element ofEzra Peisach1997-10-283-0/+7
| | | | | | krb5_ktfile_data structure. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10255 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_cpw.c (add_key_pwd): For KRB5_KDB_SALTTYPE_AFS3, the saltEzra Peisach1997-10-282-0/+19
| | | | | | key for afs_mit_string_to_key mut be null terminated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10254 dc483132-0cff-0310-8789-dd5450dbe970
* * pcbc_encrypt.c, quad_cksum.c: Punt duplicates of definitions;Tom Yu1997-10-274-82/+26
| | | | | | | | | | use local des.h only, as that appears to be safe. Also, replace uses of KRB_INT32 with DES_INT32 to remove temptation to misuse. * des.h: Don't include k5-int.h any longer, as des_int.h already gets it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10253 dc483132-0cff-0310-8789-dd5450dbe970
* * d3_cbc.c, des.h, des_int.h, f_cbc.c, f_cksum.c, f_ecb.c,Tom Yu1997-10-2713-102/+103
| | | | | | | | | | | f_pcbc.c, f_sched.c, f_tables.c, f_tables.h: Change KRB_INT32 to DES_INT32 to avoid temptation to misuse. * d3_cbc.c, d3_ecb.c, f_cbc.c, f_cksum.c, f_ecb.c, f_parity.c, f_pcbc.c, f_sched.c, f_tables.c: Don't include des.h; it's broken in ways. Use only des_int.h instead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10252 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
* Add checks so that code doesn't bomb out if the version resource isTheodore Tso1997-10-222-0/+14
| | | | | | missing a Title or Version record. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10242 dc483132-0cff-0310-8789-dd5450dbe970
* Fix to not lose entries in the chain linked client listEzra Peisach1997-10-212-1/+16
| | | | | | | | | A pointer was not being updated resulting in the situation where random clients would sudenly fail with a misc. rpc. error as the client handle could not be found. The scenario required three active clients to trigger the problem. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10241 dc483132-0cff-0310-8789-dd5450dbe970
* Set KRB5_CONFIG for testsEzra Peisach1997-10-212-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10240 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
* Real fix this time - deals with the malloc(0) case..Ezra Peisach1997-10-141-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10232 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (LIBMAJOR): Bump major version due to possibleTom Yu1997-10-142-1/+6
| | | | | | change in type sizes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10231 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Bump major version due to possible size changesTom Yu1997-10-142-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10229 dc483132-0cff-0310-8789-dd5450dbe970
* * des_int.h: Use better logic to find an appropriate type forTom Yu1997-10-143-7/+42
| | | | | | | | | | | KRB_INT32; also don't assume that a key schedule element is exactly 64 bits wide... use instead 2 * KRB_INT32, since that is what the code uses internally. * des.h: Use better logic to find an appropriate type for KRB_INT32. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10228 dc483132-0cff-0310-8789-dd5450dbe970
* Fix error when number of enctypes comming in is 0Ezra Peisach1997-10-141-5/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10227 dc483132-0cff-0310-8789-dd5450dbe970
* * server_init.c (kadm5_destroy): Call kadm5_free_config_paramsEzra Peisach1997-10-133-1/+12
| | | | | | | | * server_acl.c: Include <ctype.h> for tolower(). (acl_load_acl_file): Close acl file, even when acl_catchall_entry is not set. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10226 dc483132-0cff-0310-8789-dd5450dbe970
* * client_init.c (kadm5_destroy): Free handle->lhandle field, callEzra Peisach1997-10-132-2/+12
| | | | | | kadm5_free_config_params and krb5_free_context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10225 dc483132-0cff-0310-8789-dd5450dbe970
* * alt_prof.c (kadm5_get_config_params): When KADM5_CONFIG_ENCTYPESEzra Peisach1997-10-132-3/+36
| | | | | | | | | is set on the input parameters, allocate a new copy of the key_salts for the output parameters. (kadm5_free_config_params): Free the admin_server and admin_lockfile names. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10224 dc483132-0cff-0310-8789-dd5450dbe970
* * t_kdb.c (do_testing): Add krb5_free_contextEzra Peisach1997-10-132-0/+7
| | | | | | This makes it easier for purify testing for memory leaks. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10223 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in, Makefile.in: Add test to disable udp test underTom Yu1997-10-103-2/+19
| | | | | | | Solaris 2.0 thru 2.5; a getsockname() bug prevents channel bindings from working. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10221 dc483132-0cff-0310-8789-dd5450dbe970
* * get_myaddress.c: Include string.h for memcpy prototypeEzra Peisach1997-10-072-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10214 dc483132-0cff-0310-8789-dd5450dbe970
* Include ctype.h for isspace declarationEzra Peisach1997-10-072-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10210 dc483132-0cff-0310-8789-dd5450dbe970
* * set_realm.c (krb5_set_principal_realm): Allocate extra byte for nul inEzra Peisach1997-10-062-1/+6
| | | | | | strcpy git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10208 dc483132-0cff-0310-8789-dd5450dbe970
* * t_std_conf.c (main): Call krb5_free_context when doneEzra Peisach1997-10-062-0/+7
| | | | | | Purify cleanup... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10207 dc483132-0cff-0310-8789-dd5450dbe970
* * destest.c (main): Initialize context to 0 so it will not beEzra Peisach1997-10-063-0/+16
| | | | | | | | | | | treated as unset by purify. * t_verify.c (main): Use krb5_free_context to release memory in use. Essentially purify cleanups... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10206 dc483132-0cff-0310-8789-dd5450dbe970
* Punt HAS_STDLIB_H, NO_STDLIB_H, POSIX_TYPES; see individual ChangeLogsTom Yu1997-10-0214-21/+45
| | | | | | 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-2623-24/+73
| | | | | | | 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
* remove occurences of USE_STRING_H, HAS_STRDUP, and HAS_LABSTom Yu1997-09-198-5/+21
| | | | | | (see ChangeLogs for details) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10199 dc483132-0cff-0310-8789-dd5450dbe970
* * ccdefname.c (krb5_cc_default_name): Returns a const char *Ezra Peisach1997-09-152-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10198 dc483132-0cff-0310-8789-dd5450dbe970
* * ktfile.h, ktf_g_ent.c (krb5_ktfile_get_entry): Incoming principalEzra Peisach1997-09-153-2/+7
| | | | | | is krb5_const_principal. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10197 dc483132-0cff-0310-8789-dd5450dbe970
* * ccbase.c (krb5_cc_resolve): Incoming cache name is constEzra Peisach1997-09-152-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10196 dc483132-0cff-0310-8789-dd5450dbe970
* * mcc-proto.h, mcc_reslv.c (krb5_mcc_resolve): Incoming nameEzra Peisach1997-09-153-2/+7
| | | | | | is const char * git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10195 dc483132-0cff-0310-8789-dd5450dbe970
* * scc-proto.h, scc_reslv.c (krb5_scc_resolve): Incoming nameEzra Peisach1997-09-153-2/+7
| | | | | | is const char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10194 dc483132-0cff-0310-8789-dd5450dbe970
* * fcc-proto.h, fcc_reslv.c (krb5_fcc_resolve): Incoming nameEzra Peisach1997-09-153-2/+7
| | | | | | is const char * git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10193 dc483132-0cff-0310-8789-dd5450dbe970
* * keytab.c: (krb5_ktkdb_get_entry): Incoming principal is constEzra Peisach1997-09-156-9/+25
| | | | | | | | | | | | | | | | * kdb_dbm.c (krb5_dbm_db_get_principal, krb5_dbm_db_delete_principal): Incoming principal is const. * kdb_xdr.c (krb5_dbe_update_mod_princ_data, krb5_encode_princ_dbkey): Incoming principal is const. * kdb_db2.h (krb5_db2_db_get_principal): Change prototype to const principal. * kdb_db2.c (krb5_db2_db_get_principal, krb5_db2_db_delete_principal): The search for principal is const. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10192 dc483132-0cff-0310-8789-dd5450dbe970
* * rd_cred.c (krb5_rd_cred_basic): Fix swapped args to memsetTom Yu1997-09-022-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10188 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
* * get_in_tkt.c (krb5_get_in_tkt): Move nulling out ofTom Yu1997-08-292-1/+7
| | | | | | | request.padata before the os_localaddr call in order to avoid freeing a null pointer in the cleanup code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10186 dc483132-0cff-0310-8789-dd5450dbe970
* * gmt_mktime.c (days_in_month): Now const.Ezra Peisach1997-08-172-1/+6
| | | | | | Originally by raeburn@cygnus.com from the Kerbnet release git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10179 dc483132-0cff-0310-8789-dd5450dbe970
* * util_token.c (g_verify_token_header): Change local char *Ezra Peisach1997-08-172-1/+6
| | | | | | variable to unsigned char * to match usage. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10178 dc483132-0cff-0310-8789-dd5450dbe970
* Changes from the Kerbnet release by CygnusEzra Peisach1997-08-143-19/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | * asn1buf.h (asn1buf_remove_octet, asn1buf_size, asn1buf_free, asn1buf_ensure_space, asn1buf_len): Add macro versions. (asn1buf_insert_octet) [__GNUC__ >= 2]: Ditto, using a GNU C extension. * asn1buf.c (asn1buf_remove_octet, asn1buf_size, asn1buf_free, asn1buf_ensure_space, asn1buf_len, asn1buf_insert_octet): Undef macros before defining as functions. [Kerbnet changes made by raeburn@cygnus.com] * asn1buf.h (asn1buf_expand): Remove "const" from int arg in prototype. * asn1buf.c (asn1buf_remove_charstring, asn1buf_create, asn1buf_remove_octetstring, asn12krb5_buf): Call malloc instead of calloc. (asn1buf_unparse, asn1buf_hex_unparse): Ditto. Also don't allocate extra byte, since sizeof(STRING) does count the trailing null. (asn1buf_expand): Adjust bound based on increment value used, not value specified by caller. [Kerbnet changes made by raeburn@cygnus.com] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10174 dc483132-0cff-0310-8789-dd5450dbe970
* * init_ctx.c (krb5_init_context): Initialize local variable ctxEzra Peisach1997-08-122-1/+6
| | | | | | | | before calling krb5_init_ets. This keeps purify happy as we are not using a variable before setting it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10172 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
* * Makefile.in (SRCS): Add $(srcdir) as neededEzra Peisach1997-08-122-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10170 dc483132-0cff-0310-8789-dd5450dbe970
* * rd_cred.c (krb5_rd_cred_basic): Check remote_addr andTom Yu1997-08-082-1/+7
| | | | | | | encpart.s_address before calling krb5_address_compare. Fixes krb5-libs/456. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10166 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
* * Makefile.in: Add flags to conditionally compile with HesiodTom Yu1997-08-073-2/+90
| | | | | | | * server_misc.c: Add support for checking GECOS field of Hesiod passwd entry. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10160 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in, krb5.rc, version.rc: Add support for adding a WindowsTheodore Tso1997-08-053-14/+36
| | | | | | Version resource to all of the DLL files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10153 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_db2.c (krb5_db2_db_delete_principal): Fix switch statementEzra Peisach1997-07-312-0/+6
| | | | | | so that all cases have one statement. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10150 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SRCS): Add / after $(srcdir) in SRCS lineEzra Peisach1997-07-312-10/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10149 dc483132-0cff-0310-8789-dd5450dbe970