Skip to content

Commit

Permalink
Implement changes from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Pan <[email protected]>
  • Loading branch information
tnytown committed Aug 11, 2023
1 parent 6bb7f75 commit 2be0e5b
Show file tree
Hide file tree
Showing 6 changed files with 284 additions and 253 deletions.
4 changes: 2 additions & 2 deletions harness/gocryptox509/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ func evaluateTestcase(testcase Testcase) (testcaseResult, error) {

switch testcase.ValidationKind {
case validationKindClient:
return testcaseSkipped, fmt.Errorf("unimplemented validationKindClient")
case validationKindServer:
var dnsName string
if peerName, ok := testcase.ExpectedPeerName.(map[string]interface{}); ok {
if peerName["kind"] != "DNS" {
Expand Down Expand Up @@ -195,8 +197,6 @@ func evaluateTestcase(testcase Testcase) (testcaseResult, error) {
} else if err == nil && !expectSuccess {
return testcaseFailed, fmt.Errorf("validation succeeded when failure was expected")
}
case validationKindServer:
return testcaseSkipped, fmt.Errorf("unimplemented validationKindServer")
}

return testcasePassed, nil
Expand Down
4 changes: 2 additions & 2 deletions harness/openssl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ json evaluate_testcase(const json &testcase)
auto id = testcase["id"].template get<std::string>();
std::cerr << "Evaluating case: " << id << std::endl;

if (testcase["validation_kind"] != "CLIENT")
if (testcase["validation_kind"] != "SERVER")
{
return skip(id, "non-CLIENT testcases not supported yet");
return skip(id, "non-SERVER testcases not supported yet");
}

if (!testcase["signature_algorithms"].is_null())
Expand Down
Loading

0 comments on commit 2be0e5b

Please sign in to comment.