Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 1 | #include "rakp12.hpp" |
| 2 | |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 3 | #include "comm_module.hpp" |
| 4 | #include "endian.hpp" |
| 5 | #include "guid.hpp" |
| 6 | #include "main.hpp" |
| 7 | |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 8 | #include <openssl/rand.h> |
| 9 | |
| 10 | #include <algorithm> |
Tom Joseph | 56527b9 | 2018-03-21 19:31:58 +0530 | [diff] [blame] | 11 | #include <cstring> |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 12 | #include <iomanip> |
Vernon Mauery | fc37e59 | 2018-12-19 14:55:15 -0800 | [diff] [blame] | 13 | #include <phosphor-logging/log.hpp> |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 14 | |
Vernon Mauery | fc37e59 | 2018-12-19 14:55:15 -0800 | [diff] [blame] | 15 | using namespace phosphor::logging; |
| 16 | |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 17 | namespace command |
| 18 | { |
| 19 | |
Tom Joseph | 18a45e9 | 2017-04-11 11:30:44 +0530 | [diff] [blame] | 20 | std::vector<uint8_t> RAKP12(const std::vector<uint8_t>& inPayload, |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 21 | const message::Handler& handler) |
| 22 | { |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 23 | std::vector<uint8_t> outPayload(sizeof(RAKP2response)); |
Tom Joseph | 18a45e9 | 2017-04-11 11:30:44 +0530 | [diff] [blame] | 24 | auto request = reinterpret_cast<const RAKP1request*>(inPayload.data()); |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 25 | auto response = reinterpret_cast<RAKP2response*>(outPayload.data()); |
| 26 | |
| 27 | // Session ID zero is reserved for Session Setup |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 28 | if (endian::from_ipmi(request->managedSystemSessionID) == |
Suryakanth Sekar | f8a34fc | 2019-06-12 20:59:18 +0530 | [diff] [blame] | 29 | session::sessionZero) |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 30 | { |
Vernon Mauery | fc37e59 | 2018-12-19 14:55:15 -0800 | [diff] [blame] | 31 | log<level::INFO>("RAKP12: BMC invalid Session ID"); |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 32 | response->rmcpStatusCode = |
| 33 | static_cast<uint8_t>(RAKP_ReturnCode::INVALID_SESSION_ID); |
| 34 | return outPayload; |
| 35 | } |
| 36 | |
| 37 | std::shared_ptr<session::Session> session; |
| 38 | try |
| 39 | { |
Vernon Mauery | ae1fda4 | 2018-10-15 12:55:34 -0700 | [diff] [blame] | 40 | session = |
| 41 | std::get<session::Manager&>(singletonPool) |
| 42 | .getSession(endian::from_ipmi(request->managedSystemSessionID)); |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 43 | } |
| 44 | catch (std::exception& e) |
| 45 | { |
Vernon Mauery | fc37e59 | 2018-12-19 14:55:15 -0800 | [diff] [blame] | 46 | log<level::ERR>("RAKP12 : session not found", |
| 47 | entry("EXCEPTION=%s", e.what())); |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 48 | response->rmcpStatusCode = |
| 49 | static_cast<uint8_t>(RAKP_ReturnCode::INVALID_SESSION_ID); |
| 50 | return outPayload; |
| 51 | } |
| 52 | |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 53 | auto rakp1Size = |
| 54 | sizeof(RAKP1request) - (userNameMaxLen - request->user_name_len); |
Tom Joseph | 56527b9 | 2018-03-21 19:31:58 +0530 | [diff] [blame] | 55 | |
| 56 | // Validate user name length in the message |
| 57 | if (request->user_name_len > userNameMaxLen || |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 58 | inPayload.size() != rakp1Size) |
Tom Joseph | 56527b9 | 2018-03-21 19:31:58 +0530 | [diff] [blame] | 59 | { |
| 60 | response->rmcpStatusCode = |
| 61 | static_cast<uint8_t>(RAKP_ReturnCode::INVALID_NAME_LENGTH); |
| 62 | return outPayload; |
| 63 | } |
| 64 | |
| 65 | session->userName.assign(request->user_name, request->user_name_len); |
| 66 | |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 67 | // Update transaction time |
| 68 | session->updateLastTransactionTime(); |
| 69 | |
| 70 | auto rcSessionID = endian::to_ipmi(session->getRCSessionID()); |
| 71 | auto bmcSessionID = endian::to_ipmi(session->getBMCSessionID()); |
| 72 | auto authAlgo = session->getAuthAlgo(); |
| 73 | |
| 74 | /* |
| 75 | * Generate Key Authentication Code - RAKP 2 |
| 76 | * |
| 77 | * 1) Remote Console Session ID - 4 bytes |
| 78 | * 2) Managed System Session ID - 4 bytes |
| 79 | * 3) Remote Console Random Number - 16 bytes |
| 80 | * 4) Managed System Random Number - 16 bytes |
| 81 | * 5) Managed System GUID - 16 bytes |
| 82 | * 6) Requested Privilege Level - 1 byte |
| 83 | * 7) User Name Length Byte - 1 byte (0 for 'null' username) |
| 84 | * 8) User Name - variable (absent for 'null' username) |
| 85 | */ |
| 86 | |
| 87 | std::vector<uint8_t> input; |
| 88 | input.resize(sizeof(rcSessionID) + sizeof(bmcSessionID) + |
| 89 | cipher::rakp_auth::REMOTE_CONSOLE_RANDOM_NUMBER_LEN + |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 90 | cipher::rakp_auth::BMC_RANDOM_NUMBER_LEN + BMC_GUID_LEN + |
| 91 | sizeof(request->req_max_privilege_level) + |
| 92 | sizeof(request->user_name_len) + session->userName.size()); |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 93 | |
| 94 | auto iter = input.begin(); |
| 95 | |
| 96 | // Remote Console Session ID |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 97 | std::copy_n(reinterpret_cast<uint8_t*>(&rcSessionID), sizeof(rcSessionID), |
| 98 | iter); |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 99 | std::advance(iter, sizeof(rcSessionID)); |
| 100 | |
| 101 | // Managed System Session ID |
| 102 | std::copy_n(reinterpret_cast<uint8_t*>(&bmcSessionID), sizeof(bmcSessionID), |
| 103 | iter); |
| 104 | std::advance(iter, sizeof(bmcSessionID)); |
| 105 | |
| 106 | // Copy the Remote Console Random Number from the RAKP1 request to the |
| 107 | // Authentication Algorithm |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 108 | std::copy_n( |
| 109 | reinterpret_cast<const uint8_t*>(request->remote_console_random_number), |
| 110 | cipher::rakp_auth::REMOTE_CONSOLE_RANDOM_NUMBER_LEN, |
| 111 | authAlgo->rcRandomNum.begin()); |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 112 | |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 113 | std::copy(authAlgo->rcRandomNum.begin(), authAlgo->rcRandomNum.end(), iter); |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 114 | std::advance(iter, cipher::rakp_auth::REMOTE_CONSOLE_RANDOM_NUMBER_LEN); |
| 115 | |
| 116 | // Generate the Managed System Random Number |
| 117 | if (!RAND_bytes(input.data() + sizeof(rcSessionID) + sizeof(bmcSessionID) + |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 118 | cipher::rakp_auth::REMOTE_CONSOLE_RANDOM_NUMBER_LEN, |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 119 | cipher::rakp_auth::BMC_RANDOM_NUMBER_LEN)) |
| 120 | { |
| 121 | response->rmcpStatusCode = |
| 122 | static_cast<uint8_t>(RAKP_ReturnCode::INSUFFICIENT_RESOURCE); |
| 123 | return outPayload; |
| 124 | } |
Richard Marian Thomaiyar | d5a4f45 | 2019-01-16 12:15:44 +0530 | [diff] [blame] | 125 | // As stated in Set Session Privilege Level command in IPMI Spec, when |
| 126 | // creating a session through Activate command / RAKP 1 message, it must be |
| 127 | // established with CALLBACK privilege if requested for callback. All other |
| 128 | // sessions are initialy set to USER privilege, regardless of the requested |
| 129 | // maximum privilege. |
Suryakanth Sekar | f8a34fc | 2019-06-12 20:59:18 +0530 | [diff] [blame] | 130 | session->currentPrivilege( |
| 131 | static_cast<uint8_t>(session::Privilege::CALLBACK)); |
Richard Marian Thomaiyar | d5a4f45 | 2019-01-16 12:15:44 +0530 | [diff] [blame] | 132 | if (static_cast<session::Privilege>(request->req_max_privilege_level & |
| 133 | session::reqMaxPrivMask) > |
| 134 | session::Privilege::CALLBACK) |
| 135 | { |
Suryakanth Sekar | f8a34fc | 2019-06-12 20:59:18 +0530 | [diff] [blame] | 136 | session->currentPrivilege( |
| 137 | static_cast<uint8_t>(session::Privilege::USER)); |
Richard Marian Thomaiyar | d5a4f45 | 2019-01-16 12:15:44 +0530 | [diff] [blame] | 138 | } |
Tom Joseph | 4021b1f | 2019-02-12 10:10:12 +0530 | [diff] [blame] | 139 | session->reqMaxPrivLevel = |
| 140 | static_cast<session::Privilege>(request->req_max_privilege_level); |
Richard Marian Thomaiyar | d91fd9d | 2018-12-06 12:03:50 +0530 | [diff] [blame] | 141 | if (request->user_name_len == 0) |
Richard Marian Thomaiyar | 127748a | 2018-09-06 07:08:51 +0530 | [diff] [blame] | 142 | { |
Richard Marian Thomaiyar | d91fd9d | 2018-12-06 12:03:50 +0530 | [diff] [blame] | 143 | // Bail out, if user name is not specified. |
| 144 | // Yes, NULL user name is not supported for security reasons. |
Richard Marian Thomaiyar | 99b8784 | 2018-12-06 21:35:43 +0530 | [diff] [blame] | 145 | response->rmcpStatusCode = |
| 146 | static_cast<uint8_t>(RAKP_ReturnCode::UNAUTH_NAME); |
| 147 | return outPayload; |
Richard Marian Thomaiyar | d2563c5 | 2018-11-29 11:49:10 +0530 | [diff] [blame] | 148 | } |
Richard Marian Thomaiyar | 99b8784 | 2018-12-06 21:35:43 +0530 | [diff] [blame] | 149 | |
| 150 | // Perform user name based lookup |
| 151 | std::string userName(request->user_name, request->user_name_len); |
| 152 | std::string passwd; |
| 153 | uint8_t userId = ipmi::ipmiUserGetUserId(userName); |
| 154 | if (userId == ipmi::invalidUserId) |
| 155 | { |
| 156 | response->rmcpStatusCode = |
| 157 | static_cast<uint8_t>(RAKP_ReturnCode::UNAUTH_NAME); |
| 158 | return outPayload; |
| 159 | } |
| 160 | // check user is enabled before proceeding. |
| 161 | bool userEnabled = false; |
| 162 | ipmi::ipmiUserCheckEnabled(userId, userEnabled); |
| 163 | if (!userEnabled) |
| 164 | { |
| 165 | response->rmcpStatusCode = |
| 166 | static_cast<uint8_t>(RAKP_ReturnCode::INACTIVE_ROLE); |
| 167 | return outPayload; |
| 168 | } |
Richard Marian Thomaiyar | 4c4694e | 2019-06-20 16:36:49 +0530 | [diff] [blame] | 169 | // Get the user password for RAKP message authenticate |
| 170 | passwd = ipmi::ipmiUserGetPassword(userName); |
| 171 | if (passwd.empty()) |
| 172 | { |
| 173 | response->rmcpStatusCode = |
| 174 | static_cast<uint8_t>(RAKP_ReturnCode::UNAUTH_NAME); |
| 175 | return outPayload; |
| 176 | } |
Ayushi Smriti | b31e969 | 2019-05-15 12:06:51 +0000 | [diff] [blame] | 177 | // Check whether user is already locked for failed attempts |
| 178 | if (!ipmi::ipmiUserPamAuthenticate(userName, passwd)) |
| 179 | { |
| 180 | log<level::ERR>("Authentication failed - user already locked out", |
| 181 | entry("USER-ID=%d", static_cast<uint8_t>(userId))); |
| 182 | |
| 183 | response->rmcpStatusCode = |
| 184 | static_cast<uint8_t>(RAKP_ReturnCode::UNAUTH_NAME); |
| 185 | return outPayload; |
| 186 | } |
Saravanan Palanisamy | d9c86bb | 2019-08-07 17:57:37 +0000 | [diff] [blame] | 187 | |
| 188 | uint8_t chNum = static_cast<uint8_t>(getInterfaceIndex()); |
Richard Marian Thomaiyar | 99b8784 | 2018-12-06 21:35:43 +0530 | [diff] [blame] | 189 | // Get channel based access information |
Richard Marian Thomaiyar | 992e53c | 2019-03-03 13:30:46 +0530 | [diff] [blame] | 190 | if ((ipmi::ipmiUserGetPrivilegeAccess( |
| 191 | userId, chNum, session->sessionUserPrivAccess) != IPMI_CC_OK) || |
| 192 | (ipmi::getChannelAccessData(chNum, session->sessionChannelAccess) != |
| 193 | IPMI_CC_OK)) |
Richard Marian Thomaiyar | 99b8784 | 2018-12-06 21:35:43 +0530 | [diff] [blame] | 194 | { |
| 195 | response->rmcpStatusCode = |
| 196 | static_cast<uint8_t>(RAKP_ReturnCode::INACTIVE_ROLE); |
| 197 | return outPayload; |
| 198 | } |
Richard Marian Thomaiyar | 992e53c | 2019-03-03 13:30:46 +0530 | [diff] [blame] | 199 | if (session->sessionUserPrivAccess.privilege > |
| 200 | static_cast<uint8_t>(session::Privilege::OEM)) |
Richard Marian Thomaiyar | 7e5d38d | 2019-03-02 22:11:41 +0530 | [diff] [blame] | 201 | { |
| 202 | response->rmcpStatusCode = |
| 203 | static_cast<uint8_t>(RAKP_ReturnCode::INACTIVE_ROLE); |
| 204 | return outPayload; |
| 205 | } |
Suryakanth Sekar | f8a34fc | 2019-06-12 20:59:18 +0530 | [diff] [blame] | 206 | session->channelNum(chNum); |
| 207 | session->userID(userId); |
Richard Marian Thomaiyar | d5a4f45 | 2019-01-16 12:15:44 +0530 | [diff] [blame] | 208 | // minimum privilege of Channel / User / session::privilege::USER/CALLBACK / |
| 209 | // has to be used as session current privilege level |
Richard Marian Thomaiyar | 99b8784 | 2018-12-06 21:35:43 +0530 | [diff] [blame] | 210 | uint8_t minPriv = 0; |
Richard Marian Thomaiyar | 992e53c | 2019-03-03 13:30:46 +0530 | [diff] [blame] | 211 | if (session->sessionChannelAccess.privLimit < |
| 212 | session->sessionUserPrivAccess.privilege) |
Richard Marian Thomaiyar | 99b8784 | 2018-12-06 21:35:43 +0530 | [diff] [blame] | 213 | { |
Richard Marian Thomaiyar | 992e53c | 2019-03-03 13:30:46 +0530 | [diff] [blame] | 214 | minPriv = session->sessionChannelAccess.privLimit; |
Richard Marian Thomaiyar | 99b8784 | 2018-12-06 21:35:43 +0530 | [diff] [blame] | 215 | } |
| 216 | else |
| 217 | { |
Richard Marian Thomaiyar | 992e53c | 2019-03-03 13:30:46 +0530 | [diff] [blame] | 218 | minPriv = session->sessionUserPrivAccess.privilege; |
Richard Marian Thomaiyar | 99b8784 | 2018-12-06 21:35:43 +0530 | [diff] [blame] | 219 | } |
Suryakanth Sekar | f8a34fc | 2019-06-12 20:59:18 +0530 | [diff] [blame] | 220 | if (session->currentPrivilege() > minPriv) |
Richard Marian Thomaiyar | 99b8784 | 2018-12-06 21:35:43 +0530 | [diff] [blame] | 221 | { |
Suryakanth Sekar | f8a34fc | 2019-06-12 20:59:18 +0530 | [diff] [blame] | 222 | session->currentPrivilege(static_cast<uint8_t>(minPriv)); |
Richard Marian Thomaiyar | 99b8784 | 2018-12-06 21:35:43 +0530 | [diff] [blame] | 223 | } |
Richard Marian Thomaiyar | d91fd9d | 2018-12-06 12:03:50 +0530 | [diff] [blame] | 224 | // For username / privilege lookup, fail with UNAUTH_NAME, if requested |
Richard Marian Thomaiyar | d8e92fe | 2019-01-16 11:56:23 +0530 | [diff] [blame] | 225 | // max privilege does not match user privilege |
Richard Marian Thomaiyar | d91fd9d | 2018-12-06 12:03:50 +0530 | [diff] [blame] | 226 | if (((request->req_max_privilege_level & userNameOnlyLookupMask) == |
| 227 | userNamePrivLookup) && |
Richard Marian Thomaiyar | d8e92fe | 2019-01-16 11:56:23 +0530 | [diff] [blame] | 228 | ((request->req_max_privilege_level & session::reqMaxPrivMask) != |
Richard Marian Thomaiyar | 992e53c | 2019-03-03 13:30:46 +0530 | [diff] [blame] | 229 | session->sessionUserPrivAccess.privilege)) |
Richard Marian Thomaiyar | d91fd9d | 2018-12-06 12:03:50 +0530 | [diff] [blame] | 230 | { |
Vernon Mauery | fc37e59 | 2018-12-19 14:55:15 -0800 | [diff] [blame] | 231 | log<level::INFO>( |
| 232 | "Username/Privilege lookup failed for requested privilege"); |
Richard Marian Thomaiyar | d91fd9d | 2018-12-06 12:03:50 +0530 | [diff] [blame] | 233 | response->rmcpStatusCode = |
| 234 | static_cast<uint8_t>(RAKP_ReturnCode::UNAUTH_NAME); |
| 235 | return outPayload; |
| 236 | } |
Richard Marian Thomaiyar | 99b8784 | 2018-12-06 21:35:43 +0530 | [diff] [blame] | 237 | |
| 238 | std::fill(authAlgo->userKey.data(), |
| 239 | authAlgo->userKey.data() + authAlgo->userKey.size(), 0); |
| 240 | std::copy_n(passwd.c_str(), passwd.size(), authAlgo->userKey.data()); |
| 241 | |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 242 | // Copy the Managed System Random Number to the Authentication Algorithm |
| 243 | std::copy_n(iter, cipher::rakp_auth::BMC_RANDOM_NUMBER_LEN, |
| 244 | authAlgo->bmcRandomNum.begin()); |
| 245 | std::advance(iter, cipher::rakp_auth::BMC_RANDOM_NUMBER_LEN); |
| 246 | |
| 247 | // Managed System GUID |
Tom Joseph | 83029cb | 2017-09-01 16:37:31 +0530 | [diff] [blame] | 248 | std::copy_n(cache::guid.data(), cache::guid.size(), iter); |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 249 | std::advance(iter, BMC_GUID_LEN); |
| 250 | |
| 251 | // Requested Privilege Level |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 252 | std::copy_n(&(request->req_max_privilege_level), |
| 253 | sizeof(request->req_max_privilege_level), iter); |
| 254 | std::advance(iter, sizeof(request->req_max_privilege_level)); |
| 255 | |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 256 | // User Name Length Byte |
| 257 | std::copy_n(&(request->user_name_len), sizeof(request->user_name_len), |
| 258 | iter); |
Tom Joseph | 56527b9 | 2018-03-21 19:31:58 +0530 | [diff] [blame] | 259 | std::advance(iter, sizeof(request->user_name_len)); |
| 260 | |
| 261 | std::copy_n(session->userName.data(), session->userName.size(), iter); |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 262 | |
| 263 | // Generate Key Exchange Authentication Code - RAKP2 |
| 264 | auto output = authAlgo->generateHMAC(input); |
| 265 | |
| 266 | response->messageTag = request->messageTag; |
| 267 | response->rmcpStatusCode = static_cast<uint8_t>(RAKP_ReturnCode::NO_ERROR); |
| 268 | response->reserved = 0; |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 269 | response->remoteConsoleSessionID = rcSessionID; |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 270 | |
| 271 | // Copy Managed System Random Number to the Response |
| 272 | std::copy(authAlgo->bmcRandomNum.begin(), authAlgo->bmcRandomNum.end(), |
| 273 | response->managed_system_random_number); |
| 274 | |
| 275 | // Copy System GUID to the Response |
Vernon Mauery | 9e801a2 | 2018-10-12 13:20:49 -0700 | [diff] [blame] | 276 | std::copy_n(cache::guid.data(), cache::guid.size(), |
Tom Joseph | 83029cb | 2017-09-01 16:37:31 +0530 | [diff] [blame] | 277 | response->managed_system_guid); |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 278 | |
| 279 | // Insert the HMAC output into the payload |
| 280 | outPayload.insert(outPayload.end(), output.begin(), output.end()); |
Tom Joseph | 8bb10b7 | 2016-12-06 17:47:56 +0530 | [diff] [blame] | 281 | return outPayload; |
| 282 | } |
| 283 | |
| 284 | } // namespace command |