Jeffrey Altman cbf126bede Permit NULL context to krb5_get_error_message()
Application developers have a tendency to use krb5_get_error_message()
as a drop in replacement for error_message() and under various
circumstances they pass in a NULL context.  This method works fine
for MIT's implementation which ignores the context but in Heimdal
passing in a NULL context would dump core.

This patch set modifies krb5_get_error_message() in order to
permit the passing of a NULL context.  First, if the context
is NULL, an attempt will be made to allocate one locally for
the purpose of evaluating the error code.  Second, if a local
context cannot be allocated, fall back on calling error_message().
If error_message() fails to return a string, then generate an
"unknown error" response.

Only if all of the above fails is NULL returned.

Change-Id: If4baf7d6c428cf0baf11c044b8dfd5c2b3cdf7e4
2011-09-27 14:26:26 -04:00
2011-07-23 11:18:21 -07:00
2011-09-25 20:38:17 +02:00
2011-09-26 09:29:14 +02:00
2011-09-26 14:59:30 +02:00
2011-08-10 09:25:29 -07:00
2011-09-09 10:31:46 +02:00
2011-07-22 16:07:05 -05:00
2008-12-11 05:11:34 +00:00
2011-09-27 19:40:10 +02:00
2011-04-01 01:12:46 -07:00
2004-02-12 14:19:16 +00:00
2011-05-22 20:47:32 -07:00
2000-06-07 10:01:25 +00:00
2002-08-21 13:29:08 +00:00
2011-08-28 16:08:44 -07:00
1998-08-14 12:05:21 +00:00
2011-03-13 16:54:43 -07:00
2011-07-30 14:19:45 -07:00
2009-09-27 18:26:54 -07:00
2010-01-05 19:21:45 +01:00

Heimdal is a Kerberos 5 implementation.

For information how to install see <http://www.h5l.org/compile.html>.

There are briefer man pages for most of the commands.

Bug reports and bugs are appreciated, see more under Bug reports in
the manual on how we prefer them: <heimdal-bugs@h5l.org>.

For more information see the web-page at
<http://www.h5l.org/> or the mailing lists:

heimdal-announce@sics.se	low-volume announcement
heimdal-discuss@sics.se		high-volume discussion

send a mail to heimdal-announce-request@sics.se and
heimdal-discuss-request@sics.se respectively to subscribe.
Languages
C 92.1%
Roff 2.8%
Shell 2.3%
Makefile 0.7%
M4 0.5%
Other 1.4%