Bläddra i källkod

acme: expose internal/acme as acme package

This moves all of internal/acme into the acme package,
making the lower level API accessible by any other package.

Fixes golang/go#16938.

Change-Id: Ie35f4b6b6b42ebb7fb4ad03ba067df8c3063feff
Reviewed-on: https://go-review.googlesource.com/28297
TryBot-Result: Gobot Gobot <gobot@golang.org>
Run-TryBot: Alex Vaghin <ddos@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Alex Vaghin 9 år sedan
förälder
incheckning
d3c1194e7c
7 ändrade filer med 6 tillägg och 2 borttagningar
  1. 4 0
      acme/acme.go
  2. 0 0
      acme/acme_test.go
  3. 1 1
      acme/autocert/autocert.go
  4. 1 1
      acme/autocert/autocert_test.go
  5. 0 0
      acme/jws.go
  6. 0 0
      acme/jws_test.go
  7. 0 0
      acme/types.go

+ 4 - 0
acme/internal/acme/acme.go → acme/acme.go

@@ -6,6 +6,10 @@
 // Automatic Certificate Management Environment (ACME) spec.
 // Automatic Certificate Management Environment (ACME) spec.
 // See https://tools.ietf.org/html/draft-ietf-acme-acme-02 for details.
 // See https://tools.ietf.org/html/draft-ietf-acme-acme-02 for details.
 //
 //
+// Most common scenarios will want to use autocert subdirectory instead,
+// which provides automatic access to certificates from Let's Encrypt
+// and any other ACME-based CA.
+//
 // This package is a work in progress and makes no API stability promises.
 // This package is a work in progress and makes no API stability promises.
 package acme
 package acme
 
 

+ 0 - 0
acme/internal/acme/acme_test.go → acme/acme_test.go


+ 1 - 1
acme/autocert/autocert.go

@@ -27,7 +27,7 @@ import (
 	"sync"
 	"sync"
 	"time"
 	"time"
 
 
-	"golang.org/x/crypto/acme/internal/acme"
+	"golang.org/x/crypto/acme"
 	"golang.org/x/net/context"
 	"golang.org/x/net/context"
 )
 )
 
 

+ 1 - 1
acme/autocert/autocert_test.go

@@ -24,7 +24,7 @@ import (
 	"testing"
 	"testing"
 	"time"
 	"time"
 
 
-	"golang.org/x/crypto/acme/internal/acme"
+	"golang.org/x/crypto/acme"
 	"golang.org/x/net/context"
 	"golang.org/x/net/context"
 )
 )
 
 

+ 0 - 0
acme/internal/acme/jws.go → acme/jws.go


+ 0 - 0
acme/internal/acme/jws_test.go → acme/jws_test.go


+ 0 - 0
acme/internal/acme/types.go → acme/types.go