Displaying 1 result from an estimated 1 matches for "key_load_public_pem".
2012 Sep 09
2
Patch for ssh-keygen to allow conversion of public key to openssh format
...Regards,
/Lars
-------------- next part --------------
diff -u openssh-6.1p1/authfile.c openssh-6.1p1-lano/authfile.c
--- openssh-6.1p1/authfile.c 2012-02-10 22:19:02.000000000 +0100
+++ openssh-6.1p1-lano/authfile.c 2012-09-08 11:59:08.000000000 +0200
@@ -792,6 +792,58 @@
return 0;
}
+Key *
+key_load_public_pem(char *filename, char **commentp)
+{
+ FILE *fp = NULL;
+ EVP_PKEY *pk = NULL;
+ X509 *x = NULL;
+ Key *pub = NULL;
+ char *name = "<no key>";
+
+ fp = fopen(filename, "r");
+ if (fp == NULL) {
+ error("fopen of %s failed: %s", filename, strerror(errno));
+ retu...