]> andersk Git - gssapi-openssh.git/blobdiff - openssh/hostfile.c
The man2html from jbasney on pkilab2 works whereas the standard one doesn't.
[gssapi-openssh.git] / openssh / hostfile.c
index cefff8d627650409b3efcffa1e666b17fadef4e8..eeed920fa797a15f42d5e4eb598486be413c5699 100644 (file)
@@ -36,7 +36,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: hostfile.c,v 1.29 2001/12/18 10:04:21 jakob Exp $");
+RCSID("$OpenBSD: hostfile.c,v 1.28 2001/06/25 08:25:37 markus Exp $");
 
 #include "packet.h"
 #include "match.h"
@@ -49,7 +49,7 @@ RCSID("$OpenBSD: hostfile.c,v 1.29 2001/12/18 10:04:21 jakob Exp $");
  * pointer over the key.  Skips any whitespace at the beginning and at end.
  */
 
-int
+static int
 hostfile_read_key(char **cpp, u_int *bitsp, Key *ret)
 {
        char *cp;
@@ -71,6 +71,17 @@ hostfile_read_key(char **cpp, u_int *bitsp, Key *ret)
        return 1;
 }
 
+int
+auth_rsa_read_key(char **cpp, u_int *bitsp, BIGNUM * e, BIGNUM * n)
+{
+       Key *k = key_new(KEY_RSA1);
+       int ret = hostfile_read_key(cpp, bitsp, k);
+       BN_copy(e, k->rsa->e);
+       BN_copy(n, k->rsa->n);
+       key_free(k);
+       return ret;
+}
+
 static int
 hostfile_check_key(int bits, Key *key, const char *host, const char *filename, int linenum)
 {
This page took 0.031836 seconds and 4 git commands to generate.