Mercurial > 510Connectbot
annotate src/ch/ethz/ssh2/compression/ZlibOpenSSH.java @ 352:2bc6805cbc91
update jsocks to 2011-03-19
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 01 Aug 2014 11:32:33 -0700 |
parents | 97da8c5fb40a |
children |
rev | line source |
---|---|
326
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
1 /* |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
2 * ConnectBot: simple, powerful, open-source SSH client for Android |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
3 * Copyright 2007 Kenny Root, Jeffrey Sharkey |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
4 * |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
5 * Licensed under the Apache License, Version 2.0 (the "License"); |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
6 * you may not use this file except in compliance with the License. |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
7 * You may obtain a copy of the License at |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
8 * |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
9 * http://www.apache.org/licenses/LICENSE-2.0 |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
10 * |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
11 * Unless required by applicable law or agreed to in writing, software |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
12 * distributed under the License is distributed on an "AS IS" BASIS, |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
14 * See the License for the specific language governing permissions and |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
15 * limitations under the License. |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
16 */ |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
17 |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
18 package ch.ethz.ssh2.compression; |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
19 |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
20 /** |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
21 * Defines how zlib@openssh.org compression works. |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
22 * See |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
23 * http://www.openssh.org/txt/draft-miller-secsh-compression-delayed-00.txt |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
24 * compression is disabled until userauth has occurred. |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
25 * |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
26 * @author Matt Johnston |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
27 * |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
28 */ |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
29 public class ZlibOpenSSH extends Zlib { |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
30 |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
31 public boolean canCompressPreauth() { |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
32 return false; |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
33 } |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
34 |
97da8c5fb40a
pickup compression from trilead
Carl Byington <carl@five-ten-sg.com>
parents:
diff
changeset
|
35 } |