Skip to content

Commit

Permalink
[FAB-5346] Use vendored attrmgr
Browse files Browse the repository at this point in the history
This deletes fabric-ca/attrmgr and uses the vendored attrmgr
from fabric.

Change-Id: Ia0e708de63b7af176ad2b37b6473ecbcc985c002
Signed-off-by: Keith Smith <[email protected]>
  • Loading branch information
Keith Smith committed Sep 19, 2017
1 parent 3b9d83c commit f7cc93a
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 311 deletions.
193 changes: 0 additions & 193 deletions attrmgr/attrmgr.go

This file was deleted.

113 changes: 0 additions & 113 deletions attrmgr/attrmgr_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/fabric-ca-client/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import (
"testing"

"github.com/hyperledger/fabric-ca/api"
"github.com/hyperledger/fabric-ca/attrmgr"
"github.com/hyperledger/fabric-ca/lib"
"github.com/hyperledger/fabric-ca/lib/dbutil"
"github.com/hyperledger/fabric-ca/util"
"github.com/hyperledger/fabric/common/attrmgr"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion lib/ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ import (
"github.com/cloudflare/cfssl/log"
"github.com/cloudflare/cfssl/signer"
"github.com/hyperledger/fabric-ca/api"
"github.com/hyperledger/fabric-ca/attrmgr"
"github.com/hyperledger/fabric-ca/lib/dbutil"
"github.com/hyperledger/fabric-ca/lib/ldap"
"github.com/hyperledger/fabric-ca/lib/spi"
"github.com/hyperledger/fabric-ca/lib/tcert"
"github.com/hyperledger/fabric-ca/lib/tls"
"github.com/hyperledger/fabric-ca/util"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/common/attrmgr"
"github.com/jmoiron/sqlx"

_ "github.com/go-sql-driver/mysql" // import to support MySQL
Expand Down
2 changes: 1 addition & 1 deletion lib/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ import (

"github.com/cloudflare/cfssl/csr"
"github.com/hyperledger/fabric-ca/api"
"github.com/hyperledger/fabric-ca/attrmgr"
. "github.com/hyperledger/fabric-ca/lib"
"github.com/hyperledger/fabric-ca/lib/tls"
"github.com/hyperledger/fabric-ca/util"
"github.com/hyperledger/fabric/common/attrmgr"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion lib/serverrequestcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ import (
"github.com/cloudflare/cfssl/revoke"
"github.com/cloudflare/cfssl/signer"
"github.com/hyperledger/fabric-ca/api"
"github.com/hyperledger/fabric-ca/attrmgr"
"github.com/hyperledger/fabric-ca/lib/spi"
"github.com/hyperledger/fabric-ca/lib/tcert"
"github.com/hyperledger/fabric-ca/util"
"github.com/hyperledger/fabric/common/attrmgr"
"github.com/pkg/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion lib/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (

"github.com/cloudflare/cfssl/log"
"github.com/hyperledger/fabric-ca/api"
"github.com/hyperledger/fabric-ca/attrmgr"
"github.com/hyperledger/fabric-ca/util"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/common/attrmgr"
)

func newSigner(key bccsp.Key, cert []byte, id *Identity) *Signer {
Expand Down

0 comments on commit f7cc93a

Please sign in to comment.