Skip to content

Commit

Permalink
Revendor fabric's bccsp into fabric-ca
Browse files Browse the repository at this point in the history
See https://jira.hyperledger.org/browse/FAB-1797
The bccsp code in fabric moved to fabric/bccsp, so this change
set removes and revendors the bccsp code from fabric.  It also
contains the import changes matching the moved code.

Change-Id: Id80ceaf583ff33cb484885c12ea5950477b804d3
Signed-off-by: Keith Smith <bksmith@us.ibm.com>
  • Loading branch information
Keith Smith committed Jan 21, 2017
1 parent 248e0c6 commit aa5fb82
Show file tree
Hide file tree
Showing 50 changed files with 2,334 additions and 1,231 deletions.
2 changes: 1 addition & 1 deletion cli/server/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/cloudflare/cfssl/csr"
"github.com/cloudflare/cfssl/initca"
"github.com/cloudflare/cfssl/log"
"github.com/hyperledger/fabric/core/crypto/bccsp/factory"
"github.com/hyperledger/fabric/bccsp/factory"
)

var initUsageText = `fabric-ca server init CSRJSON -- generates a new private key and self-signed certificate
Expand Down
2 changes: 1 addition & 1 deletion cli/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import (
"github.com/hyperledger/fabric-ca/cli/server/spi"
libcsp "github.com/hyperledger/fabric-ca/lib/csp"
"github.com/hyperledger/fabric-ca/util"
"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/bccsp"
"github.com/jmoiron/sqlx"
)

Expand Down
8 changes: 4 additions & 4 deletions lib/csp/csp.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
"os"
"path"

"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/core/crypto/bccsp/factory"
"github.com/hyperledger/fabric/core/crypto/bccsp/signer"
"github.com/hyperledger/fabric/core/crypto/bccsp/sw"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/bccsp/factory"
"github.com/hyperledger/fabric/bccsp/signer"
"github.com/hyperledger/fabric/bccsp/sw"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion lib/csp/csp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"testing"

"github.com/hyperledger/fabric-ca/lib/csp"
"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/bccsp"
)

func TestBCCSP(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion lib/tcert/keytree.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"strings"

"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/bccsp"
)

/*
Expand Down
4 changes: 2 additions & 2 deletions lib/tcert/keytree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"testing"

"github.com/cloudflare/cfssl/log"
"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/core/crypto/bccsp/factory"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/bccsp/factory"
)

func TestKeyTree(t *testing.T) {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

137 changes: 137 additions & 0 deletions vendor/github.com/hyperledger/fabric/bccsp/pkcs11/aes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 65 additions & 0 deletions vendor/github.com/hyperledger/fabric/bccsp/pkcs11/aeskey.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aa5fb82

Please sign in to comment.