Skip to content

Commit

Permalink
Merge pull request #92 from akakou/fix/name-mistake
Browse files Browse the repository at this point in the history
Fix/name mistake
  • Loading branch information
akakou authored Sep 7, 2024
2 parents a158a20 + 8736211 commit 8672ca2
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ta/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func DefaultConfig() (*TAConfig, error) {
repository := os.Getenv("RA_WEBS_TA_REPOSITORY")
domain := os.Getenv("RA_WEBS_TA_DOMAIN")
email := os.Getenv("RA_WEBS_SERVICE_EMAIL")
verifierBase := os.Getenv("RA_WEBS_Verifier_BASE")
verifierBase := os.Getenv("RA_WEBS_VERIFIER_BASE")

if token == "" {
return nil, fmt.Errorf("%v", ERROR_TOKEN_NOT_SET)
Expand All @@ -46,7 +46,7 @@ func DefaultConfig() (*TAConfig, error) {

if verifierBase == "" {
verifierBase = "http://localhost" + core.VerifierPort
fmt.Printf("RA_WEBS_Verifier_BASE is not set: so use %v\n", verifierBase)
fmt.Printf("RA_WEBS_VERIFIER_BASE is not set: so use %v\n", verifierBase)
}

return &TAConfig{
Expand Down
4 changes: 2 additions & 2 deletions ta/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ const (
ERROR_TOKEN_NOT_SET = "failed to read RA_WEBS_SERVICE_TOKEN"
ERROR_DOMAIN_NOT_SET = "failed to read RA_WEBS_TA_DOMAIN"
ERROR_EMAIL_NOT_SET = "failed to read RA_WEBS_SERVICE_EMAIL"
ERROR_Verifier_BASE_NOT_SET = "failed to read RA_WEBS_Verifier_BASE"
ERROR_Verifier_BASE_NOT_SET = "failed to read RA_WEBS_VERIFIER_BASE"
)

// token := os.Getenv("RA_WEBS_SERVICE_TOKEN")
// repository := os.Getenv("RA_WEBS_TA_REPOSITORY")
// domain := os.Getenv("RA_WEBS_TA_DOMAIN")
// email := os.Getenv("RA_WEBS_TA_EMAIL")
// verifierBase := os.Getenv("RA_WEBS_Verifier_BASE")
// verifierBase := os.Getenv("RA_WEBS_VERIFIER_BASE")
2 changes: 1 addition & 1 deletion ta/example/enclave.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"fromHost": true
},
{
"name": "RA_WEBS_Verifier_BASE",
"name": "RA_WEBS_VERIFIER_BASE",
"fromHost": true
},
{
Expand Down
2 changes: 1 addition & 1 deletion test/env/ta.env.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
RA_WEBS_TA_DOMAIN=
RA_WEBS_Verifier_BASE=
RA_WEBS_VERIFIER_BASE=
RA_WEBS_TA_REPOSITORY=
RA_WEBS_SERVICE_TOKEN=
2 changes: 0 additions & 2 deletions test/env/ttp.env.template

This file was deleted.

Empty file added test/env/verifier.template
Empty file.
File renamed without changes.

0 comments on commit 8672ca2

Please sign in to comment.