Skip to content

Commit

Permalink
Renaming module to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed Mar 25, 2021
1 parent 9b519a2 commit 168f79e
Show file tree
Hide file tree
Showing 17 changed files with 43 additions and 38 deletions.
4 changes: 2 additions & 2 deletions challenge/challenge.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"crypto/x509"
"errors"

"github.com/micromdm/scep/scep"
scepserver "github.com/micromdm/scep/server"
"github.com/micromdm/scep/v2/scep"
scepserver "github.com/micromdm/scep/v2/server"
)

// Store is a dynamic challenge password cache.
Expand Down
7 changes: 4 additions & 3 deletions challenge/challenge_bolt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import (
"os"
"testing"

challengestore "github.com/micromdm/scep/v2/challenge/bolt"
"github.com/micromdm/scep/v2/scep"
scepserver "github.com/micromdm/scep/v2/server"

"github.com/boltdb/bolt"
challengestore "github.com/micromdm/scep/challenge/bolt"
"github.com/micromdm/scep/scep"
scepserver "github.com/micromdm/scep/server"
)

func TestDynamicChallenge(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package scepclient

import (
scepserver "github.com/micromdm/scep/v2/server"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"

"github.com/micromdm/scep/server"
)

// Client is a SCEP Client
Expand Down
2 changes: 1 addition & 1 deletion cmd/scepclient/csr.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"io/ioutil"
"os"

"github.com/micromdm/scep/cryptoutil/x509util"
"github.com/micromdm/scep/v2/cryptoutil/x509util"
)

const (
Expand Down
5 changes: 3 additions & 2 deletions cmd/scepclient/scepclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ import (
"strings"
"time"

scepclient "github.com/micromdm/scep/v2/client"
"github.com/micromdm/scep/v2/scep"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
scepclient "github.com/micromdm/scep/client"
"github.com/micromdm/scep/scep"
"github.com/pkg/errors"
)

Expand Down
13 changes: 7 additions & 6 deletions cmd/scepserver/scepserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ import (
"syscall"
"time"

"github.com/micromdm/scep/v2/cryptoutil"
"github.com/micromdm/scep/v2/csrverifier"
executablecsrverifier "github.com/micromdm/scep/v2/csrverifier/executable"
scepdepot "github.com/micromdm/scep/v2/depot"
"github.com/micromdm/scep/v2/depot/file"
scepserver "github.com/micromdm/scep/v2/server"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/micromdm/scep/cryptoutil"
"github.com/micromdm/scep/csrverifier"
executablecsrverifier "github.com/micromdm/scep/csrverifier/executable"
scepdepot "github.com/micromdm/scep/depot"
"github.com/micromdm/scep/depot/file"
scepserver "github.com/micromdm/scep/server"
)

// version info
Expand Down
4 changes: 2 additions & 2 deletions csrverifier/csrverifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"crypto/x509"
"errors"

"github.com/micromdm/scep/scep"
scepserver "github.com/micromdm/scep/server"
"github.com/micromdm/scep/v2/scep"
scepserver "github.com/micromdm/scep/v2/server"
)

// CSRVerifier verifies the raw decrypted CSR.
Expand Down
3 changes: 2 additions & 1 deletion depot/bolt/depot.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import (
"math/big"
"time"

"github.com/micromdm/scep/v2/cryptoutil"

"github.com/boltdb/bolt"
"github.com/micromdm/scep/cryptoutil"
)

// Depot implements a SCEP certifiacte store using boltdb.
Expand Down
4 changes: 2 additions & 2 deletions depot/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"crypto/x509"
"time"

"github.com/micromdm/scep/cryptoutil"
"github.com/micromdm/scep/scep"
"github.com/micromdm/scep/v2/cryptoutil"
"github.com/micromdm/scep/v2/scep"
)

// Signer signs x509 certificates and stores them in a Depot
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/micromdm/scep
module github.com/micromdm/scep/v2

go 1.16

Expand Down
6 changes: 3 additions & 3 deletions scep/scep.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import (
"encoding/asn1"
"encoding/base64"

"github.com/micromdm/scep/v2/cryptoutil"
"github.com/micromdm/scep/v2/cryptoutil/x509util"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/micromdm/scep/cryptoutil"
"github.com/pkg/errors"
"go.mozilla.org/pkcs7"

"github.com/micromdm/scep/cryptoutil/x509util"
)

// errors
Expand Down
4 changes: 2 additions & 2 deletions scep/scep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"testing"
"time"

"github.com/micromdm/scep/cryptoutil"
"github.com/micromdm/scep/scep"
"github.com/micromdm/scep/v2/cryptoutil"
"github.com/micromdm/scep/v2/scep"
)

func testParsePKIMessage(t *testing.T, data []byte) *scep.PKIMessage {
Expand Down
2 changes: 1 addition & 1 deletion server/csrsigner.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"crypto/x509"
"errors"

"github.com/micromdm/scep/scep"
"github.com/micromdm/scep/v2/scep"
)

// CSRSigner is a handler for CSR signing by the CA/RA
Expand Down
2 changes: 1 addition & 1 deletion server/csrsigner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package scepserver
import (
"testing"

"github.com/micromdm/scep/scep"
"github.com/micromdm/scep/v2/scep"
)

func TestChallengeMiddleware(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion server/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"crypto/x509"
"errors"

"github.com/micromdm/scep/scep"
"github.com/micromdm/scep/v2/scep"

"github.com/go-kit/kit/log"
)
Expand Down
11 changes: 6 additions & 5 deletions server/service_bolt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ import (
"testing"
"time"

challengestore "github.com/micromdm/scep/v2/challenge/bolt"
scepdepot "github.com/micromdm/scep/v2/depot"
boltdepot "github.com/micromdm/scep/v2/depot/bolt"
"github.com/micromdm/scep/v2/scep"
scepserver "github.com/micromdm/scep/v2/server"

"github.com/boltdb/bolt"
challengestore "github.com/micromdm/scep/challenge/bolt"
scepdepot "github.com/micromdm/scep/depot"
boltdepot "github.com/micromdm/scep/depot/bolt"
"github.com/micromdm/scep/scep"
scepserver "github.com/micromdm/scep/server"
)

func TestCaCert(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions server/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"strings"
"testing"

"github.com/micromdm/scep/depot"
filedepot "github.com/micromdm/scep/depot/file"
scepserver "github.com/micromdm/scep/server"
"github.com/micromdm/scep/v2/depot"
filedepot "github.com/micromdm/scep/v2/depot/file"
scepserver "github.com/micromdm/scep/v2/server"

kitlog "github.com/go-kit/kit/log"
)
Expand Down

0 comments on commit 168f79e

Please sign in to comment.