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 67
67
#include "sk-api.h" /* XXX for SSH_SK_USER_PRESENCE_REQD; remove */
68
68
#include "cipher.h"
69
69
70
+ #ifdef WINDOWS
71
+ #define DEFAULT_KEY_TYPE_NAME "ecdsa"
72
+ #else
70
73
#define DEFAULT_KEY_TYPE_NAME "ed25519"
74
+ #endif /* WINDOWS */
71
75
72
76
/*
73
77
* Default number of bits in the RSA, DSA and ECDSA keys. These value can be
82
86
*/
83
87
#define DEFAULT_BITS 3072
84
88
#define DEFAULT_BITS_DSA 1024
89
+ #ifdef WINDOWS
90
+ #define DEFAULT_BITS_ECDSA 384
91
+ #else
85
92
#define DEFAULT_BITS_ECDSA 256
93
+ #endif /* WINDOWS */
86
94
87
95
static int quiet = 0 ;
88
96
@@ -259,7 +267,11 @@ ask_filename(struct passwd *pw, const char *prompt)
259
267
char * name = NULL ;
260
268
261
269
if (key_type_name == NULL )
270
+ #ifdef WINDOWS
271
+ name = _PATH_SSH_CLIENT_ID_ECDSA ;
272
+ #else
262
273
name = _PATH_SSH_CLIENT_ID_ED25519 ;
274
+ #endif /* WINDOWS */
263
275
else {
264
276
switch (sshkey_type_from_name (key_type_name )) {
265
277
#ifdef WITH_DSA
You can’t perform that action at this time.
0 commit comments