/usr/include/dislocker/metadata/metadata_config.h is in libdislocker0-dev 0.7.1-3build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | /* -*- coding: utf-8 -*- */
/* -*- mode: c -*- */
/*
* Dislocker -- enables to read/write on BitLocker encrypted partitions under
* Linux
* Copyright (C) 2012-2013 Romain Coltel, Hervé Schauer Consultants
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*/
#ifndef METADATA_CONFIG_H
#define METADATA_CONFIG_H
#include "dislocker/config.h"
/**
* Metadata structure to use to query the functions below
*/
typedef struct _dis_metadata_config* dis_metadata_config_t;
struct _dis_metadata_config {
/* The file descriptor to the encrypted volume */
int fve_fd;
/*
* Use this block of metadata and not another one (begin at 1, 0 is for not
* forcing anything)
*/
unsigned char force_block;
/*
* Begin to read the BitLocker volume at this offset, making this offset the
* zero-one
*/
off_t offset;
/* States dislocker's metadata initialisation is at or will be stopped at */
dis_state_e curr_state;
dis_state_e init_stop_at;
};
/*
* Prototypes
*/
dis_metadata_config_t dis_metadata_config_new();
void dis_metadata_config_destroy(dis_metadata_config_t dis_metadata_cfg);
#endif // METADATA_CONFIG_H
|