zuluCrypt  5.7.1
About: zuluCrypt is a simple but feature rich solution for hard drives encryption. It can manage PLAIN dm-crypt, LUKS, TrueCrypt and VeraCrypt encrypted volumes.
  Fossies Dox: zuluCrypt-5.7.1.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

open_volume.c File Reference
#include "includes.h"
#include "../lib/includes.h"
#include <sys/types.h>
#include <string.h>
#include <locale.h>
#include <stdio.h>
#include <libintl.h>
#include <sys/stat.h>
#include <unistd.h>
Include dependency graph for open_volume.c:

Go to the source code of this file.

Macros

#define buffer_size   32
 

Functions

stringList_t zuluCryptCreateKeyFiles (const char *const *list, int s)
 
void zuluCryptDeleteKeyFiles (stringList_t stl)
 
static char * _device_path (const char *device)
 
static void _printResult (const char *device, const char *m_point)
 
static int zuluExit (int st, const char *device, const char *m_point, stringList_t stl)
 
static int zuluExit_1 (int st, const struct_opts *opts, const char *device, const char *m_point, stringList_t stl)
 
static int _open_volume (const open_struct_t *volume)
 
void zuluCryptTrueCryptVeraCryptVolumeInfo (const char *type, tvcrypt *e)
 
int zuluCryptEXEOpenVolume (const struct_opts *opts, const char *mapping_name, uid_t uid)
 

Macro Definition Documentation

◆ buffer_size

#define buffer_size   32

Function Documentation

◆ _device_path()

static char* _device_path ( const char *  device)
static

◆ _open_volume()

static int _open_volume ( const open_struct_t volume)
static

◆ _printResult()

static void _printResult ( const char *  device,
const char *  m_point 
)
static

◆ zuluCryptCreateKeyFiles()

◆ zuluCryptDeleteKeyFiles()

◆ zuluCryptEXEOpenVolume()

int zuluCryptEXEOpenVolume ( const struct_opts opts,
const char *  mapping_name,
uid_t  uid 
)

Definition at line 254 of file open_volume.c.

References _device_path(), _open_volume(), open_struct_t::bitlocker_volume, struct_opts_1::device, open_struct_t::device, struct_opts_1::fs_opts, open_struct_t::fs_opts, tvcrypt::iteration_count, open_struct_t::iteration_count, struct_opts_1::key, open_struct_t::key, open_struct_t::key_len, struct_opts_1::key_source, open_struct_t::key_source, open_struct_t::luks_detached_header, struct_opts_1::luks_external_header, open_struct_t::m_flags, struct_opts_1::m_opts, open_struct_t::m_opts, open_struct_t::m_point, open_struct_t::mapper_name, open_struct_t::mapper_path, struct_opts_1::mount_point, struct_opts_1::offset, struct_opts_1::open_mount, open_struct_t::plain_dm_properties, struct_opts_1::plugin_path, struct_opts_1::share, String(), StringAppend(), StringAtLeastOneMatch(), StringContent(), StringCopy(), StringDelete(), StringFree(), StringHasComponent(), StringHasNoComponent(), StringLastIndexOfChar_1(), StringLength(), StringListArray(), StringListDelete(), StringListSize(), StringListStringArray_0(), StringMultipleAppend(), StringMultiplePrepend(), StringsAreEqual, StringsAreNotEqual, StringSilentlyGetFromTerminal_1(), StringSize(), StringVoid, open_struct_t::system_volume, TCRYPT_KEYFILE, open_struct_t::tcrypt_keyfiles, open_struct_t::tcrypt_keyfiles_count, struct_opts_1::tcrypt_multiple_keyfiles, open_struct_t::trueCrypt_volume, tvcrypt::type, struct_opts_1::type, open_struct_t::uid, open_struct_t::use_backup_header, struct_opts_1::use_cryptsetup_for_bitlocker, open_struct_t::use_cryptsetup_for_bitlocker, open_struct_t::veraCrypt_volume, ZULUCRYPT_KEY_MAX_SIZE, zuluCryptBindMountVolume(), zuluCryptBindSharedMountPointPathTaken(), zuluCryptBitLockerFullMapperPath(), zuluCryptBitLockerMapperName(), zuluCryptBitLockerMapperPath(), zuluCryptBitLockerType(), zuluCryptCanOpenPathForReading(), zuluCryptCanOpenPathForWriting(), zuluCryptCheckInvalidKey(), zuluCryptCreateKeyFiles(), zuluCryptCreateMapperName(), zuluCryptCreateMountPoint(), zuluCryptCreateMountPointPrefix(), zuluCryptDeleteKeyFiles(), zuluCryptDeviceHasAgivenFileSystem(), zuluCryptGetPassFromFile(), zuluCryptMapperPrefix(), zuluCryptMountFlagsAreNotCorrect(), zuluCryptPluginManagerGetKeyFromModule(), zuluCryptPrepareSocketPath(), zuluCryptRunTimePath(), zuluCryptSecurityDropElevatedPrivileges(), zuluCryptSecurityGainElevatedPrivileges(), zuluCryptSecurityLockMemory_1(), ZULUCRYPTshortMapperPath, zuluCryptTrueCryptVeraCryptVolumeInfo(), zuluCryptUseCryptsetupBitLocker(), zuluCryptUseDislockerBitLocker(), zuluCryptUserIsAMemberOfAGroup(), zuluCryptUUIDFromPath(), zuluCryptVolumeIsInSystemVolumeList(), zuluExit(), and zuluExit_1().

Referenced by zuluCryptEXE(), and zuluMountCryptoMount().

◆ zuluCryptTrueCryptVeraCryptVolumeInfo()

void zuluCryptTrueCryptVeraCryptVolumeInfo ( const char *  type,
tvcrypt e 
)

◆ zuluExit()

static int zuluExit ( int  st,
const char *  device,
const char *  m_point,
stringList_t  stl 
)
static

◆ zuluExit_1()

static int zuluExit_1 ( int  st,
const struct_opts opts,
const char *  device,
const char *  m_point,
stringList_t  stl 
)
static