]> wimlib.net Git - wimlib/blobdiff - include/wimlib/security.h
Remove quotes in do_load_text_file()
[wimlib] / include / wimlib / security.h
index 2f51560ffe0a749a4a98010466d4231951f26fdb..8043d7d2c8e87534ed1e546928359b214dd2f53b 100644 (file)
@@ -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;
 };
 
@@ -26,7 +28,7 @@ struct wim_security_data {
 
        /* Array of sizes of the descriptors, in bytes, in the array
         * @descriptors. */
-       size_t *sizes;
+       u64 *sizes;
 
        /* Array of pointers to the security descriptors in the
         * SECURITY_DESCRIPTOR_RELATIVE format. */
@@ -36,9 +38,6 @@ struct wim_security_data {
 extern void
 destroy_sd_set(struct wim_sd_set *sd_set, bool rollback);
 
-extern int
-lookup_sd(struct wim_sd_set *set, const u8 hash[]);
-
 extern int
 sd_set_add_sd(struct wim_sd_set *sd_set, const char descriptor[],
              size_t size);