summaryrefslogtreecommitdiffstats
path: root/src/responder/kcm/kcmsrv_ccache_json.c
Commit message (Collapse)AuthorAgeFilesLines
* KCM: Fix off-by-one error in secrets key parsingJakub Hrozek2017-03-301-17/+26
| | | | | | | | | | | | | | | When parsing the secrets key, the code tried to protect against malformed keys or keys that are too short, but it did an error - the UUID stringified form is 36 bytes long, so the UUID_STR_SIZE is 37 because UUID_STR_SIZE accounts for the null terminator. But the code, that was trying to assert that there are two characters after the UUID string (separator and at least a single character for the name) didn't take the NULL terminator (which strlen() doesn't return) into account and ended up rejecting all ccaches whose name is only a single character. Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>
* KCM: Store ccaches in secretsJakub Hrozek2017-03-271-0/+921
Adds a new KCM responder ccache back end that forwards all requests to sssd-secrets. Reviewed-by: Michal Židek <mzidek@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>