X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fsecurity.h;h=953f88862f00260d7e32429dc35029b018639474;hb=ced16a28e197645a40fa04a54793d117a04526d7;hp=9d338a15faa3b6cf108af21e69d495de48a8d3d7;hpb=67432c2a306fa9cbc31753ae03f6f1ebd0d49220;p=wimlib diff --git a/include/wimlib/security.h b/include/wimlib/security.h index 9d338a15..953f8886 100644 --- a/include/wimlib/security.h +++ b/include/wimlib/security.h @@ -1,15 +1,17 @@ #ifndef _WIMLIB_SECURITY_H #define _WIMLIB_SECURITY_H -#include "wimlib/rbtree.h" #include "wimlib/types.h" -/* Red-black tree that maps SHA1 message digests of security descriptors to - * security IDs, which are themselves indices into the table of security - * descriptors in the 'struct wim_security_data'. */ +struct wim_security_data; +struct avl_tree_node; + +/* Map from SHA1 message digests of security descriptors to security IDs, which + * are themselves indices into the table of security descriptors in the 'struct + * wim_security_data'. */ struct wim_sd_set { struct wim_security_data *sd; - struct rb_root rb_root; + struct avl_tree_node *root; int32_t orig_num_entries; }; @@ -34,10 +36,10 @@ struct wim_security_data { }; extern void -destroy_sd_set(struct wim_sd_set *sd_set, bool rollback); +rollback_new_security_descriptors(struct wim_sd_set *sd_set); -extern int -lookup_sd(struct wim_sd_set *set, const u8 hash[]); +extern void +destroy_sd_set(struct wim_sd_set *sd_set); extern int sd_set_add_sd(struct wim_sd_set *sd_set, const char descriptor[],