Skip to content

Commit e554b34

Browse files
Nao Nishijimayacovm
authored andcommitted
[FAB-5104] unused code in msp packages
This patch set deletes unused code in msp packages. Change-Id: I90edab4145efc995ba45f349c6dd2d2947eb644a Signed-off-by: Nao Nishijima <nao.nishijima@hal.hitachi.com>
1 parent 631fa5c commit e554b34

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

msp/cert.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ import (
3131
"github.com/hyperledger/fabric/bccsp/sw"
3232
)
3333

34-
type dsaSignature struct {
35-
R, S *big.Int
36-
}
37-
38-
type ecdsaSignature dsaSignature
39-
4034
type validity struct {
4135
NotBefore, NotAfter time.Time
4236
}

msp/mspimpl.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,16 +1112,3 @@ func (msp *bccspmsp) getValidityOptsForCert(cert *x509.Certificate) x509.VerifyO
11121112

11131113
return tempOpts
11141114
}
1115-
1116-
func (msp *bccspmsp) getValidityOptsForTLSCert(cert *x509.Certificate) x509.VerifyOptions {
1117-
// First copy the opts to override the CurrentTime field
1118-
// in order to make the certificate passing the expiration test
1119-
// independently from the real local current time.
1120-
// This is a temporary workaround for FAB-3678
1121-
1122-
var tempOpts x509.VerifyOptions
1123-
tempOpts.Roots = msp.opts.Roots
1124-
tempOpts.Intermediates = msp.opts.Intermediates
1125-
1126-
return tempOpts
1127-
}

0 commit comments

Comments
 (0)