comparison session.h @ 45:9ee8996a375f

Pubkey auth is mostly there for the client. Something strange with remote hostkey verification though.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 03 Aug 2004 17:26:56 +0000
parents 942b22d7dd1c
children 4b53a43f0082
comparison
equal deleted inserted replaced
44:45edf30ea0a6 45:9ee8996a375f
192 STATE_NOTHING, 192 STATE_NOTHING,
193 SERVICE_AUTH_REQ_SENT, 193 SERVICE_AUTH_REQ_SENT,
194 SERVICE_AUTH_ACCEPT_RCVD, 194 SERVICE_AUTH_ACCEPT_RCVD,
195 SERVICE_CONN_REQ_SENT, 195 SERVICE_CONN_REQ_SENT,
196 SERVICE_CONN_ACCEPT_RCVD, 196 SERVICE_CONN_ACCEPT_RCVD,
197 USERAUTH_METHODS_SENT,
198 USERAUTH_REQ_SENT, 197 USERAUTH_REQ_SENT,
199 USERAUTH_FAIL_RCVD, 198 USERAUTH_FAIL_RCVD,
200 USERAUTH_SUCCESS_RCVD, 199 USERAUTH_SUCCESS_RCVD,
201 SESSION_RUNNING, 200 SESSION_RUNNING,
202 201
213 int tty_raw_mode; /* Whether we're in raw mode (and have to clean up) */ 212 int tty_raw_mode; /* Whether we're in raw mode (and have to clean up) */
214 struct termios saved_tio; 213 struct termios saved_tio;
215 214
216 int winchange; /* Set to 1 when a windowchange signal happens */ 215 int winchange; /* Set to 1 when a windowchange signal happens */
217 216
217 struct PubkeyList *pubkeys; /* Keys to use for public-key auth */
218 int lastauthtype; /* either AUTH_TYPE_PUBKEY or AUTH_TYPE_PASSWORD,
219 for the last type of auth we tried */
220 struct PubkeyList *lastpubkey;
221 #if 0
222 TODO
223 struct AgentkeyList *agentkeys; /* Keys to use for public-key auth */
224 #endif
225
218 }; 226 };
219 227
220 /* Global structs storing the state */ 228 /* Global structs storing the state */
221 extern struct sshsession ses; 229 extern struct sshsession ses;
222 230