[krbdev.mit.edu #8792] git commit

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[krbdev.mit.edu #8792] git commit

Norm Green via RT

Implement krb5_cc_remove_cred for remaining types

Previously, only KCM and MSLA implemented credential removal.  Add
support for FILE (and therefore DIR), MEMORY, and KEYRING.

The FILE logic is similar Heimdal's implementation, with additional
logic for skipping removed creds during iteration.  In addition to
setting endtime to 0 and changing the realm for config entries as
Heimdal does, we set authtime to -1 to make deleted entries
distinguishable from gssproxy encrypted creds and config entries.

For MEMORY, leave behind empty list elements when removing a cred will
leave behind an empty list element, in case an iterator holds a
pointer to that element.

[[hidden email]: edited commit message; made minor style and comment
changes; fixed memory leaks detected by asan]

Author: Robbie Harwood <[hidden email]>
Committer: Greg Hudson <[hidden email]>
Commit: d3b39a8bac6206b5ea78b0bf6a2958c1df0b0dd5
Branch: master
 src/lib/krb5/ccache/cc_file.c    |  177 +++++++++++++++++++++++++++++++++++---
 src/lib/krb5/ccache/cc_keyring.c |   89 +++++++++++++------
 src/lib/krb5/ccache/cc_memory.c  |   36 +++++++--
 src/lib/krb5/ccache/t_cc.c       |  129 +++++++++++++++++++++++++++-
 4 files changed, 381 insertions(+), 50 deletions(-)

krb5-bugs mailing list
[hidden email]