| 2227 | |
| 2228 | |
| 2229 | void ConnectAuth::accept(PACKET* send, Auth::WriterImplementation*) |
| 2230 | { |
| 2231 | HANDSHAKE_DEBUG(fprintf(stderr, "Srv: ConnectAuth::accept: accepted protocol=%x op=%s\n", |
| 2232 | authPort->port_protocol, useResponse ? "response" : "accept")); |
| 2233 | fb_assert(authPort->port_protocol >= PROTOCOL_VERSION13); |
| 2234 | |
| 2235 | if (useResponse) |
| 2236 | { |
| 2237 | CSTRING* const s = &send->p_resp.p_resp_data; |
| 2238 | authPort->extractNewKeys(s); |
| 2239 | ISC_STATUS sv[] = {1, 0, 0}; |
| 2240 | authPort->send_response(send, 0, s->cstr_length, sv, false); |
| 2241 | } |
| 2242 | else |
| 2243 | { |
| 2244 | send->p_operation = op_accept_data; |
| 2245 | CSTRING* const s = &send->p_acpd.p_acpt_keys; |
| 2246 | authPort->extractNewKeys(s); |
| 2247 | send->p_acpd.p_acpt_authenticated = 1; |
| 2248 | if (send->p_acpt.p_acpt_type & pflag_compress) |
| 2249 | authPort->initCompression(); |
| 2250 | authPort->send(send); |
| 2251 | if (send->p_acpt.p_acpt_type & pflag_compress) |
| 2252 | authPort->port_flags |= PORT_compressed; |
| 2253 | } |
| 2254 | } |
| 2255 | |
| 2256 | |
| 2257 | void Rsr::checkIface(ISC_STATUS code) |
no test coverage detected