summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5
Commit message (Collapse)AuthorAgeFilesLines
* Change password for the MacKeith Vetter1995-09-242-7/+24
| | | | 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
* 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
* 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
* 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
* 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
* 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
* Integrate Macintosh changes into previous sourcesEzra Peisach1995-09-127-18/+34
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6764 dc483132-0cff-0310-8789-dd5450dbe970
* Reintegrate changes lost during Macintosh checkinEzra Peisach1995-09-126-15/+62
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6763 dc483132-0cff-0310-8789-dd5450dbe970
* Reinstate previous changes that were lostEzra Peisach1995-09-124-15/+30
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6762 dc483132-0cff-0310-8789-dd5450dbe970
* Reinstate the keytype -> enctype changes and keep the new Mac changesEzra Peisach1995-09-126-18/+24
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6761 dc483132-0cff-0310-8789-dd5450dbe970
* Initial version of a sscanf() replacement, for those platforms (likeTheodore Tso1995-09-123-3/+794
| | | | | | Macroloss) that don't have sscanf(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6758 dc483132-0cff-0310-8789-dd5450dbe970
* Revert back proven's changes which were removedEzra Peisach1995-09-123-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6754 dc483132-0cff-0310-8789-dd5450dbe970
* Replace function declaration back to taking an int. SOCKET is defined asEzra Peisach1995-09-112-2/+9
| | | | | | unsigned int under unix and this causes a prototype error git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6752 dc483132-0cff-0310-8789-dd5450dbe970
* Mac Beta 1 submissionKeith Vetter1995-09-1185-490/+892
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6749 dc483132-0cff-0310-8789-dd5450dbe970
* * scc_gennew.c (krb5_scc_generate_new): don't use automaticMark Eichin1995-09-072-1/+8
| | | | | | | | aggregate initialization. so we can still compile under sunos git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6738 dc483132-0cff-0310-8789-dd5450dbe970
* * auth_con.c, decrypt_tk.c, encode_kdc.c, encrypt_tk.c,Chris Provenzano1995-09-0631-123/+133
| | | | | | | | | | | * gc_frm_kdc.c, gen_seqnum.c, get_creds.c, get_in_tkt.c, * in_tkt_ktb.c, in_tkt_pwd.c, in_tkt_sky.c, init_ctx.c, * kdc_rep_dc.c, mk_cred.c, mk_priv.c, mk_rep.c, mk_req._ext.c, * preauth.c, rd_cred.c, rd_priv.c, rd_rep.c, rd_req_dec.c, * send_tgs.c, sendauth.c, ser_actx.c, ser_ctx.c, ser_eblk.c, * ser_key.c, t_ser.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6727 dc483132-0cff-0310-8789-dd5450dbe970
* * ktf_g_ent.c, ktf_remove.c, ktf_util.c, ktfile.h :Chris Provenzano1995-09-065-13/+18
| | | | | | s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6726 dc483132-0cff-0310-8789-dd5450dbe970
* * read_servi.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/gChris Provenzano1995-09-062-4/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6725 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_err.et : Change KRB5_KDB_BAD_KEYTYPE to KRB5_KDB_BAD_ENCTYPEChris Provenzano1995-09-063-2/+6
| | | | | | * krb5_err.et : Change KRB5_BAD_KEYTYPE to KRB5_BAD_ENCTYPE git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6724 dc483132-0cff-0310-8789-dd5450dbe970
* * scc_read.c, scc_write.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/gChris Provenzano1995-09-063-5/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6723 dc483132-0cff-0310-8789-dd5450dbe970
* * file_read.c, file_write.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/gChris Provenzano1995-09-063-4/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6722 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_k_decode.c, asn1_k_decode.h, asn1_k_encode.c, asn1_k_encode.h,Chris Provenzano1995-09-067-25/+29
| | | | | | * krb5_decode.c, krb5_encode.c: s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6721 dc483132-0cff-0310-8789-dd5450dbe970
* * decode_kdc.c, decrypt_tk.c, encode_kdc.c, encrypt_tk.c, gc_frm_kdc.cChris Provenzano1995-09-0626-194/+151
| | | | | | | | | | | * gc_via_tkt.c, get_in_tkt.c, in_tkt_ktb.c, in_tkt_pwd.c, in_tkt_sky.c * init_ctx.c, kdc_rep_dc.c, mk_cred.c, mk_priv.c, mk_rep.c * mk_req_ext.c, rd_cred.c, rd_priv.c, rd_rep.c, rd_req_dec.c, * send_tgs.c, ser_ctx.c, ser_eblk.c, ser_key.c, t_ser.c: Remove krb5_enctype references, and replace with krb5_keytype where appropriate git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6687 dc483132-0cff-0310-8789-dd5450dbe970
* * ktf_util.c : Remove krb5_enctype references, and replace withChris Provenzano1995-09-062-1/+4
| | | | | | krb5_keytype where appropriate git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6686 dc483132-0cff-0310-8789-dd5450dbe970
* * f_kdc_rq.c : Remove krb5_enctype references, and replace withChris Provenzano1995-09-062-2/+7
| | | | | | krb5_keytype where appropriate git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6685 dc483132-0cff-0310-8789-dd5450dbe970
* * scc.h : Add another KRB5_SCC_FVNO but don't up the default.Chris Provenzano1995-09-066-14/+49
| | | | | | | | | | * scc_gennew.c, scc_maybe.c : New version saves a length after version for whatever we want to put into the ccache before the first credential (like a time skew) * scc_read.c, scc_write.c : Remove krb5_enctype references, and replace with krb5_keytype where appropriate git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6684 dc483132-0cff-0310-8789-dd5450dbe970
* * fcc.h : Add another KRB5_FCC_FVNO but don't up the default.Chris Provenzano1995-09-066-13/+51
| | | | | | | | | | * fcc_gennew.c, fcc_maybe.c : New version saves a length after version for whatever we want to put into the ccache before the first credential (like a time skew) * fcc_read.c, fcc_write.c : Remove krb5_enctype references, and replace with krb5_keytype where appropriate git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6683 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_k_decode.c, asn1_k_decode.h, asn1_k_encode.c, asn1_k_encode.hChris Provenzano1995-09-066-22/+24
| | | | | | | * krb5_decode.c : Remove krb5_enctype references, and replace with krb5_keytype where appropriate git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6682 dc483132-0cff-0310-8789-dd5450dbe970
* get_in_tkt.c (krb5_get_in_tkt): If kdc_settime is enabled, then setTheodore Tso1995-09-026-55/+77
| | | | | | | | | | | | | | | the time_offset fields from the returned ticket's authtime value. init_ctx.c (krb5_init_context): Initialize new fields in krb5_context (clockskew, kdc_req_sumtype, and kdc_default_options). gc_via_tkt.c (krb5_get_cred_via_tkt): Perform the necessary sanity checking on the KDC response to make sure we detect tampering. send_tgs.c (krb5_send_tgs): Set the expected nonce in the response structure. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6653 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in (check-unix): Add a test case to make sureTheodore Tso1995-09-014-7/+18
| | | | | | | | | | | krb5_get_host_realm does something sane when passed in a hostname which doesn't have a default domain. hst_realm.c (krb5_get_host_realm): If an hostname does not have a domain, don't try to get a domain default (which results in a strange error being returned). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6651 dc483132-0cff-0310-8789-dd5450dbe970
* Serialize new time offset fields in the os_contextPaul Park1995-09-012-8/+36
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6649 dc483132-0cff-0310-8789-dd5450dbe970
* * toffset.c: Added new file which implements the abstract interfacesTheodore Tso1995-09-016-3/+178
| | | | | | | | | | | | | | | for manipulating the time offset fields in the os context. ustime.c (krb5_us_timeofday): Add support for using the time offset fields in the os context. timeofday.c (krb5_timeofday): Add support for using the time offset fields in the os context. init_os_ctx.c (krb5_os_init_context): Initialize the time offset and flags fields in the os context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6647 dc483132-0cff-0310-8789-dd5450dbe970
* Test aname_to_lname during make checkPaul Park1995-08-313-0/+35
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6646 dc483132-0cff-0310-8789-dd5450dbe970
* Set magic number in krb5_rcachePaul Park1995-08-312-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6641 dc483132-0cff-0310-8789-dd5450dbe970
* Describe previous changesPaul Park1995-08-291-0/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6629 dc483132-0cff-0310-8789-dd5450dbe970
* New test module for serialization routinesPaul Park1995-08-291-0/+714
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6623 dc483132-0cff-0310-8789-dd5450dbe970
* Add serialization support for K5 data structuresPaul Park1995-08-2912-3/+2997
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6622 dc483132-0cff-0310-8789-dd5450dbe970
* Copy keyblock from message instead of setting a pointer to data which is ↵Paul Park1995-08-291-1/+2
| | | | | | going to be freed git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6621 dc483132-0cff-0310-8789-dd5450dbe970
* Free allocated serializers when releasing contextPaul Park1995-08-291-0/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6620 dc483132-0cff-0310-8789-dd5450dbe970