You've already forked aws-iam-anywhere-refresher
Update Dockerfile and Go modules for dependency upgrades and compatibility (#2)
All checks were successful
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Successful in 5m32s
All checks were successful
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Successful in 5m32s
Reviewed-on: #2 Co-authored-by: Ron Rise <ron@siteworxpro.com> Co-committed-by: Ron Rise <ron@siteworxpro.com>
This commit was merged in pull request #2.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
package aws_signing_helper
|
||||
|
||||
import (
|
||||
tpm2 "github.com/google/go-tpm/tpm2"
|
||||
"io"
|
||||
"os"
|
||||
|
||||
tpm3 "github.com/google/go-tpm/legacy/tpm2"
|
||||
)
|
||||
|
||||
func openTPM() (io.ReadWriteCloser, error) {
|
||||
@@ -12,5 +13,5 @@ func openTPM() (io.ReadWriteCloser, error) {
|
||||
if tpmdev != "" {
|
||||
paths = append(paths, tpmdev)
|
||||
}
|
||||
return tpm2.OpenTPM(paths...)
|
||||
return tpm3.OpenTPM(paths...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user