summaryrefslogtreecommitdiff
path: root/gpg_wrapper.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-02-03 15:46:24 +0200
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2013-02-03 15:46:24 +0200
commit5657453dcc8626b9f7f13f7ade1eb3e5afa13cc8 (patch)
tree9e0f6204a546a3e4da38b2747cd85a550bb58c59 /gpg_wrapper.h
parent9e7bea7606d6fed31cb71a9e1682757be47a8b8f (diff)
ability to change key password (because of fucked gpg which does not want to give us his stdin/stdout only via ugly windows console)
Diffstat (limited to 'gpg_wrapper.h')
-rwxr-xr-xgpg_wrapper.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/gpg_wrapper.h b/gpg_wrapper.h
index 5501297..44b2f4f 100755
--- a/gpg_wrapper.h
+++ b/gpg_wrapper.h
@@ -32,7 +32,8 @@ typedef enum {
}
pxResult;
-pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD aexitcode, pxResult *result);
+pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD aexitcode, pxResult *result, HANDLE hProcess, PROCESS_INFORMATION *pr);
+pxResult pxExecute_passwd_change(std::vector<std::string> &aargv, char *ainput, string *aoutput, LPDWORD aexitcode, pxResult *result, HANDLE hProcess, PROCESS_INFORMATION *pr, string &old_pass, string &new_pass);
struct gpg_execution_params
{
@@ -45,6 +46,22 @@ struct gpg_execution_params
PROCESS_INFORMATION *proc;
};
+struct gpg_execution_params_pass
+{
+ std::vector<std::wstring> &args;
+ string &old_pass, &new_pass;
+ char *useless;
+ string *out;
+ LPDWORD code;
+ pxResult *result;
+ HANDLE hProcess;
+ PROCESS_INFORMATION *proc;
+ gpg_execution_params_pass(std::vector<std::wstring> &a, std::string &o, std::string &n): args(a), old_pass(o), new_pass(n)
+ {}
+};
+
+
void pxEexcute_thread(void *param);
+void pxEexcute_passwd_change_thread(void *param);
#endif \ No newline at end of file