diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | auth.h | 3 | ||||
-rw-r--r-- | hostfile.c | 15 | ||||
-rw-r--r-- | hostfile.h | 4 |
4 files changed, 9 insertions, 18 deletions
@@ -18,6 +18,9 @@ | |||
18 | - markus@cvs.openbsd.org 2001/12/10 20:34:31 | 18 | - markus@cvs.openbsd.org 2001/12/10 20:34:31 |
19 | [ssh-keyscan.c] | 19 | [ssh-keyscan.c] |
20 | check that server supports v1 for -t rsa1, report from wirth@dfki.de | 20 | check that server supports v1 for -t rsa1, report from wirth@dfki.de |
21 | - jakob@cvs.openbsd.org 2001/12/18 10:04:21 | ||
22 | [auth.h hostfile.c hostfile.h] | ||
23 | remove auth_rsa_read_key, make hostfile_ready_key non static; ok markus@ | ||
21 | 24 | ||
22 | 20011219 | 25 | 20011219 |
23 | - (stevesk) OpenBSD CVS sync X11 localhost display | 26 | - (stevesk) OpenBSD CVS sync X11 localhost display |
@@ -7046,4 +7049,4 @@ | |||
7046 | - Wrote replacements for strlcpy and mkdtemp | 7049 | - Wrote replacements for strlcpy and mkdtemp |
7047 | - Released 1.0pre1 | 7050 | - Released 1.0pre1 |
7048 | 7051 | ||
7049 | $Id: ChangeLog,v 1.1697 2001/12/21 01:45:43 djm Exp $ | 7052 | $Id: ChangeLog,v 1.1698 2001/12/21 01:47:09 djm Exp $ |
@@ -21,7 +21,7 @@ | |||
21 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 21 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | * | 23 | * |
24 | * $OpenBSD: auth.h,v 1.23 2001/12/09 18:45:56 markus Exp $ | 24 | * $OpenBSD: auth.h,v 1.24 2001/12/18 10:04:21 jakob Exp $ |
25 | */ | 25 | */ |
26 | #ifndef AUTH_H | 26 | #ifndef AUTH_H |
27 | #define AUTH_H | 27 | #define AUTH_H |
@@ -94,7 +94,6 @@ auth_rhosts2(struct passwd *, const char *, const char *, const char *); | |||
94 | int auth_rhosts_rsa(struct passwd *, const char *, RSA *); | 94 | int auth_rhosts_rsa(struct passwd *, const char *, RSA *); |
95 | int auth_password(Authctxt *, const char *); | 95 | int auth_password(Authctxt *, const char *); |
96 | int auth_rsa(struct passwd *, BIGNUM *); | 96 | int auth_rsa(struct passwd *, BIGNUM *); |
97 | int auth_rsa_read_key(char **, u_int *, BIGNUM *, BIGNUM *); | ||
98 | int auth_rsa_challenge_dialog(RSA *); | 97 | int auth_rsa_challenge_dialog(RSA *); |
99 | 98 | ||
100 | #ifdef KRB4 | 99 | #ifdef KRB4 |
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" |
39 | RCSID("$OpenBSD: hostfile.c,v 1.28 2001/06/25 08:25:37 markus Exp $"); | 39 | RCSID("$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 | ||
52 | static int | 52 | int |
53 | hostfile_read_key(char **cpp, u_int *bitsp, Key *ret) | 53 | hostfile_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 | ||
74 | int | ||
75 | auth_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 | |||
85 | static int | 74 | static int |
86 | hostfile_check_key(int bits, Key *key, const char *host, const char *filename, int linenum) | 75 | hostfile_check_key(int bits, Key *key, const char *host, const char *filename, int linenum) |
87 | { | 76 | { |
diff --git a/hostfile.h b/hostfile.h index 05ef69174..0244fdb53 100644 --- a/hostfile.h +++ b/hostfile.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: hostfile.h,v 1.9 2001/06/26 17:27:23 markus Exp $ */ | 1 | /* $OpenBSD: hostfile.h,v 1.10 2001/12/18 10:04:21 jakob Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -18,9 +18,9 @@ typedef enum { | |||
18 | HOST_OK, HOST_NEW, HOST_CHANGED | 18 | HOST_OK, HOST_NEW, HOST_CHANGED |
19 | } HostStatus; | 19 | } HostStatus; |
20 | 20 | ||
21 | int hostfile_read_key(char **, u_int *, Key *); | ||
21 | HostStatus | 22 | HostStatus |
22 | check_host_in_hostfile(const char *, const char *, Key *, Key *, int *); | 23 | check_host_in_hostfile(const char *, const char *, Key *, Key *, int *); |
23 | int add_host_to_hostfile(const char *, const char *, Key *); | 24 | int add_host_to_hostfile(const char *, const char *, Key *); |
24 | int auth_rsa_read_key(char **, u_int *, BIGNUM *, BIGNUM *); | ||
25 | 25 | ||
26 | #endif | 26 | #endif |