compat.c (192595) | compat.c (224638) |
---|---|
1/* $OpenBSD: compat.c,v 1.78 2008/09/11 14:22:37 markus Exp $ */ | 1/* $OpenBSD: compat.c,v 1.78 2008/09/11 14:22:37 markus Exp $ */ |
2/* $FreeBSD$ */ |
|
2/* 3 * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 155 unchanged lines hidden (view full) --- 165 }; 166 167 /* process table, return first match */ 168 for (i = 0; check[i].pat; i++) { 169 if (match_pattern_list(version, check[i].pat, 170 strlen(check[i].pat), 0) == 1) { 171 debug("match: %s pat %s", version, check[i].pat); 172 datafellows = check[i].bugs; | 3/* 4 * Copyright (c) 1999, 2000, 2001, 2002 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. --- 155 unchanged lines hidden (view full) --- 166 }; 167 168 /* process table, return first match */ 169 for (i = 0; check[i].pat; i++) { 170 if (match_pattern_list(version, check[i].pat, 171 strlen(check[i].pat), 0) == 1) { 172 debug("match: %s pat %s", version, check[i].pat); 173 datafellows = check[i].bugs; |
174 /* 175 * Check to see if the remote side is OpenSSH and not 176 * HPN. It is utterly strange to check it from the 177 * version string and expose the option that way. 178 */ 179 if (strstr(version,"OpenSSH") != NULL && 180 strstr(version,"hpn") == NULL) { 181 datafellows |= SSH_BUG_LARGEWINDOW; 182 debug("Remote is not HPN-aware"); 183 } |
|
173 return; 174 } 175 } 176 debug("no match: %s", version); 177} 178 179#define SEP "," 180int --- 57 unchanged lines hidden --- | 184 return; 185 } 186 } 187 debug("no match: %s", version); 188} 189 190#define SEP "," 191int --- 57 unchanged lines hidden --- |