Change in behavior for krb5_get_credentials()

Ken Raeburn raeburn at MIT.EDU
Tue Apr 26 18:22:18 EDT 2005

On Apr 26, 2005, at 18:17, Jeffrey Hutzelman wrote:
> On Tuesday, April 26, 2005 05:57:28 PM -0400 Sam Hartman 
> <hartmans at> wrote:
>> 3) Jeff's change plus an flag saying you want store errors.  Clearly
>>    document whether you get credentials on store errors. (I vote no)
> In case (3), you need to clearly document how to determine, at 
> runtime, whether the credentials are valid after any particular error. 
>  Otherwise it is impossible for an application to insure that it 
> neither leaks memory nor attempts to free something that is invalid or 
> already freed.

If you return a null pointer or a valid pointer for the credential 
handle, it's easy to check independent of the specific error returned.


More information about the krbdev mailing list