Changeset 193
- Timestamp:
- 04/30/10 20:07:22 (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r191 r193 44 44 env.Install(prefix+'bin', [reglookup, reglookup_recover, 'bin/reglookup-timeline']) 45 45 env.Install(prefix+'lib', [libregfi, libregfi_static]) 46 env.Install(prefix+'include/regfi', Glob('include/*.h')) 46 47 env.Install(prefix+'man/man1', [man_reglookup, man_reglookup_recover, 47 48 man_reglookup_timeline]) -
trunk/include/regfi.h
r186 r193 1 1 /* 2 2 * Copyright (C) 2005-2010 Timothy D. Morgan 3 * Copyright (C) 2010 Michael Cohen 3 4 * Copyright (C) 2005 Gerald (Jerry) Carter 4 5 * … … 71 72 #include <pthread.h> 72 73 73 #include "byteorder.h" 74 #include "talloc.h" 75 #include "winsec.h" 76 #include "void_stack.h" 77 #include "range_list.h" 78 #include "lru_cache.h" 74 /* regfi headers */ 75 #include <byteorder.h> 76 #include <talloc.h> 77 #include <winsec.h> 78 #include <void_stack.h> 79 #include <range_list.h> 80 #include <lru_cache.h> 79 81 80 82 … … 91 93 #define REGFI_DEFAULT_LOG_MASK REGFI_LOG_ERROR|REGFI_LOG_WARN 92 94 93 typedef uint8_t REGFI_ENCODING;94 95 /* regfi library supported character encodings */ 95 #define REGFI_ENCODING_ASCII 096 #define REGFI_ENCODING_UTF8 197 #define REGFI_ENCODING_DEFAULT REGFI_ENCODING_ASCII98 96 /* UTF16LE is not supported for output */ 99 #define REGFI_ENCODING_UTF16LE 2 100 101 #define REGFI_NUM_ENCODINGS 3 97 typedef enum { 98 REGFI_ENCODING_DEFAULT = 0, 99 REGFI_ENCODING_ASCII = 0, 100 REGFI_ENCODING_UTF8 = 1, 101 REGFI_ENCODING_UTF16LE = 2, 102 REGFI_NUM_ENCODINGS = 3 103 } REGFI_ENCODING; 102 104 103 105 /* Registry data types */ 104 #define REG_NONE 0 105 #define REG_SZ 1 106 #define REG_EXPAND_SZ 2 107 #define REG_BINARY 3 108 #define REG_DWORD 4 109 #define REG_DWORD_LE 4 /* DWORD, little endian */ 110 #define REG_DWORD_BE 5 /* DWORD, big endian */ 111 #define REG_LINK 6 112 #define REG_MULTI_SZ 7 113 #define REG_RESOURCE_LIST 8 114 #define REG_FULL_RESOURCE_DESCRIPTOR 9 115 #define REG_RESOURCE_REQUIREMENTS_LIST 10 116 #define REG_QWORD 11 /* 64-bit little endian */ 106 typedef enum { 107 REG_NONE = 0, 108 REG_SZ = 1, 109 REG_EXPAND_SZ = 2, 110 REG_BINARY = 3, 111 REG_DWORD = 4, 112 REG_DWORD_LE = 4 , /* DWORD, little endian */ 113 REG_DWORD_BE = 5 , /* DWORD, big endian */ 114 REG_LINK = 6, 115 REG_MULTI_SZ = 7, 116 REG_RESOURCE_LIST = 8, 117 REG_FULL_RESOURCE_DESCRIPTOR= 9, 118 REG_RESOURCE_REQUIREMENTS_LIST= 10, 119 REG_QWORD = 11, /* 64-bit little endian */ 117 120 /* XXX: Has MS defined a REG_QWORD_BE? */ 118 121 /* Not a real type in the registry */ 119 #define REG_KEY0x7FFFFFFF120 122 REG_KEY = 0x7FFFFFFF 123 } REGFI_DATA_TYPE; 121 124 #define REGFI_OFFSET_NONE 0xffffffff 122 125 … … 248 251 249 252 253 #ifndef CHAR_BIT 250 254 #define CHAR_BIT 8 255 #endif 256 251 257 #define TIME_T_MIN ((time_t)0 < (time_t) -1 ? (time_t) 0 \ 252 258 : ~ (time_t) 0 << (sizeof (time_t) * CHAR_BIT - 1)) … … 385 391 { 386 392 /** Data type of this data, as indicated by the referencing VK record. */ 387 uint32_ttype;393 REGFI_DATA_TYPE type; 388 394 389 395 /** Length of the raw data. */ … … 526 532 527 533 /** Value's data type */ 528 uint32_ttype;534 REGFI_DATA_TYPE type; 529 535 530 536 /** VK record's magic number (should be "vk") */ -
trunk/lib/regfi.c
r186 r193 2209 2209 { 2210 2210 regfi_log_add(REGFI_LOG_INFO, "Error occurred while" 2211 " converting data of type %d to % s. Error message: %s",2211 " converting data of type %d to %d. Error message: %s", 2212 2212 type, string_encoding, strerror(-tmp_size)); 2213 2213 talloc_free(tmp_str);
Note: See TracChangeset
for help on using the changeset viewer.