From 2a47ac3ac5bafb0c81570765ff6d0df38b46b31e Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 30 Mar 2016 11:28:59 +0100 Subject: [PATCH] Cleanup: rename Windows PuTTYgen's key generation function. It's been a generation function for keys in general for yonks, not just RSA keys specifically. --- windows/winpgen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/winpgen.c b/windows/winpgen.c index ad3da837..002070a5 100644 --- a/windows/winpgen.c +++ b/windows/winpgen.c @@ -342,7 +342,7 @@ struct rsa_key_thread_params { struct ec_key *eckey; }; }; -static DWORD WINAPI generate_rsa_key_thread(void *param) +static DWORD WINAPI generate_key_thread(void *param) { struct rsa_key_thread_params *params = (struct rsa_key_thread_params *) param; @@ -1025,7 +1025,7 @@ static INT_PTR CALLBACK MainDlgProc(HWND hwnd, UINT msg, params->key = &state->key; params->dsskey = &state->dsskey; - if (!CreateThread(NULL, 0, generate_rsa_key_thread, + if (!CreateThread(NULL, 0, generate_key_thread, params, 0, &threadid)) { MessageBox(hwnd, "Out of thread resources", "Key generation error",