diff options
author | Damien Miller <djm@mindrot.org> | 1999-12-06 11:47:28 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-12-06 11:47:28 +1100 |
commit | aae6c614da614eb10ced16505f35410671c95d9d (patch) | |
tree | 441e578781d38e7de4c5f609a4f86695d937e640 /nchan.c | |
parent | dc33fc3910552c82518503b581efc1a51192fa76 (diff) |
- Merged OpenBSD CVS changes:
- [auth-krb4.c auth-passwd.c auth-skey.c ssh.
move skey-auth from auth-passwd.c to auth-s
- [auth-rsa.c]
warn only about mismatch if key is _used_
warn about keysize-mismatch with log() not
channels.c readconf.c readconf.h ssh.c ssh.
ports are u_short
- [hostfile.c]
indent, shorter warning
- [nchan.c]
use error() for internal errors
- [packet.c]
set loglevel for SSH_MSG_DISCONNECT to log(
serverloop.c
indent
- [ssh-add.1 ssh-add.c ssh.h]
document , reasonable default
- [ssh.1]
CheckHostIP is not available for connects v
- [sshconnect.c]
typo
easier to read client code for passwd and s
turn of checkhostip for proxy connects, sin
Diffstat (limited to 'nchan.c')
-rw-r--r-- | nchan.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -28,7 +28,7 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | #include "includes.h" | 30 | #include "includes.h" |
31 | RCSID("$Id: nchan.c,v 1.3 1999/11/25 00:54:59 damien Exp $"); | 31 | RCSID("$Id: nchan.c,v 1.4 1999/12/06 00:47:29 damien Exp $"); |
32 | 32 | ||
33 | #include "ssh.h" | 33 | #include "ssh.h" |
34 | 34 | ||
@@ -65,7 +65,7 @@ chan_rcvd_oclose(Channel *c) | |||
65 | chan_delele_if_full_closed(c); | 65 | chan_delele_if_full_closed(c); |
66 | break; | 66 | break; |
67 | default: | 67 | default: |
68 | debug("protocol error: chan_rcvd_oclose %d for istate %d", c->self, c->istate); | 68 | error("protocol error: chan_rcvd_oclose %d for istate %d", c->self, c->istate); |
69 | break; | 69 | break; |
70 | } | 70 | } |
71 | } | 71 | } |
@@ -79,7 +79,7 @@ chan_read_failed(Channel *c) | |||
79 | c->istate = CHAN_INPUT_WAIT_DRAIN; | 79 | c->istate = CHAN_INPUT_WAIT_DRAIN; |
80 | break; | 80 | break; |
81 | default: | 81 | default: |
82 | debug("internal error: we do not read, but chan_read_failed %d for istate %d", | 82 | error("internal error: we do not read, but chan_read_failed %d for istate %d", |
83 | c->self, c->istate); | 83 | c->self, c->istate); |
84 | break; | 84 | break; |
85 | } | 85 | } |
@@ -88,7 +88,7 @@ void | |||
88 | chan_ibuf_empty(Channel *c) | 88 | chan_ibuf_empty(Channel *c) |
89 | { | 89 | { |
90 | if (buffer_len(&c->input)) { | 90 | if (buffer_len(&c->input)) { |
91 | debug("internal error: chan_ibuf_empty %d for non empty buffer", c->self); | 91 | error("internal error: chan_ibuf_empty %d for non empty buffer", c->self); |
92 | return; | 92 | return; |
93 | } | 93 | } |
94 | switch (c->istate) { | 94 | switch (c->istate) { |
@@ -98,7 +98,7 @@ chan_ibuf_empty(Channel *c) | |||
98 | c->istate = CHAN_INPUT_WAIT_OCLOSE; | 98 | c->istate = CHAN_INPUT_WAIT_OCLOSE; |
99 | break; | 99 | break; |
100 | default: | 100 | default: |
101 | debug("internal error: chan_ibuf_empty %d for istate %d", c->self, c->istate); | 101 | error("internal error: chan_ibuf_empty %d for istate %d", c->self, c->istate); |
102 | break; | 102 | break; |
103 | } | 103 | } |
104 | } | 104 | } |
@@ -118,7 +118,7 @@ chan_rcvd_ieof(Channel *c) | |||
118 | chan_delele_if_full_closed(c); | 118 | chan_delele_if_full_closed(c); |
119 | break; | 119 | break; |
120 | default: | 120 | default: |
121 | debug("protocol error: chan_rcvd_ieof %d for ostate %d", c->self, c->ostate); | 121 | error("protocol error: chan_rcvd_ieof %d for ostate %d", c->self, c->ostate); |
122 | break; | 122 | break; |
123 | } | 123 | } |
124 | } | 124 | } |
@@ -138,7 +138,7 @@ chan_write_failed(Channel *c) | |||
138 | chan_delele_if_full_closed(c); | 138 | chan_delele_if_full_closed(c); |
139 | break; | 139 | break; |
140 | default: | 140 | default: |
141 | debug("internal error: chan_write_failed %d for ostate %d", c->self, c->ostate); | 141 | error("internal error: chan_write_failed %d for ostate %d", c->self, c->ostate); |
142 | break; | 142 | break; |
143 | } | 143 | } |
144 | } | 144 | } |
@@ -157,7 +157,7 @@ chan_obuf_empty(Channel *c) | |||
157 | chan_delele_if_full_closed(c); | 157 | chan_delele_if_full_closed(c); |
158 | break; | 158 | break; |
159 | default: | 159 | default: |
160 | debug("internal error: chan_obuf_empty %d for ostate %d", c->self, c->ostate); | 160 | error("internal error: chan_obuf_empty %d for ostate %d", c->self, c->ostate); |
161 | break; | 161 | break; |
162 | } | 162 | } |
163 | } | 163 | } |
@@ -176,7 +176,7 @@ chan_send_ieof(Channel *c) | |||
176 | packet_send(); | 176 | packet_send(); |
177 | break; | 177 | break; |
178 | default: | 178 | default: |
179 | debug("internal error: channel %d: cannot send IEOF for istate %d", c->self, c->istate); | 179 | error("internal error: channel %d: cannot send IEOF for istate %d", c->self, c->istate); |
180 | break; | 180 | break; |
181 | } | 181 | } |
182 | } | 182 | } |
@@ -193,7 +193,7 @@ chan_send_oclose(Channel *c) | |||
193 | packet_send(); | 193 | packet_send(); |
194 | break; | 194 | break; |
195 | default: | 195 | default: |
196 | debug("internal error: channel %d: cannot send OCLOSE for ostate %d", c->self, c->istate); | 196 | error("internal error: channel %d: cannot send OCLOSE for ostate %d", c->self, c->istate); |
197 | break; | 197 | break; |
198 | } | 198 | } |
199 | } | 199 | } |