Skip to content

Commit

Permalink
Vendor BCCSP from FABRIC into FABRIC-COP
Browse files Browse the repository at this point in the history
This is just fetching code from fabric and a dummy use to make sure things
compile fine.

Change-Id: I4d38e748a6a599395392dcc108a609b1ded69af4
Signed-off-by: Volodymyr Paprotski <[email protected]>
  • Loading branch information
Volodymyr Paprotski committed Dec 5, 2016
1 parent ffb4fc2 commit ba8ff6e
Show file tree
Hide file tree
Showing 59 changed files with 7,363 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cli/server/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,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"
)

var initUsageText = `cop server init CSRJSON -- generates a new private key and self-signed certificate
Expand Down Expand Up @@ -57,6 +58,13 @@ func initMain(args []string, c cli.Config) (err error) {
return errors.New(err.Error())
}

bccsp, err := factory.GetDefault()
if err != nil {
return errors.New(err.Error())
}
_ = bccsp
//FIXME: replace the key generation and storage with BCCSP

c.IsCA = true

var key, cert []byte
Expand Down
202 changes: 202 additions & 0 deletions vendor/github.com/hyperledger/fabric/LICENSE

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.

Loading

0 comments on commit ba8ff6e

Please sign in to comment.