X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=puttygen.c;h=a8945b5c136eb26b9525c7dbfc5b48944fbd99d2;hb=0edefb1809a783e8302ac2faf604e99729c6cda0;hp=fce91cf55d69a52bf4d35e245f5080137a36076c;hpb=fa0fa6d17dc5e44ba28adddd6c0c501638446b28;p=PuTTY.git diff --git a/puttygen.c b/puttygen.c index fce91cf5..a8945b5c 100644 --- a/puttygen.c +++ b/puttygen.c @@ -1,9 +1,7 @@ /* - * PuTTY key generation front end. + * PuTTY key generation front end (Windows). */ -#include -#include #include #include #include @@ -12,7 +10,8 @@ #include "putty.h" #include "ssh.h" -#include "winstuff.h" + +#include #ifdef MSVC4 #define ICON_BIG 1 @@ -405,7 +404,7 @@ static void setupbigedit2(HWND hwnd, int id, int idstatic, strcpy(p, key->comment); SetDlgItemText(hwnd, id, buffer); SetDlgItemText(hwnd, idstatic, "&Public key for pasting into " - "OpenSSH authorized_keys2 file:"); + "OpenSSH authorized_keys file:"); sfree(pub_blob); sfree(buffer); } @@ -681,14 +680,14 @@ void load_key_file(HWND hwnd, struct MainDlgState *state, if (type == SSH_KEYTYPE_SSH1) { if (realtype == type) ret = loadrsakey(&filename, &newkey1, - passphrase); + passphrase, NULL); else ret = import_ssh1(&filename, realtype, &newkey1, passphrase); } else { if (realtype == type) newkey2 = ssh2_load_userkey(&filename, - passphrase); + passphrase, NULL); else newkey2 = import_ssh2(&filename, realtype, passphrase); @@ -929,7 +928,7 @@ static int CALLBACK MainDlgProc(HWND hwnd, UINT msg, IDC_BITSSTATIC, IDC_BITS, 20); endbox(&cp); } - CheckRadioButton(hwnd, IDC_KEYSSH1, IDC_KEYSSH2DSA, IDC_KEYSSH1); + CheckRadioButton(hwnd, IDC_KEYSSH1, IDC_KEYSSH2DSA, IDC_KEYSSH2RSA); CheckMenuRadioItem(state->keymenu, IDC_KEYSSH1, IDC_KEYSSH2DSA, IDC_KEYSSH1, MF_BYCOMMAND); SetDlgItemInt(hwnd, IDC_BITS, DEFAULT_KEYSIZE, FALSE);