]> git.ipfire.org Git - thirdparty/krb5.git/commit
Defer KEYRING key creation until initialize
authorGreg Hudson <ghudson@mit.edu>
Thu, 26 Sep 2013 15:40:13 +0000 (11:40 -0400)
committerGreg Hudson <ghudson@mit.edu>
Sat, 28 Sep 2013 19:25:26 +0000 (15:25 -0400)
commit75b7ea9163e57ff0522f55a9cd0c2ab4b4974e38
treee1f8bb9e8cea1c0bfbcd793aea71962c14d974b3
parent1f1b76ab8937c2cb0273cc5d8a7ee806240e1879
Defer KEYRING key creation until initialize

If we resolve a KEYRING cache and the key does not exist, wait until
initialize time to create it, to avoid wasting precious kernel memory
on a cache which might not ever be created.  Properly error out if
store_cred or start_seq_get is called on an uninitialized cache, as we
would for a FILE cache.

Adapted from a patch by simo@redhat.com.
src/lib/krb5/ccache/cc_keyring.c