Work continues
This commit is contained in:
parent
b4b2622d7d
commit
389537a50e
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
/*.opensdf
|
||||
/*.suo
|
||||
/*.sdf
|
||||
/ipch
|
||||
|
@ -43,13 +43,15 @@ int CALLBACK WinMain(_In_ HINSTANCE hInstance, _In_ HINSTANCE hPrevInstance, _In
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Decode password.
|
||||
vector<unsigned char> password;
|
||||
// Decode password (Base64 >> UTF-8 >> UTF-16).
|
||||
sanitizing_vector<char> password_utf8;
|
||||
{
|
||||
base64_dec dec;
|
||||
bool is_last;
|
||||
dec.decode(password, is_last, pwcArglist[2], (size_t)-1);
|
||||
dec.decode(password_utf8, is_last, pwcArglist[2], (size_t)-1);
|
||||
}
|
||||
sanitizing_wstring password;
|
||||
MultiByteToWideChar(CP_UTF8, 0, password_utf8.data(), (int)password_utf8.size(), password);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -21,6 +21,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <WinStd/Base64.h>
|
||||
#include <WinStd/Win.h>
|
||||
|
||||
#include <tchar.h>
|
||||
#include <Windows.h>
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 812b746ef3ff80f97df9bf36e6e7c8833cd8d431
|
||||
Subproject commit 2cb830b341ea49e9c69ec332b060e165ad75e1a7
|
Loading…
x
Reference in New Issue
Block a user