summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Working telnet authentication module and project consolidationsKeith Vetter1995-09-284-1/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6878 dc483132-0cff-0310-8789-dd5450dbe970
* alt_prof.c (krb5_read_realm_params): On an error, initialize theTheodore Tso1995-09-272-2/+8
| | | | | | returned rparams pointer to NULL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6867 dc483132-0cff-0310-8789-dd5450dbe970
* Systematic rework of all the cleanup code to make the generated objectTheodore Tso1995-09-272-143/+155
| | | | | | | | | file subtatially (40% on the i386 platform) smaller. The cleanup is now handled with a "goto error_out" statement, which prevents the cleanup statements from being replicated many, many, many times throughout the entire file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6863 dc483132-0cff-0310-8789-dd5450dbe970
* Removed "foo:: foo-$(WHAT)" lines from the MakefileTheodore Tso1995-09-252-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6862 dc483132-0cff-0310-8789-dd5450dbe970
* Removed "foo:: foo-$(WHAT)" lines from the MakefileTheodore Tso1995-09-2526-57/+69
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6860 dc483132-0cff-0310-8789-dd5450dbe970
* Removed "foo:: foo-$(WHAT)" lines from the MakefileTheodore Tso1995-09-2512-28/+39
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6859 dc483132-0cff-0310-8789-dd5450dbe970
* Fix tabbing in prototypes. (Just to clear up a conflict)Theodore Tso1995-09-251-6/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6858 dc483132-0cff-0310-8789-dd5450dbe970
* Removed "foo:: foo-$(WHAT)" lines from the MakefileTheodore Tso1995-09-2510-29/+40
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6857 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Removed "foo:: foo-$(WHAT)" lines from the MakefileTheodore Tso1995-09-253-9/+9
| | | | | | | | configure.in: Remove custom MAKE_SUBDIRS line with the standard DO_SUBDIRS rule, which works now that we're revamping how the foo-$(WHAT) system works. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6853 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Removed "foo:: foo-$(WHAT)" lines from the MakefileTheodore Tso1995-09-253-7/+9
| | | | | | | configure.in: Don't include "all:: all-$(WHAT)" at the end of the Makefile. That's now included at the very beginning by pre.in git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6852 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed kb_seal_size prototypeKeith Vetter1995-09-252-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6847 dc483132-0cff-0310-8789-dd5450dbe970
* Change password for the MacKeith Vetter1995-09-246-13/+40
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6845 dc483132-0cff-0310-8789-dd5450dbe970
* (change has no real effect, but I found the inconsistency when looking forMark Eichin1995-09-242-2/+6
| | | | | | | | a real problem which wasn't here...) * write_msg.c (krb5_write_message): check the real length variable, not the net version. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6842 dc483132-0cff-0310-8789-dd5450dbe970
* * logger.c (klog_com_err_proc): pass whoami in failure messagesMark Eichin1995-09-242-2/+7
| | | | | | for error log failures to match format string. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6841 dc483132-0cff-0310-8789-dd5450dbe970
* Define PROTOTYPE if it is not defined elsewhereTheodore Tso1995-09-232-0/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6838 dc483132-0cff-0310-8789-dd5450dbe970
* keysalt.c: 16/32 bit integer mismatch.Theodore Tso1995-09-233-10/+22
| | | | | | | | str_conv.c: sftime_format_table is conditional upon HAVE_STRFTIME, cast some constants to long so that math wouldn't overflow, 16/32 bit integer size mismatch. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6836 dc483132-0cff-0310-8789-dd5450dbe970
* Remove the (int) cast, since you can't take address of a value whichTheodore Tso1995-09-233-3/+11
| | | | | | | has been casted. Instead we change the underlying type in the structure to be an int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6834 dc483132-0cff-0310-8789-dd5450dbe970
* acquire_.c: changed int to size_t.Theodore Tso1995-09-237-5/+76
| | | | | | | | | | | gssapip_.h: added prototype for kg_seal_size. k5seal.c: 16/32 bit mismatch and removed unused variables. seal.c: 16/32 bit mismatch. sign.c: 16/32 bit mismatch. ser_sctx.c: added prototypes for all functions since they get assigned into a structure that has been prototyped. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6833 dc483132-0cff-0310-8789-dd5450dbe970
* oid_ops.c: signed/unsigned mismatch, removed unused variablesTheodore Tso1995-09-233-5/+10
| | | | | | util_oid.c: changed int to a size_t. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6832 dc483132-0cff-0310-8789-dd5450dbe970
* Put back in all:: all-$(WHAT) rule--PC needs itTheodore Tso1995-09-232-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6831 dc483132-0cff-0310-8789-dd5450dbe970
* Removed ^M's from DOS integration. (Oops!)Theodore Tso1995-09-231-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6830 dc483132-0cff-0310-8789-dd5450dbe970
* Put back in all:: all-$(WHAT) rule--PC needs itTheodore Tso1995-09-232-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6829 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: PC needs sscanf.cTheodore Tso1995-09-233-8/+16
| | | | | | | sscanf.c: cleanup to compile cleanly on the PC, mostly fixing signed/unsigned mismatches. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6828 dc483132-0cff-0310-8789-dd5450dbe970
* had to define away DBFLAGS for the PCTheodore Tso1995-09-232-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6827 dc483132-0cff-0310-8789-dd5450dbe970
* get_in_t.c: removed unused variable.Theodore Tso1995-09-235-5/+14
| | | | | | | | rd_cred.c: removed INTERFACE keyword. ser_auth.c: passing int32 where a size_t is wanted. ser_ctx.c: 16/32 bit int size mismatch. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6826 dc483132-0cff-0310-8789-dd5450dbe970
* Added MSDOS to wherever MACINTOSH was usedTheodore Tso1995-09-232-4/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6825 dc483132-0cff-0310-8789-dd5450dbe970
* signed/unsigned mismatchTheodore Tso1995-09-232-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6824 dc483132-0cff-0310-8789-dd5450dbe970
* 32 bit word being passed as an intTheodore Tso1995-09-235-5/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6823 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: moved shared rule to all-unix:: targetTheodore Tso1995-09-235-4/+12
| | | | | | | des_crc.c, des_md5.c, raw_des.c: had a volatile/const mismatch which needs a cast to resolve. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6822 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: PC builds all C files because of function name changesTheodore Tso1995-09-234-9/+15
| | | | | | c_localtime.c, c_ustime.c: removed INTERFACE keyword. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6821 dc483132-0cff-0310-8789-dd5450dbe970
* md5crypt.c: put function prototype back in, fixed signed/unsignedTheodore Tso1995-09-233-4/+28
| | | | | | | | mismatch and removed unused variables. md5glue.c: put function prototypes back in. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6820 dc483132-0cff-0310-8789-dd5450dbe970
* md4crypt.c: put function prototype back in, fixed signed/unsignedTheodore Tso1995-09-233-4/+28
| | | | | | | | mismatch and removed unused variables. md4glue.c: put function prototypes back in. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6819 dc483132-0cff-0310-8789-dd5450dbe970
* put function prototype back inTheodore Tso1995-09-232-0/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6818 dc483132-0cff-0310-8789-dd5450dbe970
* Declare cleanup function as void and propogate thoughout the file. This handlesEzra Peisach1995-09-202-10/+16
| | | | | | conflicts with free git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6812 dc483132-0cff-0310-8789-dd5450dbe970
* Don't modify a const input variable val; copy it to a scratch variableTheodore Tso1995-09-182-2/+9
| | | | | | and modify that. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6811 dc483132-0cff-0310-8789-dd5450dbe970
* Fix typo error in checkinEzra Peisach1995-09-182-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6806 dc483132-0cff-0310-8789-dd5450dbe970
* Lots of memory leaks and other fixes...Theodore Tso1995-09-1618-106/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gssapiP_krb5.h: Remove context and cred from the gssapi security context, as they aren't needed. kg_seal and kg_unseal now take a krb5_context argument. ser_sctx.c (kg_ctx_size, kg_ctx_externalize, kg_ctx_internalize): No longer serialize the context and cred fields of the gssapi security context. krb5_gss_glue.c: Don't rely on the context field of the gssapi security context. Use kg_context instead. verify.c (krb5_gss_verify, krb5_gss_verify_mic): unseal.c (krb5_gss_unwrap, krb5_gss_unseal): sign.c (krb5_gss_sign, krb5_gss_get_mic): seal.c (krb5_gss_seal, krb5_gss_wrap): process_context_token.c (krb5_gss_process_context_token): k5unseal.c (kg_unseal): k5seal.c (kg_seal_size): Add a krb5_context argument to this function, so we don't have to depend on the context field in the gssapi security context. init_sec_context.c (krb5_gss_init_sec_context): Don't initialize the context and cred fields in the gssapi security context. Copy ctx->subkey to ctx->seq.key, so they are separately allocated. gssapi_krb5.c (kg_get_context): When initialize kg_context, call krb5_init_ets() so that the error tables are initialized. export_sec_context.c (krb5_gss_export_sec_context): Don't depend on the context field from the gssapi security context. Free ctx->seq.key. delete_sec_context.c (krb5_gss_delete_sec_context): kg_seal() now takes a krb5_context argument. Free ctx->seq.key. acquire_cred.c (krb5_gss_acquire_cred): Clear the gssapi credential before setting it, to prevent purify from complaining. accept_sec_context.c (krb5_gss_accept_sec_context): Remove context and cred from the gssapi security context. Make sure the ticket is freed after we're done with it. import_sec_context.c (krb5_gss_import_sec_context): Don't bash the input interprocess_token. Otherwise, it can't be freed. Don't depend on the context field in the gss security context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6798 dc483132-0cff-0310-8789-dd5450dbe970
* sendauth.c (krb5_sendauth): Make sure the scratch credentialsTheodore Tso1995-09-169-25/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | structure may have possible been used be freed.. rd_safe.c (krb5_rd_safe_basic): Fall through to the cleanup code at the end, to make sure the decoded message in message is freed. rd_req_dec.c (krb5_rd_req_decoded): Use krb5_copy_keyblock to copy authent->subkey to auth_context->remote_subkey. Keeping them separate avoids aliasing problems. mk_req_ext.c (krb5_generate_authenticator): Fix memory leak. Don't bash authent->subkey with key after carefully copying it using krb5_copy_keyblock! recvauth.c (krb5_recvauth): krb5_get_server_rcache() already opens the rcache; doing it again merely causes a memory leak. gen_subkey.c (krb5_generate_subkey): Eliminate memory leak. krb5_init_random_key() does its own allocation of the keyblock. gc_via_tkt.c (krb5_kdcrep2creds): Fix memory leak. srv_rcache.c (krb5_get_server_rcache): Fix memory leak. rd_safe.c (krb5_rd_safe_basic): Fix memory leak. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6797 dc483132-0cff-0310-8789-dd5450dbe970
* moderately clean handling of allocated storage on error during partialMark Eichin1995-09-142-95/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | construction, in spite of not having exception handling in the language. * krb5_decode.c (clean_krb5_authenticator, clean_krb5_ticket, clean_krb5_enc_tkt_part,clean_krb5_ap_req, clean_krb5_ap_rep_enc_part, clean_krb5_safe, clean_krb5_priv_enc_part, clean_krb5_cred_enc_part, clean_krb5_error): new static functions to free objects that may be partially constructed. (setup_buf_only, setup_no_tagnum, setup_no_length, setup): define in terms of each other to remove duplication, then add local variable error_cleanup to common declarations. (clean_return): new macro, uses error_cleanup on rep if possible and the allows the argument to be returned. (alloc_field, check_apptag, next_tag, begin_structure, get_field_body, get_field, get_lenfield_body, get_lenfield): use clean_return. (free_field): new macro to simplify the writing of clean_*. (clear_field): macro to clean up preparation of fields for later use by clean_* functions. (decode_krb5_authenticator, decode_krb5_ticket, decode_krb5_encryption_key, decode_krb5_enc_tkt_part, decode_krb5_enc_kdc_rep_part, decode_krb5_as_rep, decode_krb5_tgs_rep, decode_krb5_ap_req, decode_krb5_ap_rep, decode_krb5_ap_rep_enc_part, decode_krb5_as_req, decode_krb5_tgs_req, decode_krb5_kdc_req_body, decode_krb5_safe, decode_krb5_priv, decode_krb5_enc_priv_part, decode_krb5_cred, decode_krb5_enc_cred_part, decode_krb5_error, decode_krb5_authdata, decode_krb5_pwd_sequence, decode_krb5_pwd_data, decode_krb5_padata_sequence, decode_krb5_alt_method, decode_krb5_etype_info): change setup macro to pass a cleanup method (or just free if there were no partial allocations, or 0 for the two cases with no allocation at all.) Also explicitly zero pointer subfields, since calloc is not a safe way to assure that. Generally, provide for automatic deallocation of storage on error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6785 dc483132-0cff-0310-8789-dd5450dbe970
* Clear the buffer before calling the SIOCGIFCONF ioctl. This makesTheodore Tso1995-09-132-1/+8
| | | | | | purify happy. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6782 dc483132-0cff-0310-8789-dd5450dbe970
* Fix memory leak. Free the default realm when we're done. Remove theTheodore Tso1995-09-132-132/+157
| | | | | | | "profile" parameter from the kdc.conf file. This is bad idea, architecturally. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6780 dc483132-0cff-0310-8789-dd5450dbe970
* Fix memory leaks and lint flamesTheodore Tso1995-09-132-25/+39
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6779 dc483132-0cff-0310-8789-dd5450dbe970
* fetch_mkey.c (krb5_db_fetch_mkey): This routine now sets the masterTheodore Tso1995-09-133-3/+13
| | | | | | | | | | encblock's crypto system using krb5_use_enctype() from the stored keytype of the master key. decrypt_key.c (krb5_dbekd_decrypt_key_data): Remove the encryption type; the master_encblock should always be set correctly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6778 dc483132-0cff-0310-8789-dd5450dbe970
* Free the auth context when freeing the GSSAPI context structureTheodore Tso1995-09-133-0/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6776 dc483132-0cff-0310-8789-dd5450dbe970
* Added inclusion of des_int.hKeith Vetter1995-09-132-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6772 dc483132-0cff-0310-8789-dd5450dbe970
* Revert keytype -> emctype changes.Ezra Peisach1995-09-126-175/+75
| | | | | | Document the Macintosh changes to adm_conn.c (hardwired path for adm cache) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6770 dc483132-0cff-0310-8789-dd5450dbe970
* Undo MACINTOSH changes to path in these files - theye were correct. TheEzra Peisach1995-09-124-12/+5
| | | | | | | Makefile.in alread specifies the right locations to include so that ,krb5/...> is not required for unix git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6769 dc483132-0cff-0310-8789-dd5450dbe970
* Reintegrate the keytab -> enctype changesEzra Peisach1995-09-123-5/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6768 dc483132-0cff-0310-8789-dd5450dbe970
* Put back in the keytype -> enctype changesEzra Peisach1995-09-122-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6767 dc483132-0cff-0310-8789-dd5450dbe970
* Reintegrate Macintosh changesEzra Peisach1995-09-1234-309/+293
| | | | | | | | t_ser.c: Work around an optimizer bug in gcc under OSF/1 2.1. The timeofday calls were left in the stage as described in the ChangeLog git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6766 dc483132-0cff-0310-8789-dd5450dbe970