search for: key_type_nam

Displaying 4 results from an estimated 4 matches for "key_type_nam".

Did you mean: key_type_name
2001 Jan 29
1
I: [PATCH] ssh-keygen
Greetings! According to documentation, "-x" and "-X" options of ssh-keygen designed to work only with DSA keys. It means that key_type_name variable have to be initialized to "dsa" if any of these options were specified. Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv at fandra.org Software Engineer PGP pubkey http://www.fandra.org/users/ldv/p...
2023 Sep 03
1
[patch] ssh-keygen(1): generate Ed25519 keys when invoked without arguments
...RCS file: /cvs/src/usr.bin/ssh/ssh-keygen.c,v retrieving revision 1.470 diff -u -p -r1.470 ssh-keygen.c --- ssh-keygen.c 17 Jul 2023 04:01:10 -0000 1.470 +++ ssh-keygen.c 3 Sep 2023 21:29:12 -0000 @@ -61,11 +61,7 @@ #include "ssh-pkcs11.h" #endif -#ifdef WITH_OPENSSL -# define DEFAULT_KEY_TYPE_NAME "rsa" -#else -# define DEFAULT_KEY_TYPE_NAME "ed25519" -#endif +#define DEFAULT_KEY_TYPE_NAME "ed25519" /* * Default number of bits in the RSA, DSA and ECDSA keys. These value can be @@ -252,7 +248,7 @@ ask_filename(struct passwd *pw, const ch char *name = NUL...
2012 Sep 09
2
Patch for ssh-keygen to allow conversion of public key to openssh format
...-6.1p1-lano/ssh-keygen.c --- openssh-6.1p1/ssh-keygen.c 2012-07-31 04:20:44.000000000 +0200 +++ openssh-6.1p1-lano/ssh-keygen.c 2012-09-07 09:26:01.000000000 +0200 @@ -141,6 +141,7 @@ } convert_format = FMT_RFC4716; int print_public = 0; int print_generic = 0; +int read_public_only = 0; char *key_type_name = NULL; @@ -240,6 +241,13 @@ char *pass; Key *prv; + if (read_public_only) { + Key *pub; + + pub = key_load_public(filename, NULL); + return pub; + } + prv = key_load_private(filename, "", NULL); if (prv == NULL) { if (i...
2006 Nov 15
11
OpenSSH Certkey (PKI)
...==== RCS file: /cvs/src/usr.bin/ssh/ssh-keygen.c,v retrieving revision 1.156 diff -u -r1.156 ssh-keygen.c --- ssh-keygen.c 14 Nov 2006 19:41:04 -0000 1.156 +++ ssh-keygen.c 15 Nov 2006 14:14:37 -0000 @@ -94,6 +94,8 @@ int print_public = 0; int print_generic = 0; +int sign_host_key = 0; + char *key_type_name = NULL; /* argv0 */ @@ -494,6 +496,142 @@ #endif /* SMARTCARD */ static void +ask_string(const char *question, char *buf, int len) +{ + printf("%s", question); + if (fgets(buf, len, stdin) == NULL) + exit(1); + buf[len - 1] = 0; + len = strlen(buf); + if (len > 0 && bu...