Displaying 1 result from an estimated 1 matches for "save_typ".
Did you mean:
save_type
2002 Jan 31
7
x509 for hostkeys.
...=========
RCS file: /home/markus/cvs/ssh/authfile.c,v
retrieving revision 1.45
diff -u -r1.45 authfile.c
--- authfile.c 29 Dec 2001 21:56:01 -0000 1.45
+++ authfile.c 31 Jan 2002 10:50:53 -0000
@@ -460,6 +460,24 @@
error("PEM_read_PrivateKey: mismatch or "
"unknown EVP_PKEY save_type %d", pk->save_type);
}
+ if (prv != NULL) {
+ /* try to get a certificate if we have the private key */
+ prv->x509 = PEM_read_X509(fp, NULL, NULL, (char *)passphrase);
+ if (prv->x509 != NULL) {
+ debug("PEM_read_X509");
+#ifdef DEBUG_X509
+ X509_print_fp(stdout,...