Skip to content

Commit

Permalink
testtool: added none functionality
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremias Giesecke <[email protected]>
  • Loading branch information
Jeremias Giesecke authored and Jeremias Giesecke committed Nov 27, 2023
1 parent 47a1672 commit ae9e22d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testtool/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ func getConfig() *config {
api := flag.String(apiFlag, "", fmt.Sprintf("APIs for cmcd. Possible: %v", maps.Keys(apis)))
network := flag.String(networkFlag, "", "Network for socket API [unix tcp]")
mtls := flag.Bool(mtlsFlag, false, "Performs mutual TLS")
attest := flag.String(attestFlag, "mutual", "Peforms performs remote attestation: mutual, server only, or client only [mutual, server, client]")
attest := flag.String(attestFlag, "", "Peforms performs remote attestation: mutual, server only,"+
"client only, or none [mutual, server, client, none]")
logLevel := flag.String(logFlag, "",
fmt.Sprintf("Possible logging: %v", maps.Keys(logLevels)))
publish := flag.String(publishFlag, "", "HTTP address to publish attestation results to")
Expand Down
2 changes: 2 additions & 0 deletions testtool/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func dialInternalAddr(c *config, api atls.CmcApiSelect, addr string, tlsConf *tl
atls.WithCmcPolicies(c.policies),
atls.WithCmcApi(api),
atls.WithMtls(c.Mtls),
atls.WithAttest(c.Attest),
atls.WithCmcNetwork(c.Network),
atls.WithResult(verificationResult),
atls.WithCmc(cmc))
Expand Down Expand Up @@ -227,6 +228,7 @@ func listenInternal(c *config, api atls.CmcApiSelect, cmc *cmc.Cmc) {
atls.WithCmcPolicies(c.policies),
atls.WithCmcApi(api),
atls.WithMtls(c.Mtls),
atls.WithAttest(c.Attest),
atls.WithCmcNetwork(c.Network),
atls.WithResult(verificationResult),
atls.WithCmc(cmc))
Expand Down

0 comments on commit ae9e22d

Please sign in to comment.