Mercurial > dropbear
comparison auth.h @ 566:b321aeb57c64
- set $SSH_ORIGINAL_COMMAND if a command is forced, and log it
if LOG_COMMANDS is set
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 26 Aug 2009 14:09:22 +0000 |
parents | de3653483ac0 |
children | 818108bf7749 |
comparison
equal
deleted
inserted
replaced
565:1929bbe3fa84 | 566:b321aeb57c64 |
---|---|
97 | 97 |
98 /* This structure is shared between server and client - it contains | 98 /* This structure is shared between server and client - it contains |
99 * relatively little extraneous bits when used for the client rather than the | 99 * relatively little extraneous bits when used for the client rather than the |
100 * server */ | 100 * server */ |
101 struct AuthState { | 101 struct AuthState { |
102 | |
103 char *username; /* This is the username the client presents to check. It | 102 char *username; /* This is the username the client presents to check. It |
104 is updated each run through, used for auth checking */ | 103 is updated each run through, used for auth checking */ |
105 unsigned char authtypes; /* Flags indicating which auth types are still | 104 unsigned char authtypes; /* Flags indicating which auth types are still |
106 valid */ | 105 valid */ |
107 unsigned int failcount; /* Number of (failed) authentication attempts.*/ | 106 unsigned int failcount; /* Number of (failed) authentication attempts.*/ |
120 char *pw_name; | 119 char *pw_name; |
121 char *pw_passwd; | 120 char *pw_passwd; |
122 #ifdef ENABLE_SVR_PUBKEY_OPTIONS | 121 #ifdef ENABLE_SVR_PUBKEY_OPTIONS |
123 struct PubKeyOptions* pubkey_options; | 122 struct PubKeyOptions* pubkey_options; |
124 #endif | 123 #endif |
125 | |
126 }; | 124 }; |
127 | 125 |
128 #ifdef ENABLE_SVR_PUBKEY_OPTIONS | 126 #ifdef ENABLE_SVR_PUBKEY_OPTIONS |
129 struct PubKeyOptions; | 127 struct PubKeyOptions; |
130 struct PubKeyOptions { | 128 struct PubKeyOptions { |
133 int no_agent_forwarding_flag; | 131 int no_agent_forwarding_flag; |
134 int no_x11_forwarding_flag; | 132 int no_x11_forwarding_flag; |
135 int no_pty_flag; | 133 int no_pty_flag; |
136 /* "command=" option. */ | 134 /* "command=" option. */ |
137 unsigned char * forced_command; | 135 unsigned char * forced_command; |
138 | 136 unsigned char * original_command; |
139 }; | 137 }; |
140 #endif | 138 #endif |
141 | 139 |
142 #endif /* _AUTH_H_ */ | 140 #endif /* _AUTH_H_ */ |