aboutsummaryrefslogtreecommitdiff
path: root/src/include/k5-err.h
AgeCommit message (Collapse)AuthorFilesLines
2014-06-05Remove DEBUG_ERROR_LOCATIONS supportGreg Hudson1-19/+0
It wasn't being used and it added too much complexity to the error-handling functions.
2012-12-19Add functions to save and restore error stateGreg Hudson1-0/+1
2012-12-19Simplify error message retrievalGreg Hudson1-1/+0
Eliminate the scratch_buf field of struct error_info and just return a non-localized constant error message if we can't allocate a copy of the real one. Also rely on a conformant strerror().
2012-12-19Style cleanup for internal error handlingGreg Hudson1-25/+17
Fix style issues in kerrs.c and errors.c. Rename error handling functions to use shorter k5_ prefix. Eliminate an inoperable krb5int_set_error() call in gic_opte_alloc and convert the other call to use krb5_set_error_message().
2011-06-10Add localization infrastructureGreg Hudson1-4/+0
Adds build system logic, translation macros in k5-platform.h, and bindtextdomain calls in libkrb5 initialization. ticket: 6918 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24959 dc483132-0cff-0310-8789-dd5450dbe970
2011-03-09Adjust most C source files to match the new standards for copyrightGreg Hudson1-3/+4
and license comments. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24695 dc483132-0cff-0310-8789-dd5450dbe970
2009-11-14Reindent include directory, reformatting prototypes as necessary.Greg Hudson1-9/+10
Exclude include/gssrpc due to its Sun origin and k5-platform.h due to macros too hairy for emacs c-mode to handle. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23180 dc483132-0cff-0310-8789-dd5450dbe970
2009-11-01Un-constify struct errinfo's msg field because it is the owner of thatGreg Hudson1-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
2009-10-31make mark-cstyleTom Yu1-2/+2
make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
2009-04-29Add DEBUG_ERROR_LOCATIONS supportGreg Hudson1-0/+21
If DEBUG_ERROR_LOCATIONS is defined, replace uses of krb5_set_error_message and krb5int_set_error with calls to the new _fl variants of those functions, and include filename and line number information in the calls. Requires C99-style variadic macros if defined. ticket: 6479 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22291 dc483132-0cff-0310-8789-dd5450dbe970
2007-06-29Attach format attributes to declarations of various message-formattingKen Raeburn1-3/+11
routines under gcc. In a couple of routines, hard-code the preference for using the vsnprintf paths instead of list-of-int-arguments hacks now that we're assuming vsnprintf is available in other places. Installed headers affected: com_err.h (com_err, com_err_va) ss.h (ss_error) krb5.h (krb5_set_error_message, krb5_vset_error_message) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19653 dc483132-0cff-0310-8789-dd5450dbe970
2006-10-07Use const pointers for error messages.Ken Raeburn1-2/+2
Add some debugging hooks in the libkrb5 support. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18661 dc483132-0cff-0310-8789-dd5450dbe970
2006-04-25Protect against multiple inclusion. Don't define macro '_' if already definedKen Raeburn1-0/+7
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17959 dc483132-0cff-0310-8789-dd5450dbe970
2006-04-14Include stdarg.hKen Raeburn1-0/+2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17925 dc483132-0cff-0310-8789-dd5450dbe970
2006-03-27make dependKen Raeburn1-1/+38
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17786 dc483132-0cff-0310-8789-dd5450dbe970
2006-03-27get proper KRB5_CALLCONV definitionKen Raeburn1-1/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17783 dc483132-0cff-0310-8789-dd5450dbe970
2006-03-26Initial enhanced error message support, similar to what I sent toKen Raeburn1-0/+23
krbdev except for some function renaming (krb5_free_error was already in use, so added _message to everything), and the context is allowed to be NULL (in which case we fall back to error_message() and storing no strings) to simplify some code. Low-level routines in the support library, using a private data structure; higher-level routines in libkrb5, using a krb5_context. Added error info strings to the KRB_ERR_GENERIC case in gc_via_tkt.c and the python sample service location plugin. Added code to kinit and kvno to look up and display the strings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17776 dc483132-0cff-0310-8789-dd5450dbe970