summaryrefslogtreecommitdiff
path: root/hostfile.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-12-21 12:47:09 +1100
committerDamien Miller <djm@mindrot.org>2001-12-21 12:47:09 +1100
commit5b2aea949419fc5ca0dd79fdbf07d5af657b0e22 (patch)
treed00d45c1e53c101c1dbff775a343e09b7086abb0 /hostfile.c
parent83c02ef6239a763483b5f2dc7ffdb4b5f713052b (diff)
downloadopenssh-git-5b2aea949419fc5ca0dd79fdbf07d5af657b0e22.tar.gz
- jakob@cvs.openbsd.org 2001/12/18 10:04:21
[auth.h hostfile.c hostfile.h] remove auth_rsa_read_key, make hostfile_ready_key non static; ok markus@
Diffstat (limited to 'hostfile.c')
-rw-r--r--hostfile.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/hostfile.c b/hostfile.c
index eeed920f..cefff8d6 100644
--- a/hostfile.c
+++ b/hostfile.c
@@ -36,7 +36,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: hostfile.c,v 1.28 2001/06/25 08:25:37 markus Exp $");
+RCSID("$OpenBSD: hostfile.c,v 1.29 2001/12/18 10:04:21 jakob Exp $");
#include "packet.h"
#include "match.h"
@@ -49,7 +49,7 @@ RCSID("$OpenBSD: hostfile.c,v 1.28 2001/06/25 08:25:37 markus Exp $");
* pointer over the key. Skips any whitespace at the beginning and at end.
*/
-static int
+int
hostfile_read_key(char **cpp, u_int *bitsp, Key *ret)
{
char *cp;
@@ -71,17 +71,6 @@ 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)
{