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

Function setGsecCode

src/common/security.cpp:94–122  ·  view source on GitHub ↗

This function sets typical gsec return code based on requested operation if it was not set by plugin

Source from the content-addressed store, hash-verified

92
93// This function sets typical gsec return code based on requested operation if it was not set by plugin
94int setGsecCode(int code, unsigned int operation)
95{
96 if (code >= 0)
97 {
98 return code;
99 }
100
101 switch(operation)
102 {
103 case ADD_OPER:
104 return GsecMsg19;
105
106 case MOD_OPER:
107 return GsecMsg20;
108
109 case DEL_OPER:
110 return GsecMsg23;
111
112 case OLD_DIS_OPER:
113 case DIS_OPER:
114 return GsecMsg28;
115
116 case MAP_DROP_OPER:
117 case MAP_SET_OPER:
118 return GsecMsg97;
119 }
120
121 return GsecMsg17;
122}
123
124} // namespace Auth

Callers 2

gsecFunction · 0.85
checkSecurityResultMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected