Lines Matching refs:rsp
172 (const GatekeeperResponse &rsp) {
173 ret = static_cast<int>(rsp.code); // propagate errors
174 if (rsp.code >= GatekeeperStatusCode::STATUS_OK) {
177 *enrolled_password_handle = new uint8_t[rsp.data.size()];
178 *enrolled_password_handle_length = rsp.data.size();
179 memcpy(*enrolled_password_handle, rsp.data.data(),
183 } else if (rsp.code == GatekeeperStatusCode::ERROR_RETRY_TIMEOUT && rsp.timeout > 0) {
184 ret = rsp.timeout;
261 (const GatekeeperResponse &rsp) {
262 ret = static_cast<int>(rsp.code); // propagate errors
264 rsp.code >= GatekeeperStatusCode::STATUS_OK) {
265 *auth_token = new uint8_t[rsp.data.size()];
266 *auth_token_length = rsp.data.size();
267 memcpy(*auth_token, rsp.data.data(), *auth_token_length);
269 *request_reenroll = (rsp.code == GatekeeperStatusCode::STATUS_REENROLL);
272 } else if (rsp.code == GatekeeperStatusCode::ERROR_RETRY_TIMEOUT &&
273 rsp.timeout > 0) {
274 ret = rsp.timeout;