Displaying 7 results from an estimated 7 matches for "key_load_public_type".
2004 Aug 05
0
No error when identity file not readable
Hi!
I was trying to start ssh from a scheduled task in Windows 2000.
I got the message "Enter passphrase for key '.ssh/identity':"
Well the passphrase I set was empty, so that should not have happen.
I traced this problem to the method
key_load_public_type(int type, const char *filename, char **commentp)
in authfile.c
If the file cannot be opened (in my case the "System" user was not
authorized to do so)
this method returns NULL without an appropriate message.
The calling method
load_identity_file(char *filename)
in sshconnect2.c doesn n...
2007 Jun 05
9
[Bug 1319] New: ssh-keygen does not properly handle multiple keys
http://bugzilla.mindrot.org/show_bug.cgi?id=1319
Summary: ssh-keygen does not properly handle multiple keys
Product: Portable OpenSSH
Version: 4.5p1
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: ssh-keygen
AssignedTo: bitbucket at mindrot.org
2012 Sep 09
2
Patch for ssh-keygen to allow conversion of public key to openssh format
...*/
Key *
key_load_public(const char *filename, char **commentp)
@@ -799,6 +851,11 @@
Key *pub;
char file[MAXPATHLEN];
+ /* try PEM public */
+ pub = key_load_public_pem(filename, commentp);
+ if (pub != NULL)
+ return pub;
+
/* try rsa1 private key */
pub = key_load_public_type(KEY_RSA1, filename, commentp);
if (pub != NULL)
diff -u openssh-6.1p1/config.status openssh-6.1p1-lano/config.status
--- openssh-6.1p1/config.status 2012-09-07 11:01:15.000000000 +0200
+++ openssh-6.1p1-lano/config.status 2012-09-08 11:59:38.000000000 +0200
@@ -445,7 +445,7 @@
This config.status...
2005 May 19
1
ssh-keygen private keys export - new feature
...ar *filename, char **commentp)
{
FILE *f;
--- authfile.h.orig 2002-06-06 21:57:34.000000000 +0200
+++ authfile.h 2005-05-19 23:03:35.000000000 +0200
@@ -18,6 +18,7 @@
int key_save_private(Key *, const char *, const char *, const char *);
Key *key_load_public(const char *, char **);
Key *key_load_public_type(int, const char *, char **);
+int key_try_load_public(Key *, const char *, char **);
Key *key_load_private(const char *, const char *, char **);
Key *key_load_private_type(int, const char *, const char *, char **);
Key *key_load_private_pem(int, int, const char *, char **);
--- ssh-keygen.c.o...
2003 Nov 27
2
Question about adding another parameter for OpenSSH
...issions: ignore key: %s", filename);
close(fd);
return NULL;
--- authfile.h.orig Thu Nov 27 16:28:31 2003
+++ authfile.h Thu Nov 27 16:28:42 2003
@@ -18,8 +18,8 @@
int key_save_private(Key *, const char *, const char *, const char *);
Key *key_load_public(const char *, char **);
Key *key_load_public_type(int, const char *, char **);
-Key *key_load_private(const char *, const char *, char **);
-Key *key_load_private_type(int, const char *, const char *, char **);
+Key *key_load_private(const char *, const char *, char **, int);
+Key *key_load_private_type(int, const char *, const char *, char **, in...
2006 Nov 15
11
OpenSSH Certkey (PKI)
...> 0) {
+ if (key->cert[r - 1] == '\n')
+ key->cert[r - 1] = 0;
+ else
+ key->cert[r] = 0;
+ } else {
+ xfree(key->cert);
+ key->cert = NULL;
+ }
+ }
+ close(fd);
+ }
+}
+
/* load public key from private-key file, works only for SSH v1 */
Key *
key_load_public_type(int type, const char *filename, char **commentp)
@@ -315,6 +352,8 @@
return NULL;
pub = key_load_public_rsa1(fd, filename, commentp);
close(fd);
+ if (pub != NULL)
+ key_try_load_cert(pub, filename);
return pub;
}
return NULL;
@@ -604,6 +643,8 @@
/* closes fd */
prv = key_...
2006 Apr 21
4
Solaris 8 x86 rsa pubkey auth problem
Hello,
I got some weird problem with public key authentication using rsa key pair.
Let me first of all explain my setup.
1) I got two Solaris 8 x86 boxes
uname -a
SunOS 5.8 Generic_117351-24 i86pc i386 i86pc
<kdc: 192.168.10.11> <---> <module: 192.168.10.10>
2) They're running absolutely identical openssh installations
I'm using pkgsrc, so I've builded all