| 7814 | |
| 7815 | |
| 7816 | static void authenticateStep0(ClntAuthBlock& cBlock) |
| 7817 | { |
| 7818 | LocalStatus ls; |
| 7819 | CheckStatusWrapper s(&ls); |
| 7820 | for (; cBlock.plugins.hasData(); cBlock.plugins.next()) |
| 7821 | { |
| 7822 | HANDSHAKE_DEBUG(fprintf(stderr, "Cli: authenticateStep0(%s)\n", cBlock.plugins.name())); |
| 7823 | switch(cBlock.plugins.plugin()->authenticate(&s, &cBlock)) |
| 7824 | { |
| 7825 | case IAuth::AUTH_SUCCESS: |
| 7826 | case IAuth::AUTH_MORE_DATA: |
| 7827 | return; |
| 7828 | case IAuth::AUTH_FAILED: |
| 7829 | if (s.getState() & IStatus::STATE_ERRORS) |
| 7830 | { |
| 7831 | iscLogStatus("Authentication, client plugin:", &s); |
| 7832 | } |
| 7833 | (Arg::Gds(isc_login_error) |
| 7834 | #ifdef DEV_BUILD |
| 7835 | << Arg::StatusVector(&s) |
| 7836 | #endif |
| 7837 | ).raise(); |
| 7838 | break; // compiler silencer |
| 7839 | } |
| 7840 | } |
| 7841 | } |
| 7842 | |
| 7843 | |
| 7844 | static void secureAuthentication(ClntAuthBlock& cBlock, rem_port* port) |
no test coverage detected