summaryrefslogtreecommitdiffstats
path: root/src/clients/ksu/authorization.c
Commit message (Collapse)AuthorAgeFilesLines
* Modernize k5bufGreg Hudson2013-02-141-5/+5
| | | | | | Rename the krb5int_buf_ family of functions to use the k5_ prefix for brevity. Reformat some k5buf implementation code to match current practices.
* Mark up strings for translationGreg Hudson2011-06-101-8/+13
| | | | | | ticket: 6918 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24961 dc483132-0cff-0310-8789-dd5450dbe970
* make mark-cstyleTom Yu2009-10-311-269/+270
| | | | | | make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
* Convert many uses of sprintf to snprintf or asprintfGreg Hudson2008-12-011-16/+14
| | | | | | | ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21258 dc483132-0cff-0310-8789-dd5450dbe970
* Rename krb5int_buf_cstr to krb5int_buf_data, since k5bufs can be usedGreg Hudson2008-11-051-1/+1
| | | | | | | | | | | for binary data as well as C string data. The buffer will always have a null byte at krb5int_buf_len bytes regardless of whether it contains C string data. ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21003 dc483132-0cff-0310-8789-dd5450dbe970
* Use the k5buf module instead of strcpy/strcat in several placesGreg Hudson2008-10-301-13/+10
| | | | | | | ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20941 dc483132-0cff-0310-8789-dd5450dbe970
* Create and use xasprintf akin to xmalloc, returns pointer on success or ↵Ken Raeburn2007-07-121-5/+1
| | | | | | exits on error git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19708 dc483132-0cff-0310-8789-dd5450dbe970
* * authorization.c, heuristic.c, ksu.h: Use uid_t instead of int inEzra Peisach2002-12-231-3/+3
| | | | | | | arguments to fowner() and get_best_princ_for_target(). Signed vs. unsigned int cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15062 dc483132-0cff-0310-8789-dd5450dbe970
* Don't crash if .k[5]login file ownership is wrong. Patch from Emily ↵Ken Raeburn2001-10-191-3/+4
| | | | | | Ratliff, ratliff@austin.ibm.com git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13822 dc483132-0cff-0310-8789-dd5450dbe970
* Don't conditionalize prototypes; delete macros supporting it. (Maybe overdone;Ken Raeburn2001-10-101-1/+1
| | | | | | don't worry about restoring them when importing new versions of code.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13792 dc483132-0cff-0310-8789-dd5450dbe970
* * authorization.c (find_first_cmd_that_exists): Change xmalloc()Ezra Peisach2001-06-261-1/+1
| | | | | | | | | | to xcalloc() where was intented in code (two arguments to xmalloc). * ksu.h: Provide full prototypes for xmalloc(), xrealloc(), xcalloc(), and xstrdup(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13510 dc483132-0cff-0310-8789-dd5450dbe970
* * authorization.c, heuristic.c, krb_auth_su.c, main.c, setenv.c:Ezra Peisach2001-06-051-13/+25
| | | | | | Cleanup assignments in conditionals. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13272 dc483132-0cff-0310-8789-dd5450dbe970
* merge from 1.1 branchKen Raeburn1999-12-061-35/+38
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11952 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in heuristic.c:Richard Basch1996-05-131-404/+394
| | | | | | | | | | | | | Change the euid before opening the source ccache, so we don't use someone else's ccache. authorization.c: users only in /.k5login were not permitted to use the '-e cmd' feature. The man page does not indicate that this should not be permitted... Also, lots of indentation cleanup was done... I couldn't read the code before. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8013 dc483132-0cff-0310-8789-dd5450dbe970
* * ksu.M: Document authorization changesEzra Peisach1995-10-061-141/+6
| | | | | | | | | | | | | | | | | * ksu.1: Remove as was out of date. * Makefile.in (DEFINES): Remove LOCAL_REALM definition. * ksu.h: Remove local_realm from krb5_authorization. * authorization.c (krb5_authorization): Remove old copied code that is in krb5 library and is out of date. Use the configurable aname to localname methods. * main.c (main): Add krb5_secure_config_files so that users cannot override system config files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6943 dc483132-0cff-0310-8789-dd5450dbe970
* Add full prototypes for all functions. Fix calls to functions thatEzra Peisach1995-07-201-4/+6
| | | | | | were missing an argument (usually context) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6317 dc483132-0cff-0310-8789-dd5450dbe970
* Removed all references to DECLARG and OLDDECLARG.Chris Provenzano1995-01-131-18/+22
| | | | | | Added krb5_context to all krb5_*() routines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4815 dc483132-0cff-0310-8789-dd5450dbe970
* lintMark Eichin1994-08-141-6/+1
| | | | | | unused vars git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4135 dc483132-0cff-0310-8789-dd5450dbe970
* * *.c: "upgrade" to C Classic :-)Tom Yu1994-08-101-32/+87
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4106 dc483132-0cff-0310-8789-dd5450dbe970
* Procedure not declared staticTheodore Tso1994-06-081-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3683 dc483132-0cff-0310-8789-dd5450dbe970
* As contributed by ISITheodore Tso1994-06-081-0/+803
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3681 dc483132-0cff-0310-8789-dd5450dbe970