| 389 | } |
| 390 | |
| 391 | bool VerifyNsheadRequest(const InputMessageBase* msg_base) { |
| 392 | Server* server = (Server*)msg_base->arg(); |
| 393 | if (server->options().auth) { |
| 394 | LOG(WARNING) << "nshead does not support authentication"; |
| 395 | return false; |
| 396 | } |
| 397 | return true; |
| 398 | } |
| 399 | |
| 400 | void SerializeNsheadRequest(butil::IOBuf* request_buf, Controller* cntl, |
| 401 | const google::protobuf::Message* req_base) { |