Relation between krb5_creds and krb5_context

Philipp Gesang philipp.gesang at intra2net.com
Wed Jul 17 02:25:01 EDT 2019


Hi Greg,

-<| Quoting Greg Hudson <ghudson at mit.edu>, on Tuesday, 2019-07-16 12:26:48 PM |>-
> On 7/16/19 10:23 AM, Philipp Gesang wrote:
> > what is the significance of the krb5_context that
> > krb5_free_creds() takes as its first argument?
> 
> In the beginning there was a design principle that every libkrb5 API
> would take a context parameter (though there are a few exceptions).  The
> context parameter for krb5_free functions is unused and is likely to
> remain unused.

thanks for providing the background.

>                 I have considered making a pass through the API and
> documenting that the context parameter is optional for a bunch of
> functions, including krb5_free functions.

That would be very much appreciated. For now I’ll have to do some
digging in the code to find out which of the APIs we use actually
require a context.

Best regards,
Philipp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/kerberos/attachments/20190717/9712f493/attachment.bin


More information about the Kerberos mailing list