This function sets typical gsec return code based on requested operation if it was not set by plugin
| 92 | |
| 93 | // This function sets typical gsec return code based on requested operation if it was not set by plugin |
| 94 | int 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 |
no outgoing calls
no test coverage detected