Commit c8daaba4 authored by Matthew Holt's avatar Matthew Holt

Update link to SA 1.1.1 (and other minor tweaks)

parent af48bbd2
......@@ -664,15 +664,15 @@ func basicAuthTestcase(t *testing.T, upstreamUser, clientUser *url.Userinfo) {
}))
defer backend.Close()
backUrl, err := url.Parse(backend.URL)
backURL, err := url.Parse(backend.URL)
if err != nil {
t.Fatalf("Failed to parse URL: %v", err)
}
backUrl.User = upstreamUser
backURL.User = upstreamUser
p := &Proxy{
Next: httpserver.EmptyNext,
Upstreams: []Upstream{newFakeUpstream(backUrl.String(), false)},
Upstreams: []Upstream{newFakeUpstream(backURL.String(), false)},
}
r, err := http.NewRequest("GET", "/foo", nil)
if err != nil {
......
......@@ -32,18 +32,17 @@ type UserData struct {
Key []byte
}
// Storage is an interface abstracting all storage used by the Caddy's TLS
// subsystem. Implementations of this interface store site data along with
// Storage is an interface abstracting all storage used by Caddy's TLS
// subsystem. Implementations of this interface store both site and
// user data.
type Storage interface {
// SiteDataExists returns true if this site info exists in storage.
// SiteExists returns true if this site exists in storage.
// Site data is considered present when StoreSite has been called
// successfully (without DeleteSite having been called of course).
// successfully (without DeleteSite having been called, of course).
SiteExists(domain string) bool
// LoadSite obtains the site data from storage for the given domain and
// returns. If data for the domain does not exist, the
// returns it. If data for the domain does not exist, the
// ErrStorageNotFound error instance is returned. For multi-server
// storage, care should be taken to make this load atomic to prevent
// race conditions that happen with multiple data loads.
......
......@@ -176,4 +176,4 @@ var stdin = io.ReadWriter(os.Stdin)
const emptyEmail = "default"
// TODO: Use latest
const saURL = "https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf"
const saURL = "https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment