File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 6767#include "sk-api.h" /* XXX for SSH_SK_USER_PRESENCE_REQD; remove */
6868#include "cipher.h"
6969
70+ #ifdef WINDOWS
71+ #define DEFAULT_KEY_TYPE_NAME "ecdsa"
72+ #else
7073#define DEFAULT_KEY_TYPE_NAME "ed25519"
74+ #endif /* WINDOWS */
7175
7276/*
7377 * Default number of bits in the RSA, DSA and ECDSA keys. These value can be
8286 */
8387#define DEFAULT_BITS 3072
8488#define DEFAULT_BITS_DSA 1024
89+ #ifdef WINDOWS
90+ #define DEFAULT_BITS_ECDSA 384
91+ #else
8592#define DEFAULT_BITS_ECDSA 256
93+ #endif /* WINDOWS */
8694
8795static int quiet = 0 ;
8896
@@ -259,7 +267,11 @@ ask_filename(struct passwd *pw, const char *prompt)
259267 char * name = NULL ;
260268
261269 if (key_type_name == NULL )
270+ #ifdef WINDOWS
271+ name = _PATH_SSH_CLIENT_ID_ECDSA ;
272+ #else
262273 name = _PATH_SSH_CLIENT_ID_ED25519 ;
274+ #endif /* WINDOWS */
263275 else {
264276 switch (sshkey_type_from_name (key_type_name )) {
265277#ifdef WITH_DSA
You can’t perform that action at this time.
0 commit comments