diff options
author | Damien Miller <djm@mindrot.org> | 2003-02-24 12:01:40 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-02-24 12:01:40 +1100 |
commit | e8a240f966c567304d810ba0234bca326e4abecb (patch) | |
tree | 3de903c87fc6cdcae4a631f1c7670cc5c8a7b643 | |
parent | 7b406276c45abede9a3e6d5b979b37b8d50287f7 (diff) |
- markus@cvs.openbsd.org 2003/02/12 09:33:04
[key.c key.h ssh-dss.c ssh-rsa.c]
merge ssh-dss.h ssh-rsa.h into key.h; ok deraadt@
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | key.c | 4 | ||||
-rw-r--r-- | key.h | 7 | ||||
-rw-r--r-- | ssh-dss.c | 3 | ||||
-rw-r--r-- | ssh-dss.h | 32 | ||||
-rw-r--r-- | ssh-rsa.c | 3 | ||||
-rw-r--r-- | ssh-rsa.h | 32 |
7 files changed, 13 insertions, 73 deletions
@@ -57,6 +57,9 @@ | |||
57 | - markus@cvs.openbsd.org 2003/02/10 11:51:47 | 57 | - markus@cvs.openbsd.org 2003/02/10 11:51:47 |
58 | [ssh-add.1] | 58 | [ssh-add.1] |
59 | xref sshd_config.5 (not sshd.8); mark@summersault.com; bug #490 | 59 | xref sshd_config.5 (not sshd.8); mark@summersault.com; bug #490 |
60 | - markus@cvs.openbsd.org 2003/02/12 09:33:04 | ||
61 | [key.c key.h ssh-dss.c ssh-rsa.c] | ||
62 | merge ssh-dss.h ssh-rsa.h into key.h; ok deraadt@ | ||
60 | 63 | ||
61 | 20030211 | 64 | 20030211 |
62 | - (djm) Cygwin needs libcrypt too. Patch from vinschen@redhat.com | 65 | - (djm) Cygwin needs libcrypt too. Patch from vinschen@redhat.com |
@@ -1157,4 +1160,4 @@ | |||
1157 | save auth method before monitor_reset_key_state(); bugzilla bug #284; | 1160 | save auth method before monitor_reset_key_state(); bugzilla bug #284; |
1158 | ok provos@ | 1161 | ok provos@ |
1159 | 1162 | ||
1160 | $Id: ChangeLog,v 1.2609 2003/02/24 01:00:16 djm Exp $ | 1163 | $Id: ChangeLog,v 1.2610 2003/02/24 01:01:40 djm Exp $ |
@@ -32,15 +32,13 @@ | |||
32 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 32 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
33 | */ | 33 | */ |
34 | #include "includes.h" | 34 | #include "includes.h" |
35 | RCSID("$OpenBSD: key.c,v 1.50 2003/02/04 09:32:08 markus Exp $"); | 35 | RCSID("$OpenBSD: key.c,v 1.51 2003/02/12 09:33:04 markus Exp $"); |
36 | 36 | ||
37 | #include <openssl/evp.h> | 37 | #include <openssl/evp.h> |
38 | 38 | ||
39 | #include "xmalloc.h" | 39 | #include "xmalloc.h" |
40 | #include "key.h" | 40 | #include "key.h" |
41 | #include "rsa.h" | 41 | #include "rsa.h" |
42 | #include "ssh-dss.h" | ||
43 | #include "ssh-rsa.h" | ||
44 | #include "uuencode.h" | 42 | #include "uuencode.h" |
45 | #include "buffer.h" | 43 | #include "buffer.h" |
46 | #include "bufaux.h" | 44 | #include "bufaux.h" |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: key.h,v 1.19 2002/03/18 17:23:31 markus Exp $ */ | 1 | /* $OpenBSD: key.h,v 1.20 2003/02/12 09:33:04 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. |
@@ -78,4 +78,9 @@ int key_names_valid2(const char *); | |||
78 | int key_sign(Key *, u_char **, u_int *, u_char *, u_int); | 78 | int key_sign(Key *, u_char **, u_int *, u_char *, u_int); |
79 | int key_verify(Key *, u_char *, u_int, u_char *, u_int); | 79 | int key_verify(Key *, u_char *, u_int, u_char *, u_int); |
80 | 80 | ||
81 | int ssh_dss_sign(Key *, u_char **, u_int *, u_char *, u_int); | ||
82 | int ssh_dss_verify(Key *, u_char *, u_int, u_char *, u_int); | ||
83 | int ssh_rsa_sign(Key *, u_char **, u_int *, u_char *, u_int); | ||
84 | int ssh_rsa_verify(Key *, u_char *, u_int, u_char *, u_int); | ||
85 | |||
81 | #endif | 86 | #endif |
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: ssh-dss.c,v 1.17 2002/07/04 10:41:47 markus Exp $"); | 26 | RCSID("$OpenBSD: ssh-dss.c,v 1.18 2003/02/12 09:33:04 markus Exp $"); |
27 | 27 | ||
28 | #include <openssl/bn.h> | 28 | #include <openssl/bn.h> |
29 | #include <openssl/evp.h> | 29 | #include <openssl/evp.h> |
@@ -34,7 +34,6 @@ RCSID("$OpenBSD: ssh-dss.c,v 1.17 2002/07/04 10:41:47 markus Exp $"); | |||
34 | #include "compat.h" | 34 | #include "compat.h" |
35 | #include "log.h" | 35 | #include "log.h" |
36 | #include "key.h" | 36 | #include "key.h" |
37 | #include "ssh-dss.h" | ||
38 | 37 | ||
39 | #define INTBLOB_LEN 20 | 38 | #define INTBLOB_LEN 20 |
40 | #define SIGBLOB_LEN (2*INTBLOB_LEN) | 39 | #define SIGBLOB_LEN (2*INTBLOB_LEN) |
diff --git a/ssh-dss.h b/ssh-dss.h deleted file mode 100644 index 94961b1e8..000000000 --- a/ssh-dss.h +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | /* $OpenBSD: ssh-dss.h,v 1.6 2002/02/24 19:14:59 markus Exp $ */ | ||
2 | |||
3 | /* | ||
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | ||
5 | * | ||
6 | * Redistribution and use in source and binary forms, with or without | ||
7 | * modification, are permitted provided that the following conditions | ||
8 | * are met: | ||
9 | * 1. Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
12 | * notice, this list of conditions and the following disclaimer in the | ||
13 | * documentation and/or other materials provided with the distribution. | ||
14 | * | ||
15 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
16 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
17 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
18 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
19 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
20 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
21 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
22 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
24 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
25 | */ | ||
26 | #ifndef DSA_H | ||
27 | #define DSA_H | ||
28 | |||
29 | int ssh_dss_sign(Key *, u_char **, u_int *, u_char *, u_int); | ||
30 | int ssh_dss_verify(Key *, u_char *, u_int, u_char *, u_int); | ||
31 | |||
32 | #endif | ||
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: ssh-rsa.c,v 1.27 2002/11/21 23:03:51 deraadt Exp $"); | 26 | RCSID("$OpenBSD: ssh-rsa.c,v 1.28 2003/02/12 09:33:04 markus Exp $"); |
27 | 27 | ||
28 | #include <openssl/evp.h> | 28 | #include <openssl/evp.h> |
29 | #include <openssl/err.h> | 29 | #include <openssl/err.h> |
@@ -33,7 +33,6 @@ RCSID("$OpenBSD: ssh-rsa.c,v 1.27 2002/11/21 23:03:51 deraadt Exp $"); | |||
33 | #include "buffer.h" | 33 | #include "buffer.h" |
34 | #include "bufaux.h" | 34 | #include "bufaux.h" |
35 | #include "key.h" | 35 | #include "key.h" |
36 | #include "ssh-rsa.h" | ||
37 | #include "compat.h" | 36 | #include "compat.h" |
38 | #include "ssh.h" | 37 | #include "ssh.h" |
39 | 38 | ||
diff --git a/ssh-rsa.h b/ssh-rsa.h deleted file mode 100644 index 7177a3f92..000000000 --- a/ssh-rsa.h +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | /* $OpenBSD: ssh-rsa.h,v 1.6 2002/02/24 19:14:59 markus Exp $ */ | ||
2 | |||
3 | /* | ||
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | ||
5 | * | ||
6 | * Redistribution and use in source and binary forms, with or without | ||
7 | * modification, are permitted provided that the following conditions | ||
8 | * are met: | ||
9 | * 1. Redistributions of source code must retain the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer. | ||
11 | * 2. Redistributions in binary form must reproduce the above copyright | ||
12 | * notice, this list of conditions and the following disclaimer in the | ||
13 | * documentation and/or other materials provided with the distribution. | ||
14 | * | ||
15 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
16 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
17 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
18 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
19 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
20 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
21 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
22 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
23 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
24 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
25 | */ | ||
26 | #ifndef SSH_RSA_H | ||
27 | #define SSH_RSA_H | ||
28 | |||
29 | int ssh_rsa_sign(Key *, u_char **, u_int *, u_char *, u_int); | ||
30 | int ssh_rsa_verify(Key *, u_char *, u_int, u_char *, u_int); | ||
31 | |||
32 | #endif | ||