Changeset 147 for trunk/include
- Timestamp:
- 02/22/09 14:31:52 (16 years ago)
- Location:
- trunk/include
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/lru_cache.h
r122 r147 1 1 /* 2 * Copyright (C) 2008 Timothy D. Morgan2 * Copyright (C) 2008-2009 Timothy D. Morgan 3 3 * 4 4 * This program is free software; you can redistribute it and/or modify … … 27 27 #include <string.h> 28 28 #include <unistd.h> 29 #include "talloc.h" 29 30 30 31 struct lru_cache_element; … … 50 51 lru_cache_element* newest; 51 52 lru_cache_element** table; 52 bool free_data;53 bool talloc_data; 53 54 } lru_cache; 54 55 55 56 56 lru_cache* lru_cache_create(uint32_t max_keys, uint32_t secret, bool free_data); 57 lru_cache* lru_cache_create(uint32_t max_keys, uint32_t secret); 58 lru_cache* lru_cache_create_ctx(void* talloc_ctx, uint32_t max_keys, 59 uint32_t secret, bool talloc_data); 57 60 void lru_cache_destroy(lru_cache* ht); 58 61 59 /* Returns a pointer to the old, replaced data stored at index.60 * Returns NULL if no entry was overwritten.62 /* 63 * 61 64 */ 62 65 bool lru_cache_update(lru_cache* ht, const void* index, -
trunk/include/regfi.h
r146 r147 46 46 #include <assert.h> 47 47 48 #include "talloc.h" 48 49 #include "smb_deps.h" 49 50 #include "winsec.h" … … 84 85 #define REG_KEY 0x7FFFFFFF 85 86 86 #define REGFI_REGF_SIZE 0x1000 /* "regf" header block size */87 #define REGFI_HBIN_ALLOC 0x1000 /* Minimum allocation unit for HBINs */88 87 #define REGFI_MAX_DEPTH 512 89 88 #define REGFI_OFFSET_NONE 0xffffffff … … 93 92 94 93 /* Header sizes and magic number lengths for various records */ 94 #define REGFI_HBIN_ALLOC 0x1000 /* Minimum allocation unit for HBINs */ 95 #define REGFI_REGF_SIZE 0x1000 /* "regf" header block size */ 95 96 #define REGFI_REGF_MAGIC_SIZE 4 96 97 #define REGFI_HBIN_MAGIC_SIZE 4 … … 107 108 * been reported that Windows timestamps are never more than a 108 109 * certain granularity (250ms?), which could be used to help 109 * eliminate false positives. Would need to v alidatethis and110 * eliminate false positives. Would need to verify this and 110 111 * perhaps conservatively implement a check. 111 112 */ -
trunk/include/winsec.h
r134 r147 42 42 43 43 #include "smb_deps.h" 44 #include "talloc.h" 44 45 45 46 … … 145 146 } WINSEC_DESC; 146 147 148 WINSEC_DESC* winsec_parse_descriptor(const uint8_t* buf, uint32_t buf_len); 149 void winsec_free_descriptor(WINSEC_DESC* desc); 147 150 148 /* XXX: Need API functions to deallocate these structures */ 149 WINSEC_DESC* winsec_parse_desc(const uint8_t* buf, uint32_t buf_len); 150 WINSEC_ACL* winsec_parse_acl(const uint8_t* buf, uint32_t buf_len); 151 WINSEC_ACE* winsec_parse_ace(const uint8_t* buf, uint32_t buf_len); 152 WINSEC_DOM_SID* winsec_parse_dom_sid(const uint8_t* buf, uint32_t buf_len); 153 WINSEC_UUID* winsec_parse_uuid(const uint8_t* buf, uint32_t buf_len); 151 WINSEC_DESC* winsec_parse_desc(void* talloc_ctx, 152 const uint8_t* buf, uint32_t buf_len); 153 WINSEC_ACL* winsec_parse_acl(void* talloc_ctx, 154 const uint8_t* buf, uint32_t buf_len); 155 WINSEC_ACE* winsec_parse_ace(void* talloc_ctx, 156 const uint8_t* buf, uint32_t buf_len); 157 WINSEC_DOM_SID* winsec_parse_dom_sid(void* talloc_ctx, 158 const uint8_t* buf, uint32_t buf_len); 159 WINSEC_UUID* winsec_parse_uuid(void* talloc_ctx, 160 const uint8_t* buf, uint32_t buf_len); 154 161 155 162 size_t winsec_sid_size(const WINSEC_DOM_SID* sid);
Note: See TracChangeset
for help on using the changeset viewer.