MCPcopy Create free account
hub / github.com/bailey27/cppcryptfs / CryptContext

Method CryptContext

libcppcryptfs/context/cryptcontext.cpp:47–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47CryptContext::CryptContext()
48{
49 m_mountEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
50
51 m_caseinsensitive = false;
52
53 m_recycle_bin = false;
54 m_read_only = false;
55 m_delete_spurrious_files = false;
56
57 m_cache_ttl = 1;
58
59 m_bufferblocks = 1;
60
61 m_multithreaded = true;
62
63 if (!m_mountEvent)
64 throw((int)GetLastError());
65
66 m_config = new CryptConfig;
67
68 m_prand_bytes = &random_bytes;
69
70 m_case_cache.m_con = this;
71
72 m_encryptKeysInMemory = false;
73 m_cacheKeysInMemory = false;
74
75 m_denyOtherSessions = false;
76 m_denyServices = false;
77
78 m_flushafterwrite = false;
79}
80
81static void get_deletable_files(CryptContext *con, vector<wstring>& files)
82{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected