[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is Heimdal thread safe?

joda@pdc.kth.se (Johan Danielsson) writes:
> It's a very simple function that just compares two names, and tells
> whether they are equal. But if you need more that just the names
> themselves to do this, you're smoked. In the Heimdal case you need a
> krb5_context, and the only way to inject a krb5_context in this API is
> via a global variable.

Or you could do it with a thread-global variable, but that's also a

For now I would suggest having a lock around the calls to the
gss-api.  Would that cause too much contention in your application?