From d95e43faa05bcf896f34c9a1a7395af0e47c18fd Mon Sep 17 00:00:00 2001 From: Jia Zhang Date: Sun, 21 Jun 2020 09:56:49 +0000 Subject: [PATCH] rune/libenclave: Rename intelsgx.GetToken to intelsgx.GetLaunchToken Signed-off-by: Jia Zhang --- rune/libenclave/intelsgx/aesmd.go | 2 +- runectl/gen-token.go | 2 +- .../github.com/opencontainers/runc/libenclave/intelsgx/aesmd.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rune/libenclave/intelsgx/aesmd.go b/rune/libenclave/intelsgx/aesmd.go index 1d6ae93..2b5e2b3 100644 --- a/rune/libenclave/intelsgx/aesmd.go +++ b/rune/libenclave/intelsgx/aesmd.go @@ -72,7 +72,7 @@ func transmitAesmd(conn *net.UnixConn, req *pb.AesmServiceRequest) ([]byte, erro return rdata, nil } -func GetToken(sig []byte) ([]byte, error) { +func GetLaunchToken(sig []byte) ([]byte, error) { if len(sig) != SigStructLength { return nil, fmt.Errorf("signature not match SIGSTRUCT") } diff --git a/runectl/gen-token.go b/runectl/gen-token.go index 8c874c5..cd30525 100644 --- a/runectl/gen-token.go +++ b/runectl/gen-token.go @@ -65,7 +65,7 @@ For example, generate the token file according to the given signature file: return fmt.Errorf("signature file %s read failed", sigPath) } - tok, err := intelsgx.GetToken(buf) + tok, err := intelsgx.GetLaunchToken(buf) if err != nil { logrus.Print(err) return err diff --git a/runectl/vendor/github.com/opencontainers/runc/libenclave/intelsgx/aesmd.go b/runectl/vendor/github.com/opencontainers/runc/libenclave/intelsgx/aesmd.go index 1d6ae93..2b5e2b3 100644 --- a/runectl/vendor/github.com/opencontainers/runc/libenclave/intelsgx/aesmd.go +++ b/runectl/vendor/github.com/opencontainers/runc/libenclave/intelsgx/aesmd.go @@ -72,7 +72,7 @@ func transmitAesmd(conn *net.UnixConn, req *pb.AesmServiceRequest) ([]byte, erro return rdata, nil } -func GetToken(sig []byte) ([]byte, error) { +func GetLaunchToken(sig []byte) ([]byte, error) { if len(sig) != SigStructLength { return nil, fmt.Errorf("signature not match SIGSTRUCT") } -- GitLab