summaryrefslogtreecommitdiff
path: root/hostfile.c
diff options
context:
space:
mode:
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 eeed920fa..cefff8d62 100644
--- a/hostfile.c
+++ b/hostfile.c
@@ -36,7 +36,7 @@
36 */ 36 */
37 37
38#include "includes.h" 38#include "includes.h"
39RCSID("$OpenBSD: hostfile.c,v 1.28 2001/06/25 08:25:37 markus Exp $"); 39RCSID("$OpenBSD: hostfile.c,v 1.29 2001/12/18 10:04:21 jakob Exp $");
40 40
41#include "packet.h" 41#include "packet.h"
42#include "match.h" 42#include "match.h"
@@ -49,7 +49,7 @@ RCSID("$OpenBSD: hostfile.c,v 1.28 2001/06/25 08:25:37 markus Exp $");
49 * pointer over the key. Skips any whitespace at the beginning and at end. 49 * pointer over the key. Skips any whitespace at the beginning and at end.
50 */ 50 */
51 51
52static int 52int
53hostfile_read_key(char **cpp, u_int *bitsp, Key *ret) 53hostfile_read_key(char **cpp, u_int *bitsp, Key *ret)
54{ 54{
55 char *cp; 55 char *cp;
@@ -71,17 +71,6 @@ hostfile_read_key(char **cpp, u_int *bitsp, Key *ret)
71 return 1; 71 return 1;
72} 72}
73 73
74int
75auth_rsa_read_key(char **cpp, u_int *bitsp, BIGNUM * e, BIGNUM * n)
76{
77 Key *k = key_new(KEY_RSA1);
78 int ret = hostfile_read_key(cpp, bitsp, k);
79 BN_copy(e, k->rsa->e);
80 BN_copy(n, k->rsa->n);
81 key_free(k);
82 return ret;
83}
84
85static int 74static int
86hostfile_check_key(int bits, Key *key, const char *host, const char *filename, int linenum) 75hostfile_check_key(int bits, Key *key, const char *host, const char *filename, int linenum)
87{ 76{