pcache: rename and fix callback()
commitcd5cca0cac5e81d9ccaa35dcdf92594e9e92b68c
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 11 Sep 2013 02:04:40 +0000 (10 22:04 -0400)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 11 Sep 2013 02:31:41 +0000 (10 22:31 -0400)
tree05d58d06e89ba1bdc9754b73729a75e28d196cfc
parentb845424a8618d33f54bfb9eb9ede8f85d1d8f9dd
pcache: rename and fix callback()

rename callback() to cc_plugin_register_to_context() and document
its purpose.

The parameter that is the cc_ops structure is 'plugctx' not 'plug'.
This is critical because 'plug' is the common_plugin_model structure
and casting the wrong object leads to random behavior including
crashes.

The test to exit without action was reversed.

With these changes ccache plugins can be registered on each
krb5_init_context() operation.

Change-Id: I295ea91759f69b36ac13b1bfff87306d40df4a26
lib/krb5/pcache.c