200 |
_("Key Generation"), MB_ERR); |
_("Key Generation"), MB_ERR); |
201 |
return FALSE; |
return FALSE; |
202 |
} |
} |
203 |
if (bits > 2048) { |
if (bits > DFAULT_KEYSIZE) { |
204 |
int id = msg_box (dlg, _("Do you really need such a large key?"), |
int id = msg_box (dlg, _("Do you really need such a large key?"), |
205 |
_("Key Generation"), MB_YESNO); |
_("Key Generation"), MB_YESNO); |
206 |
if (id == IDNO) |
if (id == IDNO) |
207 |
bits = 2048; |
bits = DFAULT_KEYSIZE; |
208 |
} |
} |
209 |
if( !GetDlgItemText( dlg, IDC_KEYGEN_NAME, name, sizeof name - 1 ) ) { |
if( !GetDlgItemText( dlg, IDC_KEYGEN_NAME, name, sizeof name - 1 ) ) { |
210 |
msg_box( dlg, _("Please enter the name."), _("Key Generation"), MB_ERR ); |
msg_box( dlg, _("Please enter the name."), _("Key Generation"), MB_ERR ); |