Develop and Download Open Source Software

Browse Subversion Repository

Log of /trunk/ttssh2/ttxssh/pkt.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 10962 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 8 06:17:15 2023 UTC (5 months ago) by zmatsuo
File length: 11696 byte(s)
Diff to previous 10960 , to selected 6969
不要な受信処理停止を削除、削除関数のプロトタイプ削除、コメント修正

- r10960の修正

Revision 10960 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 7 17:40:35 2023 UTC (5 months ago) by zmatsuo
File length: 11888 byte(s)
Diff to previous 10959 , to selected 6969
SCP受信時、受信したデータが随時書き込まれない場合があるので修正

- SCP 受信したデータが随時書き込まれない (GitHub #15)

Ticket #34056

Revision 10959 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 7 17:40:26 2023 UTC (5 months ago) by zmatsuo
File length: 11888 byte(s)
Diff to previous 10618 , to selected 6969
Merge remote-tracking branch 'remotes/origin/scp_flowctrl'

- ビルドが通る程度に修正、テストはしていない

Revision 10618 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 3 15:15:16 2023 UTC (12 months ago) by zmatsuo
File length: 11696 byte(s)
Diff to previous 9255 , to selected 6969
ttxsshで tttset.UIMsg[] ではなく TInstVar.UIMsg[] を使用するよう修正

- lng(i18n)用文字列領域
- ttxssh 以外は tttset.UIMsg[] を使用しなくなった
  - Unicode(wchar_t)版動的な文字列取得に切り替えた
  - tttset.UIMsg[] は ANSI(char) 文字列
- プラグイン用ワーク内に TInstVar.UIMsg[] を新設した

Revision 9255 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 19 14:11:26 2021 UTC (2 years, 9 months ago) by nmaya
File length: 11703 byte(s)
Diff to previous 9048 , to selected 6969
SSH2 暗号化方式 chacha20-poly1305@openssh.com をサポート

merge from branches/ssh_chacha20poly1305
r9209, r9210, r9211, r9212, r9217, r9229, r9248, r9249, r9250, r9251, r9252, r9253

Revision 9048 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 16 12:24:13 2020 UTC (3 years, 2 months ago) by nmaya
File length: 9762 byte(s)
Diff to previous 7109 , to selected 6969
ソースファイルの著作権表記の "最後の発行の年" を削除

ticket #40996

Revision 7109 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 28 07:49:43 2018 UTC (5 years, 9 months ago) by doda
File length: 9766 byte(s)
Diff to previous 6985 , to selected 6969
typo fix

Revision 6985 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 25 15:26:45 2017 UTC (6 years, 3 months ago) by doda
File length: 9766 byte(s)
Diff to previous 6983 , to selected 6969
SSH2 暗号化アルゴリズムとして aes{128,256}-gcm@openssh.com に対応した。

Revision 6983 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 25 15:26:35 2017 UTC (6 years, 3 months ago) by doda
File length: 9226 byte(s)
Diff to previous 6982 , to selected 6969
padding 長の取得関連を修正

SSH2 では PKT_recv()@pkt.c の時点では padding 長のデータが復号されて
いない場合があるため、ここでは padding 長を取得せずに、実際に必要に
なる prep_packet_ssh2()@ssh.c で取得するように変更。

Revision 6982 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 25 15:26:31 2017 UTC (6 years, 3 months ago) by doda
File length: 9203 byte(s)
Diff to previous 6981 , to selected 6969
負にならない(なるべきでない)変数、関数を unsigned int に変更

Revision 6981 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 25 15:26:26 2017 UTC (6 years, 3 months ago) by doda
File length: 9218 byte(s)
Diff to previous 6972 , to selected 6969
SSH1/2 専用のバージョンと判り易いように関数名を変更

Revision 6972 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 7 22:26:20 2017 UTC (6 years, 4 months ago) by doda
File length: 9218 byte(s)
Diff to previous 6969
EtM 絡みのコード整理。

・コメント追加
・読みやすいようにコードを修正

Revision 6969 - (view) (download) (as text) (annotate) - [selected]
Modified Thu Nov 2 11:37:41 2017 UTC (6 years, 4 months ago) by doda
File length: 8751 byte(s)
Diff to previous 6968
OpenSSH の EtM 方式の MAC に対応。#31495

以下の MAC 方式に対応。
  ・hmac-sha2-256-etm@openssh.comhmac-sha2-512-etm@openssh.comhmac-sha1-etm@openssh.comhmac-md5-etm@openssh.com (*1)
  ・hmac-ripemd160-etm@openssh.com (*1, *2)
  ・hmac-sha1-96-etm@openssh.com (*1, *3)
  ・hmac-md5-96-etm@openssh.com (*1, *3)

検討事項:
  ・*1 の方式は現在のOpenSSHではデフォルトでは使わないようになっているが、
    サポートする価値はある?  (サーバ: 6.7以降, クライアント:7.2以降)
  ・*2 の ripemd160 は OpenSSH 7.6 ではサポートがはずされて使えなくなった。
    OpenSSH 7.5 以前なら(設定すれば)使えるが、サポートする価値はある?
  ・*3 の 96bit truncate な MAC は優先度を NONE より下にしてデフォルトでは
    使わないようにした。今時 96bit truncate な MAC をサポートする価値ある?
  ・OpenSSH では EtM な MAC を優先するようになっており、ttssh もそれに
    習って順番を決めた。しかしアップグレードインストールでは末尾に追加
    される為、優先度が低くなる。ア
    ップグレー時にも優先度を高くする方法はないか?

Revision 6968 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 2 11:37:37 2017 UTC (6 years, 4 months ago) by doda
File length: 8565 byte(s)
Diff to previous 6966 , to selected 6969
共通部分が殆どないので、関数を SSH1 用と SSH2 用に分割。

Revision 6966 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 2 11:37:28 2017 UTC (6 years, 4 months ago) by doda
File length: 8478 byte(s)
Diff to previous 6841 , to selected 6969
コード整理。動作には影響しないはず。

・改行位置変更
・空行削除
・不用なコメントを削除
  別の場所で #define している実際の値をコメントに書いても、
  コメントと実際の動作の剥離を招くだけなので。
・不用な条件分岐を削除
  分岐してもやっている事は同じだったので。
・else 節しかない if の条件を反転

Revision 6841 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 4 15:02:28 2017 UTC (6 years, 8 months ago) by doda
File length: 9166 byte(s)
Diff to previous 6801 , to selected 6969
TeraTerm Project としてのライセンス表記を追加

・Tera Term 本体分を横 80 桁に収まるように改行位置を調整
・ttssh 関連の分を追加

Revision 6801 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 13 10:30:12 2017 UTC (6 years, 8 months ago) by doda
File length: 9089 byte(s)
Diff to previous 6771 , to selected 6969
eliminate FAR keyword.

Revision 6771 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 5 08:48:48 2017 UTC (6 years, 9 months ago) by doda
File length: 9098 byte(s)
Diff to previous 5678 , to selected 6969
不用な条件判断およびコードを削除

Revision 5678 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 4 03:39:24 2014 UTC (9 years, 5 months ago) by maya
File length: 9306 byte(s)
Diff to previous 4549 , to selected 6969
SSH2 切断シーケンスの調整
・shell のチャネルが MSG_CHANNEL_CLOSE を受け取ったとき
  MSG_DISCONNECT を送り、MSG_CHANNEL_CLOSE を送り、socket を切断する
  ↓
  MSG_CHANNEL_CLOSE を送り、MSG_DISCONNECT を送り、socket を切断する
・認証中にユーザがキャンセルしたとき
  MSG_CHANNEL_CLOSE を送り、socket を切断する
  ↓
  MSG_DISCONNECT を送り、socket を切断する
・MSG_DISCONNECT を受け取ったとき
  MSG_CHANNEL_CLOSE を送り、socket を切断する
    ↓
  socket を切断する

Revision 4549 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 28 14:14:39 2011 UTC (12 years, 7 months ago) by maya
File length: 9300 byte(s)
Diff to previous 3227 , to selected 6969
インデント修正

Revision 3227 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 24 15:10:33 2009 UTC (14 years, 11 months ago) by maya
File length: 9291 byte(s)
Diff to previous 3221 , to selected 6969
CVS から SVN へ移行: 改行コードを LF から CR+LF へ変換

Revision 3221 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 24 09:37:20 2009 UTC (14 years, 11 months ago) by maya
File length: 8983 byte(s)
Diff to previous 3215 , to selected 6969
CVS から SVN へ移行: trunk に集約

Revision 3215 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 4 11:40:44 2009 UTC (15 years ago) by yutakapon
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 8983 byte(s)
Diff to previous 3134 , to selected 6969
最大パケットサイズをマクロ定義した。


Revision 3134 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 20 11:58:47 2008 UTC (15 years, 8 months ago) by doda
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 8966 byte(s)
Diff to previous 3130 , to selected 6969
・TeraTerm -> Tera Term
・その他細かい修正


Revision 3130 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 23 05:04:09 2008 UTC (15 years, 9 months ago) by doda
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 8965 byte(s)
Diff to previous 3101 , to selected 6969
Teraterm -> TeraTerm
Tera Term/TeraTermの表記の統一を行うかは別途検討。


Revision 3101 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 30 12:19:27 2008 UTC (16 years, 1 month ago) by yutakapon
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 8965 byte(s)
Diff to previous 3057 , to selected 6969
不正なProtocol Version Exchangeをスキップする処理を追加した(RFC4253対応)


Revision 3057 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 28 15:55:48 2007 UTC (16 years, 4 months ago) by maya
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 8853 byte(s)
Diff to previous 3003 , to selected 6969
local_window の計算を調整した。


Revision 3003 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 20 14:21:57 2007 UTC (16 years, 6 months ago) by maya
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 8763 byte(s)
Diff to previous 2995 , to selected 6969
インデントを変更した。


Revision 2995 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 15 04:03:26 2007 UTC (16 years, 6 months ago) by maya
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 8582 byte(s)
Diff to previous 2994 , to selected 6969
$Log$ を削除した。


Revision 2994 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 13 22:30:03 2007 UTC (16 years, 6 months ago) by maya
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 9200 byte(s)
Diff to previous 2992 , to selected 6969
国際化関数を修正した。
NO_I18N マクロを削除した。


Revision 2992 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 8 16:04:09 2007 UTC (16 years, 7 months ago) by maya
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 9307 byte(s)
Diff to previous 2980 , to selected 6969
安全な関数を使用するように変更した。


Revision 2980 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 6 14:10:12 2007 UTC (16 years, 9 months ago) by maya
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 9131 byte(s)
Diff to previous 2942 , to selected 6969
プリプロセッサにより構造体が変わってしまうので、INET6 と I18N の #define を逆転させた。


Revision 2942 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 5 09:20:36 2006 UTC (17 years, 3 months ago) by maya
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 9049 byte(s)
Diff to previous 2937 , to selected 6969
表示メッセージの読み込み対応


Revision 2937 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 23 02:19:30 2006 UTC (17 years, 3 months ago) by maya
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 8936 byte(s)
Diff to previous 2922 , to selected 6969
表示メッセージを言語ファイルから読み込みむコードの作成を開始した。


Revision 2922 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 29 17:15:47 2006 UTC (17 years, 4 months ago) by yutakapon
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 8623 byte(s)
Diff to previous 2761 , to selected 6969
DEBUG_PRINT_TO_FILEマクロを追加。


Revision 2761 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 19 15:39:58 2004 UTC (19 years, 2 months ago) by yutakakn
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 8493 byte(s)
Diff to previous 2729 , to selected 6969
CVS LogIDの追加


Revision 2729 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Nov 14 15:53:21 2004 UTC (19 years, 3 months ago) by yutakakn
Original Path: ttssh2/trunk/ttxssh/pkt.c
File length: 8449 byte(s)
Copied from: ttssh2/branches/avendor/ttxssh/pkt.c revision 2728
Diff to previous 2728 , to selected 6969
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.


Revision 2728 - (view) (download) (as text) (annotate) - [select for diffs]
Added Sun Nov 14 15:53:21 2004 UTC (19 years, 3 months ago) by yutakakn
Original Path: ttssh2/branches/avendor/ttxssh/pkt.c
File length: 8449 byte(s)
Diff to selected 6969
no message


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26