compat.c (69591) | compat.c (74500) |
---|---|
1/* 2 * Copyright (c) 1999,2000 Markus Friedl. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 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. 23 */ 24 25#include "includes.h" | 1/* 2 * Copyright (c) 1999,2000 Markus Friedl. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 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. 23 */ 24 25#include "includes.h" |
26RCSID("$FreeBSD: head/crypto/openssh/compat.c 69591 2000-12-05 02:55:12Z green $"); | 26RCSID("$FreeBSD: head/crypto/openssh/compat.c 74500 2001-03-20 02:06:40Z green $"); |
27RCSID("$OpenBSD: compat.c,v 1.27 2000/10/31 09:31:58 markus Exp $"); 28 29#include "ssh.h" 30#include "packet.h" 31#include "xmalloc.h" 32#include "compat.h" 33#include <regex.h> 34 --- 32 unchanged lines hidden (view full) --- 67 { "^2\\.0\\.", SSH_BUG_SIGBLOB|SSH_BUG_HMAC| 68 SSH_OLD_SESSIONID| 69 SSH_BUG_PUBKEYAUTH|SSH_BUG_X11FWD }, 70 { "^2\\.[23]\\.0 ", SSH_BUG_HMAC}, 71 { "^2\\.[2-9]\\.", 0 }, 72 { "^2\\.4$", SSH_OLD_SESSIONID}, /* Van Dyke */ 73 { "^3\\.0 SecureCRT", SSH_OLD_SESSIONID}, 74 { "^1\\.7 SecureFX", SSH_OLD_SESSIONID}, | 27RCSID("$OpenBSD: compat.c,v 1.27 2000/10/31 09:31:58 markus Exp $"); 28 29#include "ssh.h" 30#include "packet.h" 31#include "xmalloc.h" 32#include "compat.h" 33#include <regex.h> 34 --- 32 unchanged lines hidden (view full) --- 67 { "^2\\.0\\.", SSH_BUG_SIGBLOB|SSH_BUG_HMAC| 68 SSH_OLD_SESSIONID| 69 SSH_BUG_PUBKEYAUTH|SSH_BUG_X11FWD }, 70 { "^2\\.[23]\\.0 ", SSH_BUG_HMAC}, 71 { "^2\\.[2-9]\\.", 0 }, 72 { "^2\\.4$", SSH_OLD_SESSIONID}, /* Van Dyke */ 73 { "^3\\.0 SecureCRT", SSH_OLD_SESSIONID}, 74 { "^1\\.7 SecureFX", SSH_OLD_SESSIONID}, |
75 { "^1\\.2\\.1[89]", SSH_BUG_IGNOREMSG}, 76 { "^1\\.2\\.2[012]", SSH_BUG_IGNOREMSG}, |
|
75 { "^2\\.", SSH_BUG_HMAC}, /* XXX fallback */ 76 { NULL, 0 } 77 }; 78 /* process table, return first match */ 79 for (i = 0; check[i].pat; i++) { 80 ret = regcomp(®, check[i].pat, REG_EXTENDED|REG_NOSUB); 81 if (ret != 0) { 82 regerror(ret, ®, ebuf, sizeof(ebuf)); --- 43 unchanged lines hidden --- | 77 { "^2\\.", SSH_BUG_HMAC}, /* XXX fallback */ 78 { NULL, 0 } 79 }; 80 /* process table, return first match */ 81 for (i = 0; check[i].pat; i++) { 82 ret = regcomp(®, check[i].pat, REG_EXTENDED|REG_NOSUB); 83 if (ret != 0) { 84 regerror(ret, ®, ebuf, sizeof(ebuf)); --- 43 unchanged lines hidden --- |