* Add the given sub-handler to this handler, if the handler can be used (e.g. there are authorized keys or there is a password). * @param handler The handler to add. */
| 395 | * @param handler The handler to add. |
| 396 | */ |
| 397 | void CombinedAuthenticationServerHandler::Add(CombinedAuthenticationServerHandler::Handler &&handler) |
| 398 | { |
| 399 | /* Is the handler configured correctly, e.g. does it have a password? */ |
| 400 | if (!handler->CanBeUsed()) return; |
| 401 | |
| 402 | this->handlers.push_back(std::move(handler)); |
| 403 | } |
| 404 | |
| 405 | /* virtual */ void CombinedAuthenticationServerHandler::SendRequest(struct Packet &p) |
| 406 | { |