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

Method checkSecurityResult

src/jrd/UserManagement.cpp:329–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329void UserManagement::checkSecurityResult(int errcode, IStatus* status,
330 const char* userName, unsigned operation)
331{
332 if (!errcode)
333 {
334 return;
335 }
336 errcode = Auth::setGsecCode(errcode, operation);
337
338 Arg::StatusVector tmp;
339 tmp << Arg::Gds(ENCODE_ISC_MSG(errcode, GSEC_MSG_FAC));
340 if (errcode == GsecMsg22)
341 {
342 tmp << userName;
343 }
344 tmp.append(Arg::StatusVector(status));
345
346 tmp.raise();
347}
348
349static inline void merge(string& s, ConfigFile::Parameters::const_iterator& p)
350{

Callers

nothing calls this directly

Calls 6

setGsecCodeFunction · 0.85
GdsClass · 0.85
ENCODE_ISC_MSGFunction · 0.85
StatusVectorClass · 0.70
appendMethod · 0.45
raiseMethod · 0.45

Tested by

no test coverage detected