Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 465615e5 authored by Jocelyn Bohr's avatar Jocelyn Bohr
Browse files

trusty: keymaster: Implement abort

Test: builds
Change-Id: I8dfef740a75ff76aebd3ee63aa747e319193aaed
parent e57f3ce2
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -626,7 +626,15 @@ keymaster_error_t TrustyKeymasterDevice::finish(keymaster_operation_handle_t ope

keymaster_error_t TrustyKeymasterDevice::abort(keymaster_operation_handle_t operation_handle) {
    ALOGD("Device received abort");
    return KM_ERROR_OK;

    if (error_ != KM_ERROR_OK) {
        return error_;
    }

    AbortOperationRequest request;
    request.op_handle = operation_handle;
    AbortOperationResponse response;
    return Send(KM_ABORT_OPERATION, request, &response);
}

hw_device_t* TrustyKeymasterDevice::hw_device() {