fix evidence decode typos
(cherry picked from commit 92f00acc4dabc52c35fba793ec9dbfa0bb24195a)
This commit is contained in:
parent
be22ca951c
commit
3ea9cb2cb6
26
0088-fix-evidence-decode-typos.patch
Normal file
26
0088-fix-evidence-decode-typos.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 5f4cbe40acc8197fb2ae140584712e8b3c950805 Mon Sep 17 00:00:00 2001
|
||||
From: xuraoqing <xuraoqing@huawei.com>
|
||||
Date: Sat, 14 Sep 2024 11:30:52 +0800
|
||||
Subject: [PATCH] fix evidence decode typos
|
||||
|
||||
Signed-off-by: xuraoqing <xuraoqing@huawei.com>
|
||||
---
|
||||
service/attestation/attestation-agent/agent/src/restapi/mod.rs | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/service/attestation/attestation-agent/agent/src/restapi/mod.rs b/service/attestation/attestation-agent/agent/src/restapi/mod.rs
|
||||
index 0570060..2745443 100644
|
||||
--- a/service/attestation/attestation-agent/agent/src/restapi/mod.rs
|
||||
+++ b/service/attestation/attestation-agent/agent/src/restapi/mod.rs
|
||||
@@ -78,7 +78,7 @@ pub async fn verify_evidence(
|
||||
) -> Result<HttpResponse> {
|
||||
let request = request.0;
|
||||
log::debug!("verify evidence request: {:?}", request);
|
||||
- let challenge = base64_url::decode(&"request.challenge".to_string())
|
||||
+ let challenge = base64_url::decode(&request.challenge)
|
||||
.map_err(|err|AgentError::DecodeError(err.to_string()))?;
|
||||
let evidence = request.evidence;
|
||||
let policy_id = request.policy_id;
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: secGear
|
||||
Version: 0.1.0
|
||||
Release: 51
|
||||
Release: 52
|
||||
Summary: secGear is an SDK to develop confidential computing apps based on hardware enclave features
|
||||
|
||||
|
||||
@ -97,6 +97,7 @@ Patch83: 0084-fix-concurrent-request-error-to-aa-or-as.patch
|
||||
Patch84: 0085-fix-multi-thread-request-as-generate-challenge-and-v.patch
|
||||
Patch85: 0086-add-error-type-for-api.patch
|
||||
Patch86: 0087-use-id-when-get-policy.patch
|
||||
Patch87: 0088-fix-evidence-decode-typos.patch
|
||||
|
||||
|
||||
BuildRequires: gcc python automake autoconf libtool
|
||||
@ -294,6 +295,9 @@ popd
|
||||
systemctl restart rsyslog
|
||||
|
||||
%changelog
|
||||
* Tue Nov 26 2024 houmingyong<houmingyong@huawei.com> - 0.1.0-52
|
||||
- fix evidence decode typos
|
||||
|
||||
* Tue Nov 26 2024 houmingyong<houmingyong@huawei.com> - 0.1.0-51
|
||||
- get policy with id
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user