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

Method OnInitDialog

cppcryptfs/ui/CryptAboutPropertyPage.cpp:138–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136
137
138BOOL CCryptAboutPropertyPage::OnInitDialog()
139{
140 CCryptPropertyPage::OnInitDialog();
141
142 // TODO: Add extra initialization here
143 //Moved, otherwise the array will be loaded before we determine the GUI language at program startup.
144 static const CString listViewStringCppcryptfs = LocUtils::GetStringFromResources(IDS_LVIEW_COPYRIGHT_CPPCRYPTFS).c_str();
145 static const CString listViewStringOpenSSL = LocUtils::GetStringFromResources(IDS_LVIEW_COPYRIGHT_OPENSSL).c_str();
146 static const CString listViewStringRapidJSON = LocUtils::GetStringFromResources(IDS_LVIEW_COPYRIGHT_RAPIDJSON).c_str();
147 static const CString listViewStringDokanyMir = LocUtils::GetStringFromResources(IDS_LVIEW_COPYRIGHT_DOKANY_MIR).c_str();
148 static const CString listViewStringDokanyLib = LocUtils::GetStringFromResources(IDS_LVIEW_COPYRIGHT_DOKANY_LIB).c_str();
149 static const CString listViewStringSecuryEdit = LocUtils::GetStringFromResources(IDS_LVIEW_COPYRIGHT_SECURE_EDIT).c_str();
150 static const CString listViewStringGetOpt = LocUtils::GetStringFromResources(IDS_LVIEW_COPYRIGHT_GETOPT_PORT).c_str();
151 static const CString listViewStringAESSIV = LocUtils::GetStringFromResources(IDS_LVIEW_COPYRIGHT_AES_SIV).c_str();
152
153 static const WCHAR* components[] = {
154 listViewStringCppcryptfs,
155 listViewStringOpenSSL,
156 listViewStringRapidJSON,
157 listViewStringDokanyMir,
158 listViewStringDokanyLib,
159 listViewStringSecuryEdit,
160 listViewStringGetOpt,
161 listViewStringAESSIV,
162 NULL
163 };
164
165 wstring prod = L"cppryptfs";
166 wstring ver = L"1.0";
167 wstring copyright = LocUtils::GetStringFromResources(IDS_COPYRIGHT);
168
169 GetProductVersionInfo(prod, ver, copyright);
170
171 string openssl_ver_s = SSLeay_version(SSLEAY_VERSION);
172
173 // get rid of openssl build date
174
175 int nspaces = 0;
176
177 for (size_t i = 0; i < openssl_ver_s.length(); i++) {
178 if (openssl_ver_s[i] == ' ') {
179 if (nspaces) {
180 openssl_ver_s.resize(i);
181 break;
182 }
183 nspaces++;
184 }
185 }
186
187 wstring openssl_ver_w;
188
189 if (!utf8_to_unicode(openssl_ver_s.c_str(), openssl_ver_w))
190 openssl_ver_w = LocUtils::GetStringFromResources(IDS_ERR_GET_OPENSSL_VERSION);
191
192 CString openssl_ver = openssl_ver_w.c_str();
193
194 std::vector<int> dv;
195 std::wstring dok_ver;

Callers

nothing calls this directly

Calls 6

GetProductVersionInfoFunction · 0.85
utf8_to_unicodeFunction · 0.85
get_dokany_versionFunction · 0.85
lf_to_crlfFunction · 0.85
unicode_to_utf8Function · 0.85

Tested by

no test coverage detected