File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2022-2024 Intel Corporation
2
+ * Copyright (c) 2022-2025 Intel Corporation
3
3
* All rights reserved.
4
4
* SPDX-License-Identifier: BSD-3-Clause
5
5
*/
@@ -27,6 +27,15 @@ type compositeTdxEvidence struct {
27
27
VerifierNonce * connector.VerifierNonce `json:"verifier_nonce,omitempty"`
28
28
}
29
29
30
+ // NewTdxAdapter returns a new TDX Adapter instance
31
+ func NewTdxAdapter (udata []byte , withCcel bool ) (connector.EvidenceAdapter , error ) {
32
+ return & tdxAdapter {
33
+ uData : udata ,
34
+ withCcel : withCcel ,
35
+ cfsQuoteProvider : & cfsQuoteProviderImpl {},
36
+ }, nil
37
+ }
38
+
30
39
// CollectEvidence is used to get TDX quote using TDX Quote Generation service
31
40
func (adapter * tdxAdapter ) CollectEvidence (nonce []byte ) (* connector.Evidence , error ) {
32
41
You can’t perform that action at this time.
0 commit comments