diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | compat.c | 11 | ||||
-rw-r--r-- | compat.h | 3 | ||||
-rw-r--r-- | packet.c | 5 |
4 files changed, 18 insertions, 7 deletions
@@ -1,3 +1,9 @@ | |||
1 | 20001207 | ||
2 | - (bal) OpenSSH CVS updates: | ||
3 | - markus@cvs.openbsd.org 2000/12/06 22:58:14 | ||
4 | [compat.c compat.h packet.c] | ||
5 | disable debug messages for ssh.com/f-secure 2.0.1x, 2.1.0 | ||
6 | |||
1 | 20001206 | 7 | 20001206 |
2 | - (bal) OpenSSH CVS updates: | 8 | - (bal) OpenSSH CVS updates: |
3 | - markus@cvs.openbsd.org 2000/12/05 20:34:09 | 9 | - markus@cvs.openbsd.org 2000/12/05 20:34:09 |
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: compat.c,v 1.30 2000/12/03 11:29:04 markus Exp $"); | 26 | RCSID("$OpenBSD: compat.c,v 1.31 2000/12/06 22:58:14 markus Exp $"); |
27 | 27 | ||
28 | #include "ssh.h" | 28 | #include "ssh.h" |
29 | #include "packet.h" | 29 | #include "packet.h" |
@@ -65,13 +65,14 @@ compat_datafellows(const char *version) | |||
65 | { "^OpenSSH[-_]2\\.[012]", SSH_OLD_SESSIONID }, | 65 | { "^OpenSSH[-_]2\\.[012]", SSH_OLD_SESSIONID }, |
66 | { "MindTerm", 0 }, | 66 | { "MindTerm", 0 }, |
67 | { "^2\\.1\\.0", SSH_BUG_SIGBLOB|SSH_BUG_HMAC| | 67 | { "^2\\.1\\.0", SSH_BUG_SIGBLOB|SSH_BUG_HMAC| |
68 | SSH_OLD_SESSIONID }, | 68 | SSH_OLD_SESSIONID|SSH_BUG_DEBUG }, |
69 | { "^2\\.0\\.1[3-9]", SSH_BUG_SIGBLOB|SSH_BUG_HMAC| | 69 | { "^2\\.0\\.1[3-9]", SSH_BUG_SIGBLOB|SSH_BUG_HMAC| |
70 | SSH_OLD_SESSIONID| | 70 | SSH_OLD_SESSIONID|SSH_BUG_DEBUG| |
71 | SSH_BUG_PKSERVICE|SSH_BUG_X11FWD }, | 71 | SSH_BUG_PKSERVICE|SSH_BUG_X11FWD }, |
72 | { "^2\\.0\\.", SSH_BUG_SIGBLOB|SSH_BUG_HMAC| | 72 | { "^2\\.0\\.", SSH_BUG_SIGBLOB|SSH_BUG_HMAC| |
73 | SSH_OLD_SESSIONID|SSH_BUG_PKAUTH| | 73 | SSH_OLD_SESSIONID|SSH_BUG_DEBUG| |
74 | SSH_BUG_PKSERVICE|SSH_BUG_X11FWD }, | 74 | SSH_BUG_PKSERVICE|SSH_BUG_X11FWD| |
75 | SSH_BUG_PKAUTH }, | ||
75 | { "^2\\.[23]\\.0", SSH_BUG_HMAC}, | 76 | { "^2\\.[23]\\.0", SSH_BUG_HMAC}, |
76 | { "^2\\.[2-9]\\.", 0 }, | 77 | { "^2\\.[2-9]\\.", 0 }, |
77 | { "^2\\.4$", SSH_OLD_SESSIONID}, /* Van Dyke */ | 78 | { "^2\\.4$", SSH_OLD_SESSIONID}, /* Van Dyke */ |
@@ -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 | /* RCSID("$OpenBSD: compat.h,v 1.12 2000/12/03 11:15:03 markus Exp $"); */ | 24 | /* RCSID("$OpenBSD: compat.h,v 1.13 2000/12/06 22:58:15 markus Exp $"); */ |
25 | 25 | ||
26 | #ifndef COMPAT_H | 26 | #ifndef COMPAT_H |
27 | #define COMPAT_H | 27 | #define COMPAT_H |
@@ -37,6 +37,7 @@ | |||
37 | #define SSH_BUG_X11FWD 0x08 | 37 | #define SSH_BUG_X11FWD 0x08 |
38 | #define SSH_OLD_SESSIONID 0x10 | 38 | #define SSH_OLD_SESSIONID 0x10 |
39 | #define SSH_BUG_PKAUTH 0x20 | 39 | #define SSH_BUG_PKAUTH 0x20 |
40 | #define SSH_BUG_DEBUG 0x40 | ||
40 | 41 | ||
41 | void enable_compat13(void); | 42 | void enable_compat13(void); |
42 | void enable_compat20(void); | 43 | void enable_compat20(void); |
@@ -37,7 +37,7 @@ | |||
37 | */ | 37 | */ |
38 | 38 | ||
39 | #include "includes.h" | 39 | #include "includes.h" |
40 | RCSID("$OpenBSD: packet.c,v 1.38 2000/10/12 14:21:12 markus Exp $"); | 40 | RCSID("$OpenBSD: packet.c,v 1.39 2000/12/06 22:58:15 markus Exp $"); |
41 | 41 | ||
42 | #include "xmalloc.h" | 42 | #include "xmalloc.h" |
43 | #include "buffer.h" | 43 | #include "buffer.h" |
@@ -1101,6 +1101,9 @@ packet_send_debug(const char *fmt,...) | |||
1101 | char buf[1024]; | 1101 | char buf[1024]; |
1102 | va_list args; | 1102 | va_list args; |
1103 | 1103 | ||
1104 | if (compat20 && (datafellows & SSH_BUG_DEBUG)) | ||
1105 | return; | ||
1106 | |||
1104 | va_start(args, fmt); | 1107 | va_start(args, fmt); |
1105 | vsnprintf(buf, sizeof(buf), fmt, args); | 1108 | vsnprintf(buf, sizeof(buf), fmt, args); |
1106 | va_end(args); | 1109 | va_end(args); |