#include <selinux/label.h> "bool selabel_get_digests_all_partial_matches(" "struct selabel_handle *" hnd ,
"const char *" key ,
"uint8_t **" calculated_digest ,
"uint8_t **" xattr_digest ,
"size_t *" digest_len ");" .
The key parameter is the path to retrieve the digests.
The calculated_digest is a pointer to the key calculated file_contexts digest of all applicable partial matches, or NULL if none exist. The caller must free (3) the buffer.
The xattr_digest is a pointer to the key xattr (7) stored digest, or NULL if it does not exist. The caller must free (3) the buffer.
The digest_len is the length of the digests that will always be returned (even if both are NULL). Note that if both digests are returned, they will always be the same length.