summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Correct regexps for matching emacs and cc-mode versions. In reindentTom Yu2009-11-043-33/+92
| | | | | | | | | | targets, chdir to SRCTOP to avoid excessive references to $(SRCTOP) in the find script. Define new variables to avoid errors when creating exception lists for find scripts. Use a python script instead of elisp to mark files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23125 dc483132-0cff-0310-8789-dd5450dbe970
* Reindent after making fixes for emacs-23Tom Yu2009-11-0312-20/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23123 dc483132-0cff-0310-8789-dd5450dbe970
* Monkey patch for the cc-mode that comes with emacs-23.x; that versionTom Yu2009-11-032-0/+52
| | | | | | | | of cc-mode has a bug that causes incorrect indentation of case labels containing character constants. Already fixed upstream in unreleased cc-mode sources. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23122 dc483132-0cff-0310-8789-dd5450dbe970
* Emacs 21 doesn't have custom-variable-p. Also, adjust to use theTom Yu2009-11-021-5/+5
| | | | | | | correct controlling variables for older incarnations of whitespace-mode. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23121 dc483132-0cff-0310-8789-dd5450dbe970
* Clean up a bunch of signed/unsigned comparison warningsGreg Hudson2009-11-0219-61/+66
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23120 dc483132-0cff-0310-8789-dd5450dbe970
* Simplify krb5int_get_error (and fix a cast-qual warning) by notGreg Hudson2009-11-011-24/+7
| | | | | | worrying so much about system errors longer than 1K. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23118 dc483132-0cff-0310-8789-dd5450dbe970
* Be a little more const-correct in krb5int_vset_error_flGreg Hudson2009-11-011-13/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23117 dc483132-0cff-0310-8789-dd5450dbe970
* Un-constify struct errinfo's msg field because it is the owner of thatGreg Hudson2009-11-011-1/+1
| | | | | | | memory (even though the memory is intended to be immutable during its lifetime). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23116 dc483132-0cff-0310-8789-dd5450dbe970
* In k5-int.h, fix make_data to work with C++Greg Hudson2009-11-011-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23115 dc483132-0cff-0310-8789-dd5450dbe970
* Memory leak fix: in obtain_sam_padata, after claiming the contents ofGreg Hudson2009-11-011-1/+2
| | | | | | | the scratch data object, free the outer structure before nulling the pointer to it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23114 dc483132-0cff-0310-8789-dd5450dbe970
* Rework in an attempt to deal with variant Emacs versionsTom Yu2009-11-011-16/+32
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23113 dc483132-0cff-0310-8789-dd5450dbe970
* Move the implementations of four deprecated crypto functions toGreg Hudson2009-11-016-47/+42
| | | | | | | | old_api_glue.c. Move the prototypes of seven deprecated crypto functions to old_api_glue.c instead of k5-int.h, since we don't use those functions internally. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23112 dc483132-0cff-0310-8789-dd5450dbe970
* Stop using deprecated krb5_encrypt_data in preauth code. UseGreg Hudson2009-11-012-6/+6
| | | | | | | | krb5_encrypt_helper instead. (encrypt_helper takes a key usage instead of an ivec, but that's okay since the invocations were using null ivecs anyway.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23111 dc483132-0cff-0310-8789-dd5450dbe970
* Reformat to avoid parens at beginnings of linesTom Yu2009-10-314-110/+110
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23109 dc483132-0cff-0310-8789-dd5450dbe970
* In lib/krb5/ccache, ensure that function definition headers haveGreg Hudson2009-10-314-16/+28
| | | | | | function names at the beginnings of lines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23107 dc483132-0cff-0310-8789-dd5450dbe970
* In lib/krb5/asn.1, ensure that function definition headers haveGreg Hudson2009-10-319-219/+433
| | | | | | function names at the beginnings of lines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23106 dc483132-0cff-0310-8789-dd5450dbe970
* Reformat lib/krb5/asn.1 internal prototypes to avoid problematic parensGreg Hudson2009-10-316-343/+310
| | | | | | at beginnings of lines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23105 dc483132-0cff-0310-8789-dd5450dbe970
* Reformat asn1_make.h prototypes to avoid the problematic parens atGreg Hudson2009-10-311-30/+18
| | | | | | beginnings of lines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23104 dc483132-0cff-0310-8789-dd5450dbe970
* In lib/krb5/os, ensure that function definition headers have functionGreg Hudson2009-10-3112-36/+70
| | | | | | names at the beginnings of lines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23103 dc483132-0cff-0310-8789-dd5450dbe970
* In lib/krb5/krb, ensure all function definition headers are in ANSIGreg Hudson2009-10-3110-140/+122
| | | | | | style and have the function name at the beginning of a line. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23102 dc483132-0cff-0310-8789-dd5450dbe970
* Fix indentation in gc_via_tkt.c which was messed up by a malformed #ifGreg Hudson2009-10-311-221/+221
| | | | | | 0 block. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23101 dc483132-0cff-0310-8789-dd5450dbe970
* make mark-cstyleTom Yu2009-10-311249-66050/+66004
| | | | | | make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
* Fixes for Emacs 22 compatibilityKen Raeburn2009-10-301-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23099 dc483132-0cff-0310-8789-dd5450dbe970
* If krb5_sname_to_principal returns a null realm for the clientKen Raeburn2009-10-301-0/+10
| | | | | | principal name, print an error message. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23098 dc483132-0cff-0310-8789-dd5450dbe970
* Quote realm name in error message.Ken Raeburn2009-10-301-1/+7
| | | | | | If realm name is an empty string, just return an error right away. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23097 dc483132-0cff-0310-8789-dd5450dbe970
* Tweak batch reindent some more. Limit the initial bulk reindent, andTom Yu2009-10-302-21/+54
| | | | | | refine the exception list somewhat. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23096 dc483132-0cff-0310-8789-dd5450dbe970
* Update the kadm5 design documentation slightly to reflect that MITGreg Hudson2009-10-301-6/+17
| | | | | | doesn't commit to a stable libkadm5 C API. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23095 dc483132-0cff-0310-8789-dd5450dbe970
* In process_tgs_req, fully initialize e_data since we may copy it inGreg Hudson2009-10-291-2/+1
| | | | | | prepare_error_tgs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23093 dc483132-0cff-0310-8789-dd5450dbe970
* Add a couple of krb5_data convenience constructor functions, toGreg Hudson2009-10-291-19/+26
| | | | | | | | facilitate properly initializing krb5_data objects. Adjust formatting of the existing krb5_data convenience functions and remove the #if 0 block. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23092 dc483132-0cff-0310-8789-dd5450dbe970
* Corrected Copyrights and some minor reorganization in openssl impl. Zhanna Tsitkov2009-10-2938-2177/+431
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23090 dc483132-0cff-0310-8789-dd5450dbe970
* Files that were not picked up by svn rev #22995 commit:Zhanna Tsitkov2009-10-2914-0/+844
| | | | | | Changed the crypto make system to add build flexibility. The update cancels the requirement for the dir structures to be identical in all crypto implementation and supports impl. dependent tests. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23089 dc483132-0cff-0310-8789-dd5450dbe970
* Restored few symbols in the crypto exports list to satisfy tests.`Zhanna Tsitkov2009-10-291-0/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23088 dc483132-0cff-0310-8789-dd5450dbe970
* Rename api.3 to api.current in the libkadm5 unit tests. This way theGreg Hudson2009-10-2917-0/+0
| | | | | | | main body of tests won't have to be moved every time the current API version of libkadm5 changes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23087 dc483132-0cff-0310-8789-dd5450dbe970
* Rename some lingering krb5_derive_key referencesGreg Hudson2009-10-293-3/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23086 dc483132-0cff-0310-8789-dd5450dbe970
* remove times underflow/overflow checks, they break testsLuke Howard2009-10-291-7/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23084 dc483132-0cff-0310-8789-dd5450dbe970
* New elisp file to mark C styles in files. New top-level MakefileTom Yu2009-10-282-0/+45
| | | | | | | target "make mark-cstyle". The exception list is not final; it's just a starting point for discussion. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23082 dc483132-0cff-0310-8789-dd5450dbe970
* Bump the accessor version number since we made changes.Greg Hudson2009-10-287-52/+47
| | | | | | | | Take the opportunity to regularize accessor field names (no krb5 or krb5int prefixes). Fix a test program which was still using krb5_hmac. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23081 dc483132-0cff-0310-8789-dd5450dbe970
* Restrict libk5crypto.exports list to API and ABI. Also, include functions ↵Zhanna Tsitkov2009-10-281-150/+60
| | | | | | needed to link kerb libs and tests properly git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23080 dc483132-0cff-0310-8789-dd5450dbe970
* Replace krb5_ with krb5Int_ prefix for non-API functionsZhanna Tsitkov2009-10-2873-309/+321
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23079 dc483132-0cff-0310-8789-dd5450dbe970
* Update to use heuristics for setting "krb5" style based on file localTom Yu2009-10-282-8/+25
| | | | | | variable settings. Improve friendliness of variant loading orders. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23078 dc483132-0cff-0310-8789-dd5450dbe970
* Print a "starting..." message on stderr if running in nofork mode, forTom Yu2009-10-281-0/+2
| | | | | | consistency with kadmind behavior. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23077 dc483132-0cff-0310-8789-dd5450dbe970
* Remove "verify" on make cleanEzra Peisach2009-10-281-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23076 dc483132-0cff-0310-8789-dd5450dbe970
* Add variable DB_VERSION to Makefile.in. Generate deps so thatEzra Peisach2009-10-282-0/+44
| | | | | | configure will work. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23075 dc483132-0cff-0310-8789-dd5450dbe970
* Heimdal DB bridge plugin for KDC back endGreg Hudson2009-10-2723-48/+4132
| | | | | | | | | Merge Luke's users/lhoward/heimmig branch to trunk. Implements a KDC back-end plugin which interfaces to a Heimdal HDB plugin. ticket: 6578 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23073 dc483132-0cff-0310-8789-dd5450dbe970
* Add "reindent" target to top-level Makefile.in. AddTom Yu2009-10-272-0/+44
| | | | | | | | | | krb5-batch-indent.el. These perform a batch reindent based upon the Emacs file-local variable settings, taking care to distinguish between files that are supposed to conform to the coding style versus those that are marked as being exceptions. A later commit will explicitly mark the files that we expect to conform to our coding standards. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23061 dc483132-0cff-0310-8789-dd5450dbe970
* Do not include com_err.h - not used hereEzra Peisach2009-10-271-2/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23060 dc483132-0cff-0310-8789-dd5450dbe970
* with an uninitialized entry on error exitEzra Peisach2009-10-271-0/+1
| | | | | | k5_hmac_md5_hash_iov: Initialize keyblock.length - so we do not invoke zapfree git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23059 dc483132-0cff-0310-8789-dd5450dbe970
* Fix missing emacs file variable markers. Add krb5-c-style.el: theTom Yu2009-10-264-3/+33
| | | | | | emacs lisp settings for the standard coding style. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23049 dc483132-0cff-0310-8789-dd5450dbe970
* Fix printf argument type mismatches related to pw_max_fail inGreg Hudson2009-10-261-4/+5
| | | | | | kadmin.c. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23044 dc483132-0cff-0310-8789-dd5450dbe970
* Remove the libkadm5 api.2 unit tests which don't pertain to the cpol,Greg Hudson2009-10-2614-6600/+0
| | | | | | mpol, or gpol operations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23043 dc483132-0cff-0310-8789-dd5450dbe970