Contains the type and function definitions that are needed by external programs to use the TSK library.
More...
|
|
void | tsk_error_errstr2_concat (const char *format,...) TSK_ERROR_FORMAT_ATTRIBUTE(1 |
| const char * | tsk_error_get () |
| | Return a human-readable form of tsk_error_get_errno.
|
| uint32_t | tsk_error_get_errno () |
| | Return the current error number.
|
| char * | tsk_error_get_errstr () |
| | Retrieve the current, basic error string.
|
| char * | tsk_error_get_errstr2 () |
| | Retrieve the current error string #2.
|
|
TSK_ERROR_INFO * | tsk_error_get_info () |
| void | tsk_error_print (FILE *) |
| | Print the current fully formed error message to a file.
|
|
void | tsk_error_reset () |
| | Clear the error number and error message.
|
| void | tsk_error_set_errno (uint32_t t_errno) |
| | Set the current TSK error number.
|
| void void | tsk_error_set_error_listener (TSK_ERROR_LISTENER_CB listener) |
| | Add a method that will be sent most errors (in additional to the processing TSK already does).
|
|
void | tsk_error_set_errstr (const char *format,...) TSK_ERROR_FORMAT_ATTRIBUTE(1 |
|
void | tsk_error_set_errstr2 (const char *format,...) TSK_ERROR_FORMAT_ATTRIBUTE(1 |
| void void | tsk_error_vset_errstr (const char *format, va_list args) |
| | Set the error string.
|
| void void | tsk_error_vset_errstr2 (const char *format, va_list args) |
| | Set the error string.
|
| void | tsk_fprintf (FILE *fd, const char *msg,...) |
| | fprintf wrapper function that takes UTF-8 strings as input (on all platforms) and does what is necessary to output strings in the correct encoding (UTF-8 on Unix and UTF-16 on Windows).
|
| uint8_t | tsk_list_add (TSK_LIST **list, uint64_t key) |
| | Add an entry to a TSK_LIST (and create one if one does not exist).
|
| uint8_t | tsk_list_find (TSK_LIST *list, uint64_t key) |
| | Search a TSK_LIST for the existence of a value.
|
| void | tsk_list_free (TSK_LIST *list) |
| | Free a TSK_LIST.
|
| int | tsk_print_sanitized (FILE *fd, const char *str) |
| | Prints the string removing control characters.
|
| void | tsk_printf (const char *msg,...) |
| | printf wrapper function that takes UTF-8 strings as input (on all platforms) and does what is necessary to output strings in the correct encoding (UTF-8 on Unix and UTF-16 on Windows).
|
| TSK_STACK * | tsk_stack_create () |
| | Create a TSK_STACK structure.
|
| uint8_t | tsk_stack_find (TSK_STACK *stack, uint64_t key) |
| | Search a TSK_STACK for a given value.
|
| void | tsk_stack_free (TSK_STACK *stack) |
| | Free an allocated TSK_STACK structure.
|
| void | tsk_stack_pop (TSK_STACK *stack) |
| | Pop a value from the top of the stack.
|
| uint8_t | tsk_stack_push (TSK_STACK *stack, uint64_t key) |
| | Push a value to the top of TSK_STACK.
|
|
|
#define | PRIdOFF PRId64 |
|
#define | PRIuDADDR PRIu64 |
|
#define | PRIuGID PRIu32 |
|
#define | PRIuINUM PRIu64 |
|
#define | PRIuPNUM PRIu32 |
|
#define | PRIuUID PRIu32 |
|
#define | PRIxDADDR PRIx64 |
|
#define | PRIxGID PRIx32 |
|
#define | PRIxINUM PRIx64 |
|
#define | PRIxOFF PRIx64 |
|
#define | PRIxPNUM PRIx32 |
|
#define | PRIxUID PRIx32 |
|
typedef uint64_t | TSK_DADDR_T |
| | Data type used to internally store sector and block addresses.
|
|
#define | TSK_ERR_AUTO 0x20000000 |
|
#define | TSK_ERR_AUTO_CORRUPT (TSK_ERR_AUTO | 1) |
|
#define | TSK_ERR_AUTO_DB (TSK_ERR_AUTO | 0) |
|
#define | TSK_ERR_AUTO_MAX 4 |
|
#define | TSK_ERR_AUTO_NOTOPEN (TSK_ERR_AUTO | 3) |
|
#define | TSK_ERR_AUTO_UNICODE (TSK_ERR_AUTO | 2) |
|
#define | TSK_ERR_AUX 0x01000000 |
|
#define | TSK_ERR_AUX_GENERIC (TSK_ERR_AUX | 2) |
|
#define | TSK_ERR_AUX_MALLOC (TSK_ERR_AUX | 0) |
|
#define | TSK_ERR_AUX_MAX 2 |
|
#define | TSK_ERR_FS 0x08000000 |
|
#define | TSK_ERR_FS_ARG (TSK_ERR_FS | 6) |
|
#define | TSK_ERR_FS_ATTR_NOTFOUND (TSK_ERR_FS | 17) |
|
#define | TSK_ERR_FS_BITLOCKER_ERROR (TSK_ERR_FS | 21) |
|
#define | TSK_ERR_FS_BLK_NUM (TSK_ERR_FS | 7) |
|
#define | TSK_ERR_FS_CORRUPT (TSK_ERR_FS | 16) |
|
#define | TSK_ERR_FS_ENCRYPTED (TSK_ERR_FS | 18) |
|
#define | TSK_ERR_FS_FWALK (TSK_ERR_FS | 11) |
|
#define | TSK_ERR_FS_GENFS (TSK_ERR_FS | 15) |
|
#define | TSK_ERR_FS_INODE_COR (TSK_ERR_FS | 9) |
|
#define | TSK_ERR_FS_INODE_NUM (TSK_ERR_FS | 8) |
|
#define | TSK_ERR_FS_LARGE_DIR_ERROR (TSK_ERR_FS | 22) |
|
#define | TSK_ERR_FS_MAGIC (TSK_ERR_FS | 10) |
|
#define | TSK_ERR_FS_MAX 23 |
|
#define | TSK_ERR_FS_MULTTYPE (TSK_ERR_FS | 20) |
|
#define | TSK_ERR_FS_POSSIBLY_ENCRYPTED (TSK_ERR_FS | 19) |
|
#define | TSK_ERR_FS_READ (TSK_ERR_FS | 4) |
|
#define | TSK_ERR_FS_READ_OFF (TSK_ERR_FS | 5) |
|
#define | TSK_ERR_FS_RECOVER (TSK_ERR_FS | 14) |
|
#define | TSK_ERR_FS_UNICODE (TSK_ERR_FS | 13) |
|
#define | TSK_ERR_FS_UNKTYPE (TSK_ERR_FS | 0) |
|
#define | TSK_ERR_FS_UNSUPFUNC (TSK_ERR_FS | 2) |
|
#define | TSK_ERR_FS_UNSUPTYPE (TSK_ERR_FS | 1) |
|
#define | TSK_ERR_FS_WALK_RNG (TSK_ERR_FS | 3) |
|
#define | TSK_ERR_FS_WRITE (TSK_ERR_FS | 12) |
|
#define | TSK_ERR_HDB 0x10000000 |
|
#define | TSK_ERR_HDB_ARG (TSK_ERR_HDB | 4) |
|
#define | TSK_ERR_HDB_CORRUPT (TSK_ERR_HDB | 11) |
|
#define | TSK_ERR_HDB_CREATE (TSK_ERR_HDB | 6) |
|
#define | TSK_ERR_HDB_DELETE (TSK_ERR_HDB | 7) |
|
#define | TSK_ERR_HDB_MAX 13 |
|
#define | TSK_ERR_HDB_MISSING (TSK_ERR_HDB | 8) |
|
#define | TSK_ERR_HDB_OPEN (TSK_ERR_HDB | 10) |
|
#define | TSK_ERR_HDB_PROC (TSK_ERR_HDB | 9) |
|
#define | TSK_ERR_HDB_READDB (TSK_ERR_HDB | 2) |
|
#define | TSK_ERR_HDB_READIDX (TSK_ERR_HDB | 3) |
|
#define | TSK_ERR_HDB_UNKTYPE (TSK_ERR_HDB | 0) |
|
#define | TSK_ERR_HDB_UNSUPFUNC (TSK_ERR_HDB | 11) |
|
#define | TSK_ERR_HDB_UNSUPTYPE (TSK_ERR_HDB | 1) |
|
#define | TSK_ERR_HDB_WRITE (TSK_ERR_HDB | 5) |
|
#define | TSK_ERR_IMG 0x02000000 |
|
#define | TSK_ERR_IMG_ARG (TSK_ERR_IMG | 9) |
|
#define | TSK_ERR_IMG_CONVERT (TSK_ERR_IMG | 12) |
|
#define | TSK_ERR_IMG_MAGIC (TSK_ERR_IMG | 10) |
|
#define | TSK_ERR_IMG_MAX 14 |
|
#define | TSK_ERR_IMG_NOFILE (TSK_ERR_IMG | 0) |
|
#define | TSK_ERR_IMG_OFFSET (TSK_ERR_IMG | 1) |
|
#define | TSK_ERR_IMG_OPEN (TSK_ERR_IMG | 4) |
|
#define | TSK_ERR_IMG_PASSWD (TSK_ERR_IMG | 13) |
|
#define | TSK_ERR_IMG_READ (TSK_ERR_IMG | 7) |
|
#define | TSK_ERR_IMG_READ_OFF (TSK_ERR_IMG | 8) |
|
#define | TSK_ERR_IMG_SEEK (TSK_ERR_IMG | 6) |
|
#define | TSK_ERR_IMG_STAT (TSK_ERR_IMG | 5) |
|
#define | TSK_ERR_IMG_UNKTYPE (TSK_ERR_IMG | 2) |
|
#define | TSK_ERR_IMG_UNSUPTYPE (TSK_ERR_IMG | 3) |
|
#define | TSK_ERR_IMG_WRITE (TSK_ERR_IMG | 11) |
|
#define | TSK_ERR_MASK 0x00ffffff |
|
#define | TSK_ERR_POOL 0x40000000 |
|
#define | TSK_ERR_POOL_ARG (TSK_ERR_POOL | 2) |
|
#define | TSK_ERR_POOL_GENPOOL (TSK_ERR_POOL | 3) |
|
#define | TSK_ERR_POOL_MAX 4 |
|
#define | TSK_ERR_POOL_UNKTYPE (TSK_ERR_POOL | 0) |
|
#define | TSK_ERR_POOL_UNSUPTYPE (TSK_ERR_IMG | 1) |
|
#define | TSK_ERR_VS 0x04000000 |
|
#define | TSK_ERR_VS_ARG (TSK_ERR_VS | 7) |
|
#define | TSK_ERR_VS_BLK_NUM (TSK_ERR_VS | 6) |
|
#define | TSK_ERR_VS_BUF (TSK_ERR_VS | 5) |
|
#define | TSK_ERR_VS_ENCRYPTED (TSK_ERR_VS | 8) |
|
#define | TSK_ERR_VS_MAGIC (TSK_ERR_VS | 3) |
|
#define | TSK_ERR_VS_MAX 10 |
|
#define | TSK_ERR_VS_MULTTYPE (TSK_ERR_VS | 9) |
|
#define | TSK_ERR_VS_READ (TSK_ERR_VS | 2) |
|
#define | TSK_ERR_VS_UNKTYPE (TSK_ERR_VS | 0) |
|
#define | TSK_ERR_VS_UNSUPTYPE (TSK_ERR_VS | 1) |
|
#define | TSK_ERR_VS_WALK_RNG (TSK_ERR_VS | 4) |
|
typedef uint32_t | TSK_GID_T |
| | Data type used to internally store Group IDs.
|
|
typedef uint64_t | TSK_INUM_T |
| | Data type used to internally store metadata / inode addresses.
|
|
typedef int64_t | TSK_OFF_T |
| | Data type used to internally store volume, file, etc. sizes and offsets.
|
|
typedef uint32_t | TSK_PNUM_T |
| | Data type used to internally store partition addresses.
|
|
typedef uint32_t | TSK_UID_T |
| | Data type used to internally store User IDs.
|
|
int | tsk_verbose |
| | Set to 1 to have verbose debug messages printed to stderr.
|
| const char * | tsk_version_get_str () |
| | Return the library version as a string.
|
| void | tsk_version_print (FILE *) |
| | Print the library name and version to a handle (such as "The Sleuth Kit ver 1.00").
|
| enum | TSK_WALK_RET_ENUM { TSK_WALK_CONT = 0x0
, TSK_WALK_STOP = 0x1
, TSK_WALK_ERROR = 0x2
} |
| | Values that callback functions can return to calling walk function. More...
|
Contains the type and function definitions that are needed by external programs to use the TSK library.
Note that this file is not meant to be directly included. It is included by both libtsk.h and tsk_base_i.h.