MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / attach_service

Function attach_service

src/remote/server/server.cpp:6360–6380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6358
6359
6360static 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
6383void ServiceAttachAuth::accept(PACKET* sendL, Auth::WriterImplementation* authBlock)

Callers 1

process_packetFunction · 0.70

Calls 6

GdsClass · 0.85
getDefaultMemoryPoolFunction · 0.85
ServiceAttachAuthClass · 0.85
ClumpletWriterClass · 0.50
raiseMethod · 0.45
authenticateMethod · 0.45

Tested by

no test coverage detected