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