forked from letsencrypt/boulder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathva.go
20 lines (17 loc) · 725 Bytes
/
va.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package core
import (
"golang.org/x/net/context"
vaPB "github.com/letsencrypt/boulder/va/proto"
)
// ValidationAuthority defines the public interface for the Boulder VA
type ValidationAuthority interface {
// PerformValidation checks the challenge with the given index in the
// given Authorization and returns the updated ValidationRecords.
//
// A failure to validate the Challenge will result in a error of type
// *probs.ProblemDetails.
//
// TODO(#1626): remove authz parameter
PerformValidation(ctx context.Context, domain string, challenge Challenge, authz Authorization) ([]ValidationRecord, error)
IsSafeDomain(ctx context.Context, req *vaPB.IsSafeDomainRequest) (resp *vaPB.IsDomainSafe, err error)
}