]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Cleanup: rename Windows PuTTYgen's key generation function.
authorSimon Tatham <anakin@pobox.com>
Wed, 30 Mar 2016 10:28:59 +0000 (11:28 +0100)
committerSimon Tatham <anakin@pobox.com>
Wed, 30 Mar 2016 10:28:59 +0000 (11:28 +0100)
It's been a generation function for keys in general for yonks, not
just RSA keys specifically.

windows/winpgen.c

index ad3da837a7e7e8b159eafef8154368b427a7c255..002070a561b4610cc773d7dcff8c6346306780ce 100644 (file)
@@ -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",