| 6358 | |
| 6359 | |
| 6360 | static void attach_service(rem_port* port, P_ATCH* attach, PACKET* sendL) |
| 6361 | { |
| 6362 | WIRECRYPT_DEBUG(fprintf(stderr, "Line encryption %sabled on attach svc\n", port->port_crypt_complete ? "en" : "dis")); |
| 6363 | if (port->port_crypt_level == WIRECRYPT_REQUIRED && !port->port_crypt_complete) |
| 6364 | { |
| 6365 | Arg::Gds(isc_miss_wirecrypt).raise(); |
| 6366 | } |
| 6367 | |
| 6368 | PathName manager(attach->p_atch_file.cstr_address, attach->p_atch_file.cstr_length); |
| 6369 | |
| 6370 | ClumpletWriter* wrt = FB_NEW_POOL(*getDefaultMemoryPool()) ClumpletWriter(*getDefaultMemoryPool(), |
| 6371 | ClumpletReader::spbList, MAX_DPB_SIZE, attach->p_atch_dpb.cstr_address, attach->p_atch_dpb.cstr_length); |
| 6372 | port->port_srv_auth = FB_NEW ServiceAttachAuth(port, |
| 6373 | PathName(attach->p_atch_file.cstr_address, attach->p_atch_file.cstr_length), wrt); |
| 6374 | |
| 6375 | if (port->port_srv_auth->authenticate(sendL)) |
| 6376 | { |
| 6377 | delete port->port_srv_auth; |
| 6378 | port->port_srv_auth = NULL; |
| 6379 | } |
| 6380 | } |
| 6381 | |
| 6382 | |
| 6383 | void ServiceAttachAuth::accept(PACKET* sendL, Auth::WriterImplementation* authBlock) |
no test coverage detected